error involving 'ksvideo'...? newbie question sorry
Rodrigo Severo
rodrigo at fabricadeideias.com
Mon Dec 25 11:43:15 UTC 2017
2017-12-22 20:42 GMT-02:00 pangit_ako <hamburgerstephen at gmail.com>:
> Greetings Mr. Dufresne,
>
> I also tried your suggestion...I typed into my command line the following
> pipeline:
>
> gst-launch-1.0 autovideosrc ! image/jpeg, width=640, height=480 ! jpegenc !
> rtpjpegpay ! udpsink host=127.0.0.1 port=5200
>
> I received the following message output:
>
> "WARNING: erroneous pipeline: could not link autovideosrc0 to jpegenc0,
> neither element can handle caps image/jpeg width=(int)640
> height=(int)480"...I re-typed the command pipline removing the
> "width/height" information and got the same response back from the
> program...
>
The sink video caps for jpegenc has to be 'video/x-raw' as you can check
with 'gst-inspect jpegenc'. Nicolas probably got it backwords as the 'src'
side of 'jpegenc' is the one that accepts only 'image/jpeg'.
I bet your first 'negotiation error' was caused by your videosrc not
providing video with the measurements you requested. Try the following
please:
gst-launch-1.0 autovideosrc ! videoscale ! videoconvert !
video/x-raw,width=640,height=480 ! jpegenc !
rtpjpegpay ! udpsink host=127.0.0.1 port=5200
I've thrown an extra videoconvet just to be on the safe side. I believe
that what will actually solve your issue is the videoscale.
Is it possible my OS (Vista) is having problems with GStreamer?
>
It sure is, always ;) But it doesn't seems to be the case here.
Regards,
Rodrigo Severo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171225/c7607d07/attachment.html>
More information about the gstreamer-devel
mailing list