This is a collection of quick commands you can use to accomplish very specific tasks using the command line. This is a continuously growing collection, and contributions are accepted.
See the Table of Contents for a full guide.
Depends on ‘imagemagick’.
convert $(ls -v *.jpg) out.pdf
Combine images (frames) into a single video. Depends on ‘ffmpeg’
ffmpeg -framerate 30 -i %d.png -c:v libx264 -pix_fmt yuv420p output.mp4
in case it fails, you can try instead
ffmpeg -framerate 15 -i %d.png -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -pix_fmt yuv420p output.mp4
Depends on ‘ffmpeg’.
ffmpeg -i video.mkv -codec copy video_out.mp4