Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
video:ffmpeg [2016/03/01 08:34]
smayr created
video:ffmpeg [2018/01/05 15:43] (current)
smayr [Extract Video Frames]
Line 25: Line 25:
  
 C:\Apps\ffmpeg\bin\ffmpeg.exe -i %inputfile% -r 1/1 output\%inputfile%-%%05d.png C:\Apps\ffmpeg\bin\ffmpeg.exe -i %inputfile% -r 1/1 output\%inputfile%-%%05d.png
 +EXPLORER output
 +</code>
 +
 +
 +
 +== Generate Video From Images ==
 +<code batch>
 +REM --- Utility to generate video clips from frames ---
 +
 +SET inputfile=%1
 +MKDIR output
 +
 +REM ### Each video clip from still image will have a duration of 5 seconds (the inverse of 1/5 frames per second). 
 +REM ### The video stream will have a frame rate of 30 fps by duplicating the frames accordingly:
 +REM C:\Apps\ffmpeg\bin\ffmpeg -framerate 1/5 -i img%%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p output\%inputfile%.mp4
 +
 +REM ### Eg: 15 sec video clips ###
 +C:\Apps\ffmpeg\bin\ffmpeg -framerate 1/15 -i %inputfile%.png -c:v libx264 -r 24 -pix_fmt yuv420p output\%inputfile%.mp4
 +
 +REM ### View Clips ###
 EXPLORER output EXPLORER output
 </code> </code>