gstreamer-1.0 appsrc sample example
Biswajit Panigrahi
biswajit.p at mistralsolutions.com
Thu May 12 07:03:57 UTC 2016
Hi Sebastian,
Yes if i use filesink location in Pipeline like:
app->pipeline = gst_parse_launch("appsrc name=mysource ! videoconvert ! vpe
num-input-buffers=8 ! ducatimpeg4enc bitrate=4000 ! filesink
location=FinalSRC12.mpeg ", NULL);
Then I am able play the FinalSRC12.mpeg without any problem.
I have tried with avenc_mpeg4 also in pipeline like:
app->pipeline = gst_parse_launch("appsrc name=mysource ! videoconvert ! vpe
num-input-buffers=8 ! avenc_mpeg4 bitrate=4000 ! filesink
location=FinalSRC12.mpeg ", NULL);
but when I started UDP streaming in vlc by executing vlc test.sdp then the
vlc gives error like:
demux error:cannot peak
no data received in 10s,aborting
Complete code is attached..
Regards,
Biswajit
On Thu, May 12, 2016 at 11:52 AM, Sebastian Dröge <sebastian at centricular.com
> wrote:
> On Do, 2016-05-12 at 11:36 +0530, Biswajit Panigrahi wrote:
> > Hi Sebastian,
> > After your suggestion, I have added below line:
> > g_object_set (app->appsrc, "format", GST_FORMAT_TIME, NULL);
> > After that the warning which was not coming but when i am trying to
> > stream over udp and playing the same in other machine like vlc
> > test.sdp then it shows few messages like:
> >
> > VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
> > [0x88ec908] main libvlc: Running vlc with the default interface. Use
> > 'cvlc' to use vlc without interface.
> > [0xb5104520] es demux error: cannot peek
> > [mpeg4 @ 0xb5121b20] hmm, seems the headers are not complete, trying
> > to guess time_increment_bits
> > [mpeg4 @ 0xb5121b20] my guess is 5 bits ;)
> > [mpeg4 @ 0xb5121b20] looks like this file was encoded with
> > (divx4/(old)xvid/opendivx) -> forcing low_delay flag
> >
> > Content of test.sdp:
> > v=0
> > m=video 5000 RTP/AVP 96
> > c=IN IP4 192.227.1.20
> > a=rtpmap:96 MP4V-ES/90000
> >
> > I have attached the complete code .Please let me know if any issue is
> > there in the code.
>
> Try with a known-to-work MPEG-4 Part 2 encoder, e.g. avenc_mpeg4,
> instead of the Ducati elements. Does that work?
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160512/23dcc447/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GST_Final.c
Type: text/x-csrc
Size: 5776 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160512/23dcc447/attachment-0001.c>
More information about the gstreamer-devel
mailing list