
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (35)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (6617)
-
Merge commit ’46439e156219d27f059cf687743ba5aacf238b87’
9 avril 2014, par Michael NiedermayerMerge commit ’46439e156219d27f059cf687743ba5aacf238b87’
* commit ’46439e156219d27f059cf687743ba5aacf238b87’ :
mp2 : match twolame default optionsNot merged as the change breaks fate, also forcing resampling to specific sample rate
reduces quality, and would be like rescaling every movie to 1080.Merged-by : Michael Niedermayer <michaelni@gmx.at>
-
How to force avcodec to use unaligned frame data planes ?
26 février 2015, par user3244284I have been searching high and low for an option to force avcodec to use unaligned memory for its AVFrame data.
Depending on the pixel format, the horizontal planes of an AVFrame->data may be padded with extra data to be aligned to memory for performance.
eg : a 1920 * 1080 video with 4 bytes per pixel will have 1920 * 4 = 7680 bytes per plane.
With avcodec if you are decoding this video it will create 7808 bytes per plane.
This adds 7808 - 7680 = 128 bytes of extra padding.
For my purposes I would like to force avcodec to use unaligned data so I can copy an entire continuous chunk of frame data instead of copying and formatting smaller pieces one at a time to a continuous chunk.
The following flag found in the headers :
/* encoding support
These flags can be passed in AVCodecContext.flags before initialization.
Note: Not everything is supported yet.
*/
/**
* Allow decoders to produce frames with data planes that are not aligned
* to CPU requirements (e.g. due to cropping).
*/
#define CODEC_FLAG_UNALIGNED 0x0001Setting this AVCodecContext.flags to be CODEC_FLAG_UNALIGNED, the assumption is that the AVFrame->data is now unaligned, this is not the case.
I’m not sure if I am looking at the right place or using this flag correctly.
Regards,
Curious George
-
X264 Error message when capturing video
2 mai 2015, par savI’m writing a program to save some webcam video to a file. I’m using the x264 codec found here
x264When I try writing frames to a file I get this error message poping up.
x264vfw [warning] : Few frames probably would be lost. Ways to fix
this :x264vfw [warning] : -if you use VirtualDub or its fork than you can
enable ’VirtualDub Hack’ optionx264vfw [warning] : -you can enable ’File’ output mode
x264vfw [warning] : -you can enable ’Zero Latency’ option
I found this VirtualDub Hack but then I’m not using virtual dub.
I’m not sure what the File output mode and zero latency mean.I think the problem is related to the codec since when I change to using a different codec, everything works fine. I’m using C# and emgu but I dont think thats where the problem lies.
EDIT
In case the code helps
public static void StartCapture()
{
try
{
capture = new Capture();
capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_WIDTH, 1920); //1920
capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT, 1080); //1080
CaptureOutput = new VideoWriter
(
"capture output.avi",
CvInvoke.CV_FOURCC('X','2','6','4'),
50, //fps
(int)capture.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_WIDTH),
(int)capture.GetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT),
true
);
if (capture != null)
{
capture.ImageGrabbed += SaveFrame;
capture.Start();
}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
static void SaveFrame(System.Object sender, EventArgs e)
{
Image video;
video = capture.RetrieveBgrFrame();
CaptureOutput.WriteFrame(video);
}