Skip to content

Instantly share code, notes, and snippets.

@nyanshiba
Last active July 25, 2020 11:23
Show Gist options
  • Save nyanshiba/f013d66df60cb53ebf717c1f62828f0e to your computer and use it in GitHub Desktop.
Save nyanshiba/f013d66df60cb53ebf717c1f62828f0e to your computer and use it in GitHub Desktop.
tsエンコ秘伝のタレ
# QSV H.264 LA-ICQ
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -global_quality 25 -c:v h264_qsv -preset:v veryslow -g 300 -bf 6 -refs 4 -b_strategy 1 -look_ahead 1 -look_ahead_depth 60 -color_range tv -color_primaries bt709 -color_trc bt709 -colorspace bt709 -pix_fmt nv12 -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# NVEnc H.264 VBR_MinQP
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -c:v h264_nvenc -preset:v slow -profile:v high -rc:v vbr_minqp -rc-lookahead 32 -spatial-aq 1 -aq-strength 1 -qmin:v 23 -qmax:v 25 -b:v 1500k -maxrate:v 3500k -pix_fmt yuv420p -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# NVEnc H.264 CQP
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -c:v h264_nvenc -preset:v slow -profile:v high -rc:v constqp -rc-lookahead 32 -init_qpI 21 -init_qpP 24 -init_qpB 25 -g 30 -bf 3 -refs 4 -pix_fmt yuv420p -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# NVEnc HEVC CQP 10bit (Pascal)
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -c:v hevc_nvenc -preset:v slow -profile:v main10 -rc:v constqp -rc-lookahead 32 -init_qpI 22 -init_qpP 24 -init_qpB 25 -g 60 -bf 0 -refs 6 -color_range tv -color_primaries bt709 -color_trc bt709 -colorspace bt709 -pix_fmt yuv420p10le -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# NVEnc HEVC CQP 10bit (Turing)
ffmpeg -y -hide_banner -nostats -analyzeduration 30M -probesize 100M -fflags +discardcorrupt -i input.ts -strict -2 -c:a aac -b:a 256k -aac_coder twoloop -ac 2 -max_muxing_queue_size 4000 -vf bwdif=0:-1:1 -c:v hevc_nvenc -preset:v slow -profile:v main10 -rc:v constqp -rc-lookahead 32 -init_qpI 22 -init_qpP 24 -init_qpB 25 -g 60 -bf 3 -refs 6 -color_range tv -color_primaries bt709 -color_trc bt709 -colorspace bt709 -pix_fmt yuv420p10le -map i:0x100 -map i:0x110 -movflags +faststart output.mp4
# VCE
一か月待って!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment