ximagesrc to jpegenc

Arnaud Loonstra arnaud at sphaero.org
Sun Nov 23 14:41:04 PST 2014


On 2014-11-23 16:51, Tim Müller wrote:
> On Sun, 2014-11-23 at 16:16 +0100, Arnaud Loonstra wrote:
>
>> > Try
>> >
>> >   ximagesrc ! videoconvert ! video/x-raw,format=I420 ! jpegenc !
>> > rtpjpegpay ! ....
>> >
>> > There's a problem which is that the RTP JPEG payloading spec only 
>> allows
>> > for certain formats and subsample arrangement, but that's 
>> something we
>> > can't negotiate at the moment, so you need to hard-code the input 
>> to
>> > something that's supported by the payloader/spec.
>>
>> That pipeline won't negotiate.
>>
[snip]
>>
>> How do you 'hardcode' the input. According to gst-inspect the 
>> payloader
>> only wants video/x-jpeg or image/jpeg. The type parameter will be
>> overwritten if the sof value?
>
> See the capsfilter in front of the jpegenc. The sof value won't
> overwrite the type parameter. I'm not sure where it goes wrong, 
> you'll
> have to look at the GST_DEBUG log to figure out where the problem is.
>
> Cheers
>  -Tim

I just tried on windows using a gdiscreencap but its giving exactly the 
same error.

If anybody can try if a simple pipeline like below works...

gst-launch-1.0 -v ximagesrc ! videoconvert ! jpegenc ! rtpjpegpay ! 
fakesink

or windows:
gst-launch-1.0 -v gdiscreencapsrc ! jpegenc ! rtpjpegpay ! fakesink

It always gives an error on gst_rtp_jpeg_pay_read_sof
I'll try some more debugging as well.

Rg,

Arnaud



More information about the gstreamer-devel mailing list