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/_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel