Transmit Audio + Video - Redistributing Latency

Sebastian Dröge sebastian at centricular.com
Tue Oct 25 10:47:39 UTC 2016


On Tue, 2016-10-25 at 01:10 -0700, stproj wrote:
> Greetings,
> 
> Im trying to transmit both audio and video over rtp but the pipeline is
> stuck in PAUSE state. The pipeline that i use follows:
> 
> gst-launch-1.0 filesrc location=vid2.mp4 ! qtdemux name=demux     
> demux.audio_0 ! queue ! aacparse ! avdec_aac ! audioconvert ! rtpL16pay !
> udpsink host=localhost port=5000     demux.video_0 ! queue ! h264parse !
> avdec_h264 ! videoconvert ! x264enc ! rtph264pay ! udpsink host=127.0.0.1
> port = 5002
> 
> If i cut off a branch i can view or listen the file on the other side, but
> if i have the whole pipeline the end results is:
> 
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Redistribute latency...
> Redistribute latency...
> 
> Do you know why this happens? Or what should i do avoid the error when
> transmitting both audio and video? 

x264enc by default has ~3s of latency. Use a bigger queue for the
audio, or reduce the latency by e.g. setting tune=zerolatency on
x264enc.

-- 
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: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161025/acdb2531/attachment.sig>


More information about the gstreamer-devel mailing list