Skip to content

Instantly share code, notes, and snippets.

@menangen
Created May 12, 2018 16:32
Show Gist options
  • Save menangen/146471ef19b7be93667985780a02edee to your computer and use it in GitHub Desktop.
Save menangen/146471ef19b7be93667985780a02edee to your computer and use it in GitHub Desktop.
FFmpeg x265 encoding
ffmpeg -y -i src/IMG.MOV -x265-params level=5.1:vbv-maxrate=4000:vbv-bufsize=7000:qcomp=0.5:vbv-init=0.5:crf=23:crf-min=17 -vf scale=1280:720 -sws_flags spline -map_metadata:g 0:g -f mp4 -c:v libx265 -preset medium -tag:v hvc1 -copyts -vsync 0 -time_base 1/60 -video_track_timescale 600 -c:a copy -threads 8 out/[h265-720p]IMG.mp4
ffmpeg -y -i src/IMG.MOV -x265-params level=5.1:vbv-maxrate=25000:vbv-bufsize=40000:qcomp=0.5:vbv-init=0.5:crf=17:crf-min=14 -vf scale=1920:1080 -sws_flags spline -map_metadata:g 0:g -f mp4 -c:v libx265 -preset medium -tag:v hvc1 -copyts -vsync 0 -time_base 1/60 -video_track_timescale 600 -c:a copy -threads 8 out/[h265]IMG.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment