Post your ffmpeg recipe here

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Iñigo Figuero

  • Posts: 71
  • Joined: Mon Sep 04, 2017 9:55 am

Post your ffmpeg recipe here

PostTue Sep 12, 2017 6:44 pm

This is the ffmpeg configuration I'm testing for use for Youtube videos:

ffmpeg -i input.avi -c:v libx264 -preset slower -crf 18 -bf 2 -flags +cgop -pix_fmt yuv420p -c:a aac -strict -2 -b:a 384k -r:a 48000 output.mp4

Feel free to post yours or your opinion on fine tuning it.
Offline

Andrew Kolakowski

  • Posts: 9212
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: Post your ffmpeg recipe here

PostTue Sep 12, 2017 8:24 pm

Use bit lower value for crf=15-17 (specially for HD) to get better quality (if you have good upload bandwidth).
If you have time preset slower is fine, if not you can use preset=fast. Quality will be the same for given CRF value, just bitrate will be bit higher.
You can also add -tune film to tune for typical camera shot footage with bit of grain/noise.
Offline

Dan Sherman

  • Posts: 1185
  • Joined: Fri Jul 01, 2016 11:07 pm

Re: Post your ffmpeg recipe here

PostTue Sep 12, 2017 11:22 pm

leveraging an Nvidia gpu for encoding.


h.264
Code: Select all
ffmpeg -i input.ext -c:v h264_nvenc -preset slow -profile:v high -level 5.1 -b:v 0 -cq 17 -bf 2 -flags +cgop -pix_fmt yuv420p -movflags +faststart -y -v quiet -stats output.mp4


h.265
Code: Select all
ffmpeg -i input.ext -c:v hevc_nvenc -preset slow -profile:v main10 -level 6.0 -tier high -b:v 0 -cq 17 -flags +cgop -pix_fmt yuv420p -movflags +faststart -y -v quiet -stats output.mp4
AMD 7950X | AMD 7900XTX (23.20.24) | DDR5-6000 CL30-40-40-96 2x32 GB | Multiple PCIe 4.0 X4 NVME | ASUS x670e HERO | Win 11 Pro 23H2 | Resolve Studio 18.6.5 B7

Return to DaVinci Resolve

Who is online

Users browsing this forum: AndreN, ghost355, GTTOfficial, Hendrik Proosa, Håkan Mitts, keiller84, Nick2021, sushi ninja and 258 guests