<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 14 janv. 2020 22 h 45, Juan F Gomez <<a href="mailto:carne.tremula@gmail.com">carne.tremula@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello List,<br>
<br>
I have a pcap file which contains two streams of g729 audio. I want to<br>
extract them and mix them. The problem is that one audio is shorter<br>
than the other by about 2 secs. When seeing the pcap in wireshark you<br>
can see that one of the streams starts earlier (like 5 seconds earlier<br>
than the other). When I mix them they both start at the same time and<br>
of course get out of sync. Here is the pipeline I am using:<br>
<br>
gst-launch-1.0 \<br>
filesrc location=test.pcap ! tee name=t ! \<br>
queue ! pcapparse dst-port=30100 ! "application/x-rtp, payload=18,<br>
clock-rate=8000" ! rtpg729depay ! avdec_g729 !\<br>
audiomixer name=mix ! wavenc ! filesink location=out.wav t. !\<br>
queue ! pcapparse dst-port=30200 ! "application/x-rtp, payload=18,<br>
clock-rate=8000" ! rtpg729depay ! avdec_g729 ! mix.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Each pcap element don't know about each other, so they probably assume first buffer is time 0. To handle this, we'd need to use the same pcapparse, but this is not supported by this simple element. Meanwhile, you can use the ts-offset property.</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>
Any Ideas are welcome. Thanks<br>
<br>
JF<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>