Pipeline freezes

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pipeline freezes

Idan
Hi all.

I have built an element similar to tcpsink.

It works fine with stable source(videotestsrc, capture card source).
But when i use udpsrc(i capture a transport stream over udp) and decode it (in this point i have raw data)  and use the same pipeline(as with capture card),
the pipeline seems stuck,for example:
gst-launch udpsrc -v -e uri=udp://192.168.0.15:9100 ! mpegtsdemux name=demux ! mpeg2dec ! queue ! ffmpegcolorspace ! x264enc profile=1 ! flvmux ! mysink


when i use the same pipeline with different sink it works well:
gst-launch udpsrc -v -e uri=udp://192.168.0.15:9100 ! mpegtsdemux name=demux ! mpeg2dec ! queue ! ffmpegcolorspace ! x264enc profile=1 ! flvmux ! filesink location=test
when i replace the encoder and mux and use my sink it works as well, for example:
gst-launch udpsrc -v -e uri=udp://192.168.0.15:9100 ! mpegtsdemux name=demux ! mpeg2dec ! queue ! ffmpegcolorspace ! ffenc_flv ! ffmux_flv ! mysink

Now i have changed mysink's render function to return GST_FLOW_OK, immediately and yet the pipeline still seems to be stuck..


Any Help or suggestions will be appreciated

Thanks
Idan
Reply | Threaded
Open this post in threaded view
|

Re: Pipeline freezes

Idan
Problem solved.

i needed to set the sync parameter(of the base element) to false.