Gstreamer FFmpeg Header missing..

Sebastian Dröge sebastian at centricular.com
Sun Oct 27 21:47:25 CET 2013


On Fr, 2013-10-25 at 12:52 +0000, suresh.udipi at wipro.com wrote:
> Hi,
> 
>    We are trying streaming between two systems using udpsrc and udpsink as below
> 
>    Basically trasmittingusing mpegts format..
> 
> 
> 
> Server
> 
>     filesrc-->decodebin2 ------------>h264enc -------------- mpegmux--> udpink
>                                    |                                             |
>                                    |                                             |
>                                     ---------->lamemp3enc----------
> 
> 
> Client
> 
>    udpsrc ---->mpegtsdeumx------------>ffdec_h264 ----------------------->ximagesink sync=false
>                                          |
>                                          |
>                                           ------------> ffdec_mp3 ----------------------> alsasink sync=false
> 
> 
> If we run the Client first and then the server, we were able to play the audio/Video properly.
> 
> If we run the server first, and client second we are getting the error.
> 
>     ffmpeg Header missing...
> and the pipeline hangs..??
> 
> We thought sync=false will resolve the issue. But this didnot solve the problem.

sync=false is almost never what you want.

> How to come out of this  error ..ffmpeg header missing error?
> 
> How to we debug Gstreamer when the pipeline hangs...?? We tried GST_DEBUG=2 and print debug options..but
>  it didnot help much....any other options.?

You could try setting config-interval=1 or something on the sender side.
The problem here most likely is that the receiver never gets the h264
headers, and thus decoding does not work. config-interval=1 will insert
them again every second (then you only need the sender to wait for a
keyframe, so make sure that there are keyframes often enough).

Ideally you would use a format that is better suited for streaming, e.g.
RTP. Check the examples in gst-plugins-good/tests/examples/rtp if that
is an option for you.

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131027/acff98ce/attachment.pgp>


More information about the gstreamer-devel mailing list