rtmpsink x264 zerolatency problem.

samo gabrovec samo.gabrovec at pop-tv.si
Thu Feb 14 06:55:40 PST 2013


Hi, 

Last few days I'm trying to achieve  an rtmp publish with gst. 
It works for me with audio and video but the x264 tune option has to be set to zero latency. 

As I understand if I don't want to use it I need to increase the queue sizes on audio pipe since x264 takes a couple of seconds before it spits out anything, tried that but I could not get it to work. 

Anyway I then decided to make a simple pipe with videotestsrc and publish it to rtmp with and without zero latency (no audio at all, no queues) 

The end result is that with zero latency it plays but without it just stops. 
Now If i replace the rtmpsink with fakesink it also works without a problem without the zero latency option. 

I've tried with 1.0 and 0.10 versions and both act the same way. 


------------------------------------------------Without zero latency x264 option -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GST_DEBUG="*:3"  gst-launch-1.0   videotestsrc ! progressreport update-freq=1 ! videoconvert ! x264enc bitrate=256  ! h264parse ! flvmux streamable=true ! rtmpsink location='rtmp://rtmp.server.com/app/file-2'
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.022239693 21001       0xca8280 FIXME                default gstutils.c:3622:gst_pad_create_stream_id_printf_valist:<videotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Redistribute latency...
0:00:00.046350209 21001       0xcb5330 WARN                     bin gstbin.c:2490:gst_bin_do_latency_func:<pipeline0> failed to query latency
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
samek at pubencoder1:~$ 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



------------------------------------------------With   zero latency x264 option             -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GST_DEBUG="*:3"  gst-launch-1.0   videotestsrc ! progressreport update-freq=1 ! videoconvert ! x264enc bitrate=256 tune=zerolatency  ! h264parse ! flvmux streamable=true ! rtmpsink location='rtmp://rtmp.server.com/app/file-2'
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.022912934 21041       0xbea280 FIXME                default gstutils.c:3622:gst_pad_create_stream_id_printf_valist:<videotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Redistribute latency...
0:00:00.043029112 21041       0xbf7330 WARN                     bin gstbin.c:2490:gst_bin_do_latency_func:<pipeline0> failed to query latency
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
progressreport0 (00:00:01): 0 seconds
progressreport0 (00:00:02): 1 seconds
progressreport0 (00:00:03): 2 seconds
progressreport0 (00:00:04): 3 seconds
progressreport0 (00:00:05): 4 seconds
progressreport0 (00:00:06): 5 seconds
progressreport0 (00:00:07): 6 seconds
progressreport0 (00:00:08): 7 seconds
progressreport0 (00:00:09): 8 seconds
progressreport0 (00:00:10): 9 seconds
progressreport0 (00:00:11): 10 seconds
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 11523276498 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Can someone help me since the zero latency option gives out very bad quality. 


Thanks. 




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130214/c40537f4/attachment-0001.html>


More information about the gstreamer-devel mailing list