People who code: we want your input. Take the Survey

Hot answers tagged

1

1-liner: cat $(find . -maxdepth 1 -name '*.png' -print | sort -V) | ffmpeg -framerate 2 -i - -vf format=yuv420p -movflags +faststart output.mp4 Many players won't like 2 fps, so if it's not working add -r 10 output option and it will duplicate frames to compensate (output will look the same, duration will be the same).


1

You could do a few different things: Rename your files with padded zeroes: 0000000.png 0010000.png 0100000.png 1000000.png 1005000.png 1010000.png Use the version sorting option: file_args=() while IFS= read -r file; do file_args+=( -i "$file" ) done < <(ls -v *.png) # ..........^^ # or # <(ls *.png | sort -V) then ffmpeg -...


1

The "transparent color" is the color that is mapped to transparent. For example, if you have a web page with that image on it, and you use style sheets or absolute positioning or some other method to overlay the image on top of other items, everywhere in the gif that has that color, the items behind it (including the page's background) will show ...


1

Try -aspect, which avoids re-encoding the video: ffmpeg -i "$in_file" -c copy -aspect 4:3 "$out_file"


Only top voted, non community-wiki answers of a minimum length are eligible