acappiello
New Member
I started playing around with the OBS redux code recently to allow output with a lossless codec (via ffmpeg). I managed to do so, but the video quality still seemed lossy. As far as I can tell (maybe I'm wrong) the cause is the color space being VIDEO_FORMAT_NV12.
I attempted to change this by changing obs/window-basic-main.cpp:1354 to ovi.output_format = VIDEO_FORMAT_BGRA. The output/encoding itself uses AV_PIX_FMT_RGB32 to make the codec happy. However, all this seems to accomplish is that YUV data is treated as though it's RGB data. This is just in the video output, not the preview.
Example: http://i.imgur.com/SCp3Vft.png
Until now, I've been able to find my way through the code pretty effectively with a debugger and grep, but I've been unable to figure this out. I would appreciate it if someone could give me an idea of what else I need to change to get this working.
Thanks.
I attempted to change this by changing obs/window-basic-main.cpp:1354 to ovi.output_format = VIDEO_FORMAT_BGRA. The output/encoding itself uses AV_PIX_FMT_RGB32 to make the codec happy. However, all this seems to accomplish is that YUV data is treated as though it's RGB data. This is just in the video output, not the preview.
Example: http://i.imgur.com/SCp3Vft.png
Until now, I've been able to find my way through the code pretty effectively with a debugger and grep, but I've been unable to figure this out. I would appreciate it if someone could give me an idea of what else I need to change to get this working.
Thanks.