[Bug 782424] New: Vorbisenc/oggmux set incorrect duration

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed May 10 08:24:35 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=782424

            Bug ID: 782424
           Summary: Vorbisenc/oggmux set incorrect duration
    Classification: Platform
           Product: GStreamer
           Version: 1.4.5
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: wsotest.512 at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 351516
  --> https://bugzilla.gnome.org/attachment.cgi?id=351516&action=edit
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, 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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list