Site Tools


linux:general:ffmpeg

Differences

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

Link to this comparison view

Next revision
Previous revision
linux:general:ffmpeg [2019/03/04 11:37] – created lunetikklinux:general:ffmpeg [2023/04/29 21:16] (current) lunetikk
Line 22: Line 22:
 This is an example code to convert all images in the current folder to an .avi video with 5 frames per second This is an example code to convert all images in the current folder to an .avi video with 5 frames per second
 <code>ffmpeg -f image2 -r 5 -pattern_type glob -i '*.jpg' 5fps.avi</code> <code>ffmpeg -f image2 -r 5 -pattern_type glob -i '*.jpg' 5fps.avi</code>
 +
 +If you consider using this to autogenerate videos via script, you might want to use the following code to mute the output
 +<code>ffmpeg -f image2 -r 5 -pattern_type glob -i "$PATHJPG/*.jpg" $PATHAVI/movie.avi 2> /dev/null
 +</code>
 +
 +If you want to join/ concat multiple files use the following
 +<code>ffmpeg -safe 0 -f concat -i <(find $PATHAVI -type f -name '*.avi' -printf "file '%p'\n" | sort) -c copy $PATHAVI/movie.avi</code>
linux/general/ffmpeg.1551695825.txt.gz · Last modified: 2019/03/04 11:37 by lunetikk