Sunday, April 15, 2018

How to configure Cinelerra for YouTube Upload

Thanks to this guy here I've finally figured out how to configure my Cinelerra setup to actually render YouTube friendly.

Whenever you upload a video to YouTube and the server is not happy about your codec settings it mentions that you should use these settings for better quality of your upload. I assume that using the correct settings prohibits reencoding the video on the servers. For years now I didn't care but on my last uploads I got encoding problems and video artifacts and now wanted to have the correct configuration in my setup.

The ffmpeg configuration suggested from mikoim is this one:

ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output

The current release of Cinelerra removed the possibility to enter a custom ffmpeg command line in favor of a rather confusing graphical interface which is easy to learn but difficult to master.

  1. Select FFMPEG as file format
  2. Select mp4 as output
  3. Activate Audio and open Audio Dialog
  4. Select h264.mp4 as profile which means AAC by default.
  5. Enter this in the Options field:

    profile=aac_low
  6. Enter 384000 into bitrate and -1 to quality.
  7. Close Audio Dialog.
  8. Activate Video and open Video Dialog
  9. Select faststart_h264.mp4 as profile.
  10. Set Bitrate to 0, Quality to -1 and Pixels to yuv420p
  11. Enter this in the Options field:

    bf=2
    coder=1
    crf=18
    profile=high
    preset=slow
    x264opts cabac=1:keyint=25
  12. Close Video Dialog
  13. Render! Yeah!

In case you want it more graphic here you go.
My Cinelerra is set to german but it should look exactly the same.
Render Settings

Audio Dialog

Video Dialog