Vorbisenc/oggmux set incorrect duration
Submitted by Alex
Link to original bug (#782424)
Description
Created attachment 351516
source pcap dump + filtered pcap dump + ogg result
Hi, I using Centos 7 Linux machine with Gstreamer 1.4.5 for encoding ogg files from captured network traffic.
As input I have network dump in *pcap format with 3 rtp streams inside: 1 video stream (VP8) and 2 audio streams (G711).
With tshark tool (from Wireshark tool-packet) I filtered out only audio data also to *pcap file. And then use gstreamer to encode to stereo ogg format.
gst command:
gst-launch-1.0 interleave name=i filesrc location=/tmp/audio1.pcap ! pcapparse dst-ip=10.10.4.10 ! application/x-rtp,payload=0,clock-rate=8000,encoding-name=PCMU ! rtppcmudepay ! mulawdec ! audioconvert ! audioresample ! audio/x-raw,rate=8000,format=F32LE ! queue ! i.sink_0 filesrc location=/tmp/audio1.pcap ! pcapparse src-ip=10.10.4.10 ! application/x-rtp,payload=0,clock-rate=8000,encoding-name=PCMU ! rtppcmudepay ! mulawdec ! audioconvert ! audioresample ! audio/x-raw,channels=(int)1,rate=8000,format=F32LE ! queue ! i.sink_1 i.src ! capssetter caps=audio/x-raw,channels=2,channel-mask=(bitmask)0x3 ! audioresample ! audioconvert ! vorbisenc quality=0.5 ! mux. oggmux name=mux ! filesink location=/tmp/out.ogg
As resualt I have ogg file with incorrect duration:
oggz-info /tmp/out.ogg
Content-Duration: 5124095:34:33.629 <---- ????
Vorbis: serialno 1067813195
414 packets in 232 pages, 1.8 packets/page, 9.188% Ogg overhead
Audio-Samplerate: 8000 Hz
Audio-Channels: 2
or
ogginfo /tmp/out.ogg
Processing file "/tmp/out.ogg"...
New logical stream (#1 (closed), serial: 3fa5894b): type vorbis
Vorbis headers parsed for stream 1, information follows...
Version: 0
Vendor: Xiph.Org libVorbis I 20120203 (Omnipresent)
Channels: 2
Rate: 8000
Nominal bitrate: 41.000000 kb/s
Upper bitrate not set
Lower bitrate not set
WARNING: EOS not set on stream 1
Vorbis stream 1:
Total data length: 69994 bytes
Playback length: 307445734m:33.629s <---- ???
Average bitrate: 0.000000 kb/s
In attachment added source pcap dump , filtered pcap dump with only audio inside and resulting ogg file.
Attachment 351516, "source pcap dump + filtered pcap dump + ogg result":
attach.zip
Version: 1.4.5