Bug#552616: libvorbis0a: cutting files via the Python bindings fails: "ogg.OggError: lost sync"

Eike von Seggern eikevons at yahoo.de
Tue Oct 27 13:45:10 UTC 2009


Package: libvorbis0a
Version: 1.2.3-3
Severity: normal

Hello,

I'm using oggscissors.py to recalculate the granulepos of files recorded
with streamripper:
oggscissors.py infile.ogg outfile.ogg

Using version 1.2.0.dfsg-3.1 of the libvorbis* packages this works fine.
However updating to 1.2.3-3 breaks the above and I get the following
Python error message:

oggscissors.py infile.ogg outfile.ogg
[...]
Dumping pages 3
Counting packets
Traceback (most recent call last):
  File "./oggscissors.py", line 377, in <module>
    n, pages, packets, os, grskip = copy_packets(fin, fout, os, startpacket, count, pages, packets, grskip, 1)
  File "./oggscissors.py", line 108, in copy_packets
    total_packets = count_packets(fin) - skip_packets
  File "./oggscissors.py", line 85, in count_packets
    p = instream.packetout()
ogg.OggError: lost sync

I don't know if this is due to a deficiency in the python bindings. I
tried the available versions of the python-ogg and python-pyvorbis
packages without success. So I guess it's a problem in the C library
itself.

I attached the oggscissors.py script. The ogg file can be found under 

http://eeh06.physik.hu-berlin.de/~vseggern/libvorbisbug/infile.ogg

Thank you and
best regards
    eike



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (600, 'testing'), (202, 'unstable'), (101, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvorbis0a depends on:
ii  libc6                       2.9-25       GNU C Library: Shared libraries
ii  libogg0                     1.1.4~dfsg-1 Ogg bitstream library

libvorbis0a recommends no packages.

libvorbis0a suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oggscissors.py
Type: text/x-java
Size: 9014 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-xiph-maint/attachments/20091027/fa9513ac/attachment-0001.java>


More information about the pkg-xiph-maint mailing list