Avimux refuses caps when sending JPEGs over UDP

Mikkel Antonsen mikkelntnsn at gmail.com
Wed Jun 1 11:26:07 UTC 2016


I'm trying to stream from my webcam over UDP with the following two
commands:

gst-launch-1.0 -e -v v4l2src
device=/dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_3AB1BE0F-video-index0 ! \
image/jpeg, width=1920, height=1080, framerate=30/1  ! \
rtpjpegpay ! \
udpsink host=127.0.0.1 port=1234

and

gst-launch-1.0 -e -v udpsrc port=1234
caps="application/x-rtp,payload=96,media=video,clock-rate=90000,
encoding-name=JPEG, a-framerate=30/1, height=1920, width=1080" ! \
rtpjpegdepay ! \
jpegdec ! \
avimux ! \
filesink location=movie.avi

which yields error messages such as this:

0:00:00.117861054  6837      0x26e7540 DEBUG                 avimux
gstavimux.c:415:gst_avi_mux_vidsink_set_caps:<avimux0> avimux0:video_0,
caps=video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080,
interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
chroma-site=(string)mpeg2, framerate=(fraction)0/1
0:00:00.117925143  6837      0x26e7540 WARN                  avimux
gstavimux.c:641:gst_avi_mux_vidsink_set_caps:<avimux0> refused caps
video/x-raw, format=(string)I420, width=(int)1920, height=(int)1080,
interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
chroma-site=(string)mpeg2, framerate=(fraction)0/1
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data
flow error.
Additional debug info:
gstbasesrc.c(2943): gst_base_src_loop ():
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)

I'm not sure what exactly is wrong with the caps. From what I understand
gst-inspect avimux says that 0/1 is a valid framerate.

Replacing avimux with autovideosink works splendidly and allows me to
stream perfectly. Skipping the UDP step allows avimux to capture the movie
as expected. I need to save the video from a remote, how ever, so any help
towards achieving this will be sincerely appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160601/c18690f6/attachment.html>


More information about the gstreamer-devel mailing list