Skip to content

Instantly share code, notes, and snippets.

@bobetocalo
Last active October 1, 2021 07:09
Show Gist options
  • Save bobetocalo/11438264bd77e6de10cd to your computer and use it in GitHub Desktop.
Save bobetocalo/11438264bd77e6de10cd to your computer and use it in GitHub Desktop.
Downsample video to a lower resolution

Video and audio converter

Tutorial avconv.

Very fast video and audio converter that can also grab from a live audio/video source. It can also convert between arbitrary sample rates and resize video on the fly with a high quality polyphase filter.

Example

avconv -i input.mp4 -vf "transpose=1, scale=iw/2:-1" -r 30.30 -an output.mp4

Create video from several frames

avconv -i "frame_%05d.jpg" -r 25 -c:v libx264 -crf 20 -pix_fmt yuv420p movie.mov
ffmpeg -start_number 38 -i "name_0%03d.tif" -r 25 -c:v libx264 -crf 20 -pix_fmt yuv420p -vf "setpts=5*PTS" movie.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment