Using appsink and appsrc foe sending h264 encoded data

priyanka kataria priyanka.kataria86 at
Sat May 25 03:10:03 UTC 2019

Hello All,

I am facing following issue:

- I have a working pipeline:
Sender-> gst-launch-1.0 -v filesrc location=file1.h264  ! h264parse !
rtph264pay ! udpsink port=xxxx
Receiver-> gst-launch-1.0 udpsrc port=xxxx caps="application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" !
rtph264depay ! decodebin ! autovideosink

- Now, I want to use "appsink" and "appsrc" in the sender program, in the
following way:
filesrc location=1.h264 ! h264parse ! queue ! appsink
appsrc ! queue ! rtp264pay ! udpsink port=xxxx

The caps for appsink and appsrc match the caps for "h264parse", which are:
"video/x-h264, width=(int)1280, height=(int)720,
alignment=(string)au, profile=(string)high, level=(string)3.1"

When I run the program, there is no display at receiver side.

I checked via "tcpdump" command, packets are received at receiver side, but
after "rtph264depay" no buffers are being generated.

The program works, when I change the program to:
filesrc location=1.h264 ! h264parse ! decodebin ! queue ! appsink
appsrc ! queue ! x264enc ! rtp264pay ! udpsink port=xxxx

and the caps are:
"video/x-raw,format=(string)I420, width=(int)1280, height=(int)720,
interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
chroma-site=(string)mpeg2, colorimetry=(string)bt709,

Does this mean that appsink can only send data in "raw" format?
Is there any way to x-264 encoded data via appsink.

Priyanka Kataria
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list