gstreamer-1.0 appsrc sample example

Sebastian Dröge sebastian at centricular.com
Thu May 12 06:22:17 UTC 2016


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

-------------- 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/20160512/5bc78d89/attachment.sig>


More information about the gstreamer-devel mailing list