After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 796529 - pcapparse: ts-offset does not work
pcapparse: ts-offset does not work
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.14.1
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-06-07 12:57 UTC by Daniel F
Modified: 2018-11-03 14:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel F 2018-06-07 12:57:25 UTC
I have pcap file with multiple RTP audio streams. One of them starts about 2 secs after beginning of packet capture, 2nd one about 3 secs. I wanted to extract them and save to one wav file, and have them synchronized in the same way as in pcap file. To do this, I have tried to use following pipeline:

gst-launch-1.0 audiointerleave name=int start-time-selection=first \
filesrc location=file.pcap do-timestamp=true ! tee name=tee \
tee. ! pcapparse src-ip=192.168.100.20 src-port=5002 ts-offset=-1 caps="application/x-rtp,media=(string)audio,encoding-name=(string)PCMA,payload=(int)8,clock-rate=(int)8000,encoding-params=(string)1" ! queue ! rtpjitterbuffer ! rtppcmadepay ! alawdec ! audioconvert ! audioresample ! capsfilter caps="audio/x-raw,channels=(int)1,channel-mask=(bitmask)0x1,rate=(int)8000" ! queue ! int.sink_0 \
tee. ! pcapparse dst-ip=192.168.100.20 dst-port=5004 ts-offset=-1 caps="application/x-rtp,media=(string)audio,encoding-name=(string)PCMA,payload=(int)8,clock-rate=(int)8000,encoding-params=(string)1" ! queue ! rtpjitterbuffer ! rtppcmadepay ! alawdec ! audioconvert ! audioresample ! capsfilter caps="audio/x-raw,channels=(int)1,channel-mask=(bitmask)0x2,rate=(int)8000" ! queue ! int.sink_1 \
int.src ! audioconvert ! audioresample ! wavenc ! filesink location=file.wav


However it turned out that original stream synchronization is lost - both streams starts at timestamp 0 in output wav file. I also tried to set ts-offset to 0 for 1st pcapparse, and to 1000000000 (1sec) for 2nd but this had no effect - audio in both channels also started at timestamp 0 as previously.
Comment 1 GStreamer system administrator 2018-11-03 14:26:01 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/731.