gstreamer-1.0 appsrc sample example
Biswajit Panigrahi
biswajit.p at mistralsolutions.com
Thu May 12 06:06:04 UTC 2016
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.
Regards,
Biswajit
On Wed, May 11, 2016 at 3:45 PM, Sebastian Dröge <sebastian at centricular.com>
wrote:
> On Mi, 2016-05-11 at 15:03 +0530, Biswajit Panigrahi wrote:
> > Hi Sebastian,
> > Thank a lot for debugging .
> >
> > Now both fakesink as well as filesink location=testSRC1.mpeg in
> > appsrc works fine.
> > But while streaming over udp ,its getting failed.
> >
> > app->pipeline = gst_parse_launch("appsrc name=mysource ! videoconvert
> > ! vpe num-input-buffers=8 ! ducatimpeg4enc bitrate=4000 ! queue !
> > rtpmp4vpay config-interval= 10 pt=96 ! udpsink host=192.227.1.20
> > port=5000 ", NULL);
> >
> > I am getting continuous message like :
> > (GST_Final:1639): GStreamer-CRITICAL **: gst_segment_to_running_time:
> > assertion 'segment->format == format' failed
> >
> > Any idea what could be the root couse for this.
> > I have attached the complete code also in this mail.
>
> Your source (or the encoder) is not producing a segment in TIME format.
> For your source there would be the "format" property on appsrc.
>
> --
> 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/72578532/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GST_Final.c
Type: text/x-csrc
Size: 5444 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160512/72578532/attachment-0001.c>
More information about the gstreamer-devel
mailing list