<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <div><br></div><div>Last few days I'm trying to achieve an rtmp publish with gst. </div><div>It works for me with audio and video but the x264 tune option has to be set to zero latency. </div><div><br></div><div>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. </div><div><br></div><div>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) </div><div><br></div><div>The end result is that with zero latency it plays but without it just stops. </div><div>Now If i replace the rtmpsink with fakesink it also works without a problem without the zero latency option. </div><div><br></div><div>I've tried with 1.0 and 0.10 versions and both act the same way. </div><div><br></div><div><br></div><div>------------------------------------------------Without zero latency x264 option -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div><div><b>GST_DEBUG="*:3" gst-launch-1.0 videotestsrc ! progressreport update-freq=1 ! videoconvert ! x264enc bitrate=256 ! h264parse ! flvmux streamable=true ! rtmpsink location='<a href="rtmp://rtmp.server.com/app/file-2'">rtmp://rtmp.server.com/app/file-2'</a></b></div><div>Setting pipeline to PAUSED ...</div><div>Pipeline is PREROLLING ...</div><div>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</div><div>Redistribute latency...</div><div>0:00:00.046350209 21001 0xcb5330 WARN bin gstbin.c:2490:gst_bin_do_latency_func:<pipeline0> failed to query latency</div><div>Pipeline is PREROLLED ...</div><div>Setting pipeline to PLAYING ...</div><div>New clock: GstSystemClock</div><div>samek@pubencoder1:~$ </div><div>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div><br></div><div><br></div><div>------------------------------------------------With zero latency x264 option -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div><b>GST_DEBUG="*:3" gst-launch-1.0 videotestsrc ! progressreport update-freq=1 ! videoconvert ! x264enc bitrate=256 tune=zerolatency ! h264parse ! flvmux streamable=true ! rtmpsink location='<a href="rtmp://r">rtmp://r</a><a href="http://tmp.server.com/app/file-2">tmp.server.com/app/file-2</a>'</b></div><div>Setting pipeline to PAUSED ...</div><div>Pipeline is PREROLLING ...</div><div>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</div><div>Redistribute latency...</div><div>0:00:00.043029112 21041 0xbf7330 WARN bin gstbin.c:2490:gst_bin_do_latency_func:<pipeline0> failed to query latency</div><div>Pipeline is PREROLLED ...</div><div>Setting pipeline to PLAYING ...</div><div>New clock: GstSystemClock</div><div>progressreport0 (00:00:01): 0 seconds</div><div>progressreport0 (00:00:02): 1 seconds</div><div>progressreport0 (00:00:03): 2 seconds</div><div>progressreport0 (00:00:04): 3 seconds</div><div>progressreport0 (00:00:05): 4 seconds</div><div>progressreport0 (00:00:06): 5 seconds</div><div>progressreport0 (00:00:07): 6 seconds</div><div>progressreport0 (00:00:08): 7 seconds</div><div>progressreport0 (00:00:09): 8 seconds</div><div>progressreport0 (00:00:10): 9 seconds</div><div>progressreport0 (00:00:11): 10 seconds</div><div>^CCaught interrupt -- handling interrupt.</div><div>Interrupt: Stopping pipeline ...</div><div>Execution ended after 11523276498 ns.</div><div>Setting pipeline to PAUSED ...</div><div>Setting pipeline to READY ...</div><div>Setting pipeline to NULL ...</div><div>Freeing pipeline ...</div></div><div>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</div><div><br></div><div><br></div><div>Can someone help me since the zero latency option gives out very bad quality. </div><div><br></div><div><br></div><div>Thanks. </div><div><br></div><div><br></div><div><br></div><div><br></div></body></html>