[Cin] The best strategy to render yuv (mpeg, limited range) from yuvj (jpeg, full range)?

Igor BEGHETTO igorbeg at visi1.org
Sun Sep 8 09:45:50 CEST 2024


Hi ALL!
I don't know if it can help.
An old project of mine uses footage by old NIKON D90 photocamera. This 
camera record video to 720p 16/9 yuvj422p, pc (jpeg), bt470bg (MJPG) in 
a AVI container.  I would like to point out that my Laptop monitor is 
calibrated to sRGB with an external Probe.

For the Edit in Cinelerra-GG the Settings/Preferences/Appearance was:
   Color:
   - YUV color space: BT709
   - YUV color range: JPEG (0-255)

and the Settings/Format was: 1280x720 (720p) HD @24fps 16/9 yuva420p
   - Color Model: YUVA-8bit

The Rendering by Cinelerra-GG were two, using MP4 and WEBM settings; I 
manually set some value for "color_primaries=bt709", "color_trc=bt709", 
"color_range=mpeg", "colorspace=bt709", "pixel_format=yuv420p".
Below the settings for the the two output:
=======================================================
Render_MP4:
   - Filename: ADifferentGold_HD_yuva8bit.mp4
   - File Format: FFMPEG - mp4
   - Audio:
       - Preset: h264.mp4
       - Bitrate: 128000 (128k)
       - Quality: -1
       - Samples: fltp
   - Video:
       - Compression: h264.mp4
       - Bitrate: 2000000 (2M)
       - Quality: -1
       - Pixels: yuv420p
       - Video Options*( * means changed by me)*:
           color_primaries=bt709 (*)
           color_range=mpeg (*)
           color_trc=bt709 (*)
           colorspace=bt709 (*)

=======================================================
Render_WEBM:
   - Filename: ADifferentGold_HD_yuva8bit.webm
   - File Format: FFMPEG - webm
   - Audio:
       - Preset: vorbis.webm
       - Bitrate: 128000 (128k)
       - Quality: -1
       - Samples: fltp
   - Video:
       - Compression: h264.mp4
       - Bitrate: 0
       - Quality: -1
       - Pixels: yuv420p
       - Video Options*( * means changed by me)*:
           # 20171119-2100
           # based on https://developers.google.com/media/vp9/settings/vod/
           # for explanations reference the Cinelerra Manual
           # 1280x720 (24, 25 or 30 frames per second)
           b=1024k
           minrate=512k
           maxrate=1485k
           tile-columns=2
           g=120 (*)
           threads=8
           quality=good
           crf=32
           speed=4
           color_primaries=bt709 (*)
           color_range=mpeg (*)
           color_trc=bt709 (*)
           colorspace=bt709 (*)
=======================================================
The ffprobe command says that renderings are: yuv420p, tv (mpeg; 
range=16-235), bt709.
The Title of the short video is "A Different Gold", and you can see it 
at http://www.visi1.org/Igor-sPortfolio_NLE.html

IgorBeg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240908/95566437/attachment.htm>


More information about the Cin mailing list