x264enc changing croma-site from mpeg2 -> jpeg

Nicolas Dufresne nicolas at ndufresne.ca
Tue Jan 17 18:43:05 UTC 2017


Le lundi 16 janvier 2017 à 09:12 -0800, vanderhoffer a écrit :
> Hi All,
> 
> I have built a pipeline in C connecting 
> videoconverter -> capsfilter -> x264enc -> flvmux
> 
> according to the DOT file, going into the x264enc I have
> format : I420
> croma-site: mpeg2
> 
> coming out I have 
> croma-site: jpeg
> 
> Can anyone tell me what croma-site does and what is the g_object to
> change
> it back to mpeg2?

What version of GStreamer is this ? The encoder should simply drop the
chroma-site field. This works for me in 1.10.2

gst-launch-1.0 -v videotestsrc ! video/x-raw,chroma-site=mpeg2 ! x264enc ! fakesink
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)2, profile=(string)high, width=(int)320, height=(int)240, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1

The chroma-site indicate which method shall be used to calculate the
chroma value of sub-sampled formats (like I420). See Wim's talks for
details:

https://gstconf.ubicast.tv/videos/image-conversion/

> 
> 
> Thx
> Art
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/x264enc-changing-croma-site-from-mpeg2-jpeg-tp4681473.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170117/d4cbf315/attachment.sig>


More information about the gstreamer-devel mailing list