Skip to content

Instantly share code, notes, and snippets.

@psenough
Created June 23, 2017 01:48
Show Gist options
  • Save psenough/37c48ca1f5d08234cc7759a3e86d7e0c to your computer and use it in GitHub Desktop.
Save psenough/37c48ca1f5d08234cc7759a3e86d7e0c to your computer and use it in GitHub Desktop.
random ffmpeg references
# cut
ffmpeg -i movie.mp4 -ss 00:00:03 -t 00:00:08 -async 1 cut.mp4
# ffwd video and audio 10x
ffmpeg -i input.mkv -filter:v "setpts=0.1*PTS" -filter:a "atempo=10.0" output.mkv
# ffwd video only
ffmpeg -i input.mkv -filter:v "setpts=0.1*PTS" -an output.mkv
# convert to DNxHD
ffmpeg -i <input_file> -vcodec dnxhd -b <bitrate> -an output.mov
https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video
http://www.deb-indus.org/tuto/ffmpeg-howto.htm
ffmpeg -i first_part.mp4 -vcodec dnxhd -b 36M -filter:v "setpts=0.05*PTS" -an output.mov
ffmpeg -i second_part.mp4 -vcodec dnxhd -b 36M output_2.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment