Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 544 Bytes

ffmpeg.md

File metadata and controls

22 lines (11 loc) · 544 Bytes

Useful FFMPEG Commands

Extract some section of a file

ffmpeg -i > -ss -to -c copy output.mp4

Scale 1080p to 720p

ffmpeg -i -vf scale=-1:720 -max_muxing_queue_size 9999

use hardware

ffmpeg -hwaccel nvdec -i -vf scale=-1:720 -vcodec h264_nvenc

Extract single frame

ffmpeg -ss hh:mm:ss.zzzz -i inputfile.mp4 -vframes 1 -f image2 imagefile.jpg

Extract section

ffmpeg -ss hh:mm:ss.zzzz -to hh:mm... -i inputfile.mp4 imagefile-clipped.mp4