Colorimetry conversion from bt.601 to bt.709

David Ing ding at panopto.com
Thu Feb 14 23:24:19 UTC 2019


Suppose I have two pieces of test collateral which differ only in their
colorimetry.  I built them using the two commands shown below.

### bt601.ogv
gst-launch-1.0 videotestsrc pattern=0 num-buffers=30 horizontal-speed=5
do-timestamp=true
! video/x-raw,width=1280,height=720,framerate=30/1,colorimetry=bt601
! queue
! theoraenc
! oggmux name=mux
! filesink location=bt601.ogv

### bt709.ogv
gst-launch-1.0 videotestsrc pattern=0 num-buffers=30 horizontal-speed=5
do-timestamp=true
! video/x-raw,width=1280,height=720,framerate=30/1,colorimetry=bt709
! queue
! theoraenc
! oggmux name=mux
! filesink location=bt709.ogv


Now suppose I want to convert the color profile of an existing file from
bt601 to bt709.  Can I do it like this?

### Convert bt601 --> bt709
gst-launch-1.0 filesrc location=bt601.ogv
! decodebin
! videoconvert
! video/x-raw,colorimetry=bt709
! queue
! theoraenc
! oggmux
! filesink location=bt601_to_bt709.ogv


Here are my questions:

   1. When each file is saved, does it contain information about the
   colorimetry?  (I cannot find any tool which is able to extract the
   colorimetry info if it exists.)
   2. Does my conversion method (shown in my third command) actually do the
   trick of converting the colorimetry?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190214/eda8d6e5/attachment.html>


More information about the gstreamer-devel mailing list