gstreamer-1.0 appsrc sample example

Sebastian Dröge sebastian at centricular.com
Tue May 10 06:36:04 UTC 2016


On Fr, 2016-05-06 at 18:59 +0530, Biswajit Panigrahi wrote:
> Hi ,
> I am trying to test the streaming of mpeg4 encoded over udp.
> Is there any appsrc pipline  sample code is available which can solve
> my problem.
> I have searched in internet but i didn't get any working test code.
> I have attached  a code which i am reffering .But couldn't figure out
> why its not working.

What is your appsrc producing? Raw video or something else?

I assume raw video, in which case there are various bugs in your
pipeline (I didn't look at the surrounding code).

1) There is no ffmpegcolorspace element in 1.x, use videoconvert
2) Don't put a capsfilter after appsrc but instead set the caps
   property on appsrc accordingly
3) Don't put mpeg4videoparse after the appsrc. It can't parse raw
   video but is for parsing MPEG-4 Part 2 encoded video.

Apart from that there might be more problems of course, but that's what
I saw for now. Also try using an alternative h264 encoder (x264enc) if
this still doesn't work, no idea how well the ducati elements are
working these days and how well their error reporting is.


In general, for your pipeline you should've seen gst_parse_launch()
returning NULL. If you had used the GError parameter you would also get
a more meaningful error, or if you set GST_DEBUG=3 in the environment
you should also already get a few hints.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160510/a506cfd3/attachment.sig>


More information about the gstreamer-devel mailing list