<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le lun. 2 juil. 2018 09:27, mudassar <<a href="mailto:mudassar87@hotmail.com">mudassar87@hotmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, <br>
<br>
I am streaming video and audio over rtmp to Wowza. Both video and audio are<br>
captured using appsrc in my application with the following pipeline:<br>
<br>
"appsrc name=videosrc format=3 is-live=true do-timestamp=true ! video/x-raw,<br>
width=%ld, height=%ld, framerate=20/1, format=ARGB ! queue<br>
max-size-buffers=1 ! videoconvert ! vtenc_h264 realtime=true<br>
max-keyframe-interval=60 bitrate=1000 ! h264parse ! flvmux name=mux<br>
streamable=true ! queue ! rtmpsink name=sink sync=true location=%s appsrc<br>
name=audiosrc format=3 blocksize=8192 do-timestamp=true is-live=true !<br>
queue ! audio/x-raw, channels=1, rate=44100, format=F64LE, width=64,<br>
depth=64 ! audioconvert ! audiorate ! audioresample ! audio/x-raw,<br>
channels=1, rate=44100, format=F32LE ! queue ! avenc_aac ! aacparse ! mux." <br>
<br>
The problem is that audio is always slightly earlier than audio in the live<br>
stream. I have tried adding more queue in audio pipeline, I have tried to<br>
set minimum latency=100000000 at videosrc as well as audiosrc with different<br>
combinations ,nothing worked. <br>
<br>
What should I do ? <br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">It's the timestamp that will disctate synchronization of the audio and video. If you use do-timestamp, you then need to sync audio/video before pushing into appsrc.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>