
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (38)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (5335)
-
How to get current frame number using ffmpeg c++
25 février 2014, par John SimpsonUsually, I use the below code to get the current frame number when decoding a video.
while(av_read_frame(pFormatCtx, &packet)>=0) {
if(packet.stream_index==videoStream) {
// Decode video frame
avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet);
// Did we get a video frame?
if(frameFinished) {
int currentFrameNumber = pFrame->coded_picture_number;
}
/* Free the packet that was allocated by av_read_frame*/
av_free_packet(&packet);
}Then, when I implemented seeking feature, I add av_seek_frame to seek to a desired position like this :
if(av_seek_frame(pFormatCtx, -1, seekTarget, 0 )<0){
LOG("log","error when seeking");
}
while(av_read_frame(pFormatCtx, &packet)>=0) {
if(packet.stream_index==videoStream) {
// Decode video frame
avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet);
// Did we get a video frame?
if(frameFinished) {
int currentFrameNumber = pFrame->coded_picture_number;
}
/* Free the packet that was allocated by av_read_frame*/
av_free_packet(&packet);
}This is when the problem arises. pFrame->coded_picture_number returns incorrect value.
My question is how I cam get the current frame given I have a decoded frame pFrame ? -
Get number of frames in video file using ffprobe in C# code
11 avril 2014, par theGeeksterI can successfully read number of framres in test.mp4 using Ffprobe on command prompt with following command :
>ffprobe -i 'c://test.mp4' -show_frames | find /c 'pict_type'
But when I try to run 'ffprobe.exe' from C# code with following paramters :
string params = " -i 'c://test.mp4' -show_frames | find /c 'pict_type'";
It errors as follows :
ffprobe version N-59453-gd52882f Copyright (c) 2007-2013 the FFmpeg developers
built on Dec 30 2013 22:07:23 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 59.100 / 52. 59.100
libavcodec 55. 47.100 / 55. 47.100
libavformat 55. 22.101 / 55. 22.101
libavdevice 55. 5.102 / 55. 5.102
libavfilter 4. 0.103 / 4. 0.103
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Argument '|' provided as input filename, but ''c://test.mp4'' was already specified.How to fix this for C# ?
I know there is a workaround using
Ffmpeg
instead but that way is not clean enough. -
vp9/x86 : set correct number of registers used in intra pred asm
17 février 2014, par Hendrik Leppkes