I've been testing renders from Vegas 12 with the encodes managed by FFMPEG via Debugmode Frameserver 2.14. By the time they are uploaded to Youtube the colour levels are getting completely messed up.
The source material in the project is 1280x720 progressive, and the project settings are 1280x720 progressive set to 25 fps. I have a levels filter doing a Studio RGB to Computer RGB level conversion on the master bus. This is then rendered to the Debugmode Frameserver set to output YUY2 pointing to a file named render1.avi. FFMPEG accesses the file with an AVISynth script that looks like this:
Avisource("M:\AmigaRob\render1.avi")
The command I used to start the encoding is as follows (upscaling to 4k and 50 FPS - There is method in my madness):
ffmpeg -i "frameserverc.avs" -vf scale=3840:2160 -r 50 -c:v libx264 -preset slow -crf 18 -c:a copy -pix_fmt yuv420p output.mkv
If I render direct from Vegas using the Mainconcept MP4 codec, it comes out looking correct like this by the time it gets to Youtube:
Direct from Vegas Mainconcept codec:
But the FFMPEG output looks completely wrong, with pure black looking gray and a similar shift in an opposite directs on the whites:
I have read a couple of things online suggesting that this is due to an issue with the colour standard defaulting to Rec 602 when Youtube expects Rec 709. I have tried to add a clause to do this conversion in the FFMPEG command line, but it just looks the same.
Can anybody spot where I am going wrong? Any help will be very gratefully received.
(BTW, these example videos are not very good content wise. I am testing some workflows for another project...)