Using VIDEOBALANCE with jifmux

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using VIDEOBALANCE with jifmux

fgfernandez0321
Hello

I'm using this pipeline. According caps negotiation videobalance must receiver video/x-raw
. And this is the error: WARNING: erroneous pipeline: could not link videorate0 to videobalance0. If I put the right cap, why do I have this error?


gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! videorate ! video/x-raw ! videobalance contrast=1.9 ! video/x-raw ! videorate ! image/jpeg ! jifmux ! udpsink host=127.0.0.1 port=9000
Reply | Threaded
Open this post in threaded view
|

Re: Using VIDEOBALANCE with jifmux

Nicolas Dufresne-4
Le lundi 13 juin 2016 à 09:32 -0700, fgfernandez0321 a écrit :

> I'm using this pipeline. According caps negotiation *videobalance*
> must
> receiver /video/x-raw
> /. And this is the error: WARNING: erroneous pipeline: could not link
> videorate0 to videobalance0. If I put the right cap, why do I have
> this
> error?
>
>
> gst-launch-1.0 udpsrc port=5000 !
> application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay !
> videorate !
> video/x-raw ! videobalance contrast=1.9 ! video/x-raw ! videorate !
> image/jpeg ! jifmux ! udpsink host=127.0.0.1 port=9000

A caps filter (video/x-raw) will not magically uncompress your jpeg. If
you want to do videobalance, you need to decoder (jpegdec) and then re-
encoding using jpegenc.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Using VIDEOBALANCE with jifmux

fgfernandez0321
Thank you Nicolas for your help. I forgot "jpegdec". Finally this the code.

gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videorate ! video/x-raw ! videobalance contrast=1.9 ! video/x-raw ! jpegenc ! jifmux ! udpsink host=127.0.0.1 port=9000