
Recherche avancée
Autres articles (28)
-
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 -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
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 (...)
Sur d’autres sites (7213)
-
Using ffmpeg with C#
13 mars 2014, par Maged E WilliamFirst :
well i'm tired of asking the same question, i do know that i can ask about Coding techniques, not just specific problematic points.Background :
my project is to make a Desktop Recorder, i triedWM Encoder
it works but double click don't work at most cases "ex : can't open My Computer ! i have to press Enter !", i made a search and it turned out that WM Encoder is the problem and it's matter of waiting a new version to solve this problem of double click.Now :
this is my previous questions relate to my problem- Re size and compress jpeg
- sort files from folder in String[] Array
- create a video from a list of JPEG files
- Combine images into a movie
So :
How to save list of images in one video usingffmpeg
in step by step ?
i got thisffmpeg -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi
but i have no idea how to use it in my project or where i m going to put this code. -
Is it possible for FFMPEG built-in command line api to achieve below batch command ?
24 janvier 2017, par BOBOMy scenario is listed below :
- use ffmpeg to grab videos from their live raw urls and directly convert them into (480px * 480px) .mp4 custom video format with white background if uncovered after resize, disregarding the input video url source might be different in original dimensions, square or rectangular or vertical rectangular etcs.
code sample is like : (prefer running on local machine, cause faster less costly than run it on server under same hardware spec )
ffmpeg -i "[raw http video url]" -vf "scale=iw*min(480/iw\,480/ih):ih*min(480/iw\,480/ih),pad=480:480:(480-iw)/2:(480-ih)/2:color=white" [target_path_and_filename].mp4
-
when video finished step 1 and saved onto the hard-disk,
I need to calculate duration of it and retrive information of three frame timestamp in seconds, such as store in an array
[0, duration/2, duration] using ffprobe -
using ffmpeg api command to extract 3 jpeg files
at the0sec frame firstframe.jpg,
duration/2 (sec) middleframe.jpg,
and last frame = duration (sec).jpg
Final step I would like to combine all three steps into one combined task of ffmpeg command line and for loop it in a windows command line batch file.
so final result of the single batch file, I would like to see if i run :
loop_ffmpeg_urlvideos_into_3_jpegsets_task.bat video_urls.txt
output are all those 3 image sets extracted from every row of the url array under one folder if there are [n] lines of vidoes in the video_urls.txt :
video1_firstframe.jpg video1_middleframe.jpg video1_lastframe.jpg
video2_firstframe.jpg video2_middleframe.jpg video3_lastframe.jpg
......
video[n]_firstframe.jpg video[n]_middleframe.jpg video[n]_lastframe.jpgI’m able to go through the second and third step by using php-ffmpeg library,
$ffmpeg = FFMpeg\FFMpeg::create();
$video = $ffmpeg->open($video_url);
$duration = $ffmpeg->getFFProbe()->format($video_url)->get('duration');
$breakpoints = [0,$duration/2,$duration];
foreach( $breakpoints as $key=>$breakpoint ):
$jpgfname ="video[$key].jpg";
$video
->frame(FFMpeg\Coordinate\TimeCode::fromSeconds($breakpoint))
->save( $yoursavepath.'/'.$jpgfname );
endforeach;but I think it would be greater if all these can be achieved via ffmpeg command line doing 3 steps together.
so just to loop video_urls from single txt file, and
run windows bat file at background one time to extract all image sets i wanted without using other 3rd party libraries which might introduce more dependencies on the configuration of [local/remote] server + switching interface from command line CMD.exe to web browser. -
How to interpret ffmpeg -pix_fmts output ?
11 août 2015, par RichAmberaleRunning ffmpeg -pix_fmts returns a list of formats. Snip :
IO... yuv444p16be 3 48
..H.. vdpau_mpeg4 0 0
..H.. dxva2_vld 0 0
IO... rgb444le 3 12
IO... rgb444be 3 12
IO... bgr444le 3 12What do the I O and H on the right side mean ? What are the numbers in the 2 leftmost columns ?