Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#5706 closed defect (worksforme)

OGG Vorbis

Reported by: Samuel Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: ogg vorbis
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I got a "Not a Vorbis I audio packet" and a slow generated file 14 times bigger than the original one.

How to reproduce:
ffmpeg -v 9 -loglevel 99 -i lepi.ogg -f flac lepi.flac -report

ffmpeg version N-80974-gdf1dc52 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 50.100 / 57. 50.100
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-i' ... matched as input file with argument 'lepi.ogg'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'flac'.
Reading option 'lepi.flac' ... matched as output file.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Applying option loglevel (set logging level) with argument 99.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file lepi.ogg.
Successfully parsed a group of options.
Opening an input file: lepi.ogg.
[file @ 033da340] Setting default whitelist 'file,crypto'
[ogg @ 033d99c0] Format ogg probed with size=2048 and score=100
[ogg @ 033d99c0] Before avformat_find_stream_info() pos: 8624 bytes read:130843 seeks:3 nb_streams:1
[ogg @ 033d99c0] All info found
[ogg @ 033d99c0] After avformat_find_stream_info() pos: 8624 bytes read:130843 seeks:3 frames:1
Input #0, ogg, from 'lepi.ogg':
  Duration: 00:05:02.57, start: 0.000000, bitrate: 161 kb/s
    Stream #0:0, 1, 1/44100: Audio: vorbis, 44100 Hz, stereo, fltp, 128 kb/s
    Metadata:
      TITLE           : Lepidoptera
      ARTIST          : Epoq
      ALBUM           : Kahvi Collective
      DATE            : 2002
      COMMENT         : http://www.kahvi.org
Successfully opened the file.
Parsing a group of options: output file lepi.flac.
Applying option f (force format) with argument flac.
Successfully parsed a group of options.
Opening an output file: lepi.flac.
[file @ 034e0660] Setting default whitelist 'file,crypto'
Successfully opened the file.
detected 1 logical cores
[graph 0 input from stream 0:0 @ 034d0d60] Setting 'time_base' to value '1/44100'
[graph 0 input from stream 0:0 @ 034d0d60] Setting 'sample_rate' to value '44100'
[graph 0 input from stream 0:0 @ 034d0d60] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:0 @ 034d0d60] Setting 'channel_layout' to value '0x3'
[graph 0 input from stream 0:0 @ 034d0d60] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
[audio format for output stream 0:0 @ 034ddca0] Setting 'sample_fmts' to value 's16|s32'
[audio format for output stream 0:0 @ 034ddca0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 033d95c0] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 034f2820] picking s32 out of 2 ref:fltp
[auto-inserted resampler 0 @ 034f2820] [SWR @ 034fb040] Using fltp internally between filters
[auto-inserted resampler 0 @ 034f2820] ch:2 chl:stereo fmt:fltp r:44100Hz -> ch:2 chl:stereo fmt:s32 r:44100Hz
[flac @ 035646e0] encoding as 24 bits-per-sample
[flac @ 035646e0]  compression: 5
[flac @ 035646e0]  lpc type: Levinson-Durbin recursion with Welch window
[flac @ 035646e0]  prediction order: 1, 8
[flac @ 035646e0]  order method: estimate
[flac @ 035646e0]  partition order: 0, 8
[flac @ 035646e0]  block size: 4608
[flac @ 035646e0]  lpc precision: 15
[flac @ 034db3a0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, flac, to 'lepi.flac':
  Metadata:
    encoder         : Lavf57.41.100
    Stream #0:0, 0, 1/44100: Audio: flac, 44100 Hz, stereo, s32 (24 bit), 128 kb/s
    Metadata:
      TITLE           : Lepidoptera
      ARTIST          : Epoq
      ALBUM           : Kahvi Collective
      DATE            : 2002
      COMMENT         : http://www.kahvi.org
      encoder         : Lavc57.50.100 flac
Stream mapping:
  Stream #0:0 -> #0:0 (vorbis (native) -> flac (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
size=     533kB time=00:00:05.01 bitrate= 870.0kbits/s speed=  10x    
size=    1092kB time=00:00:10.13 bitrate= 882.3kbits/s speed=  10x    
size=    1633kB time=00:00:15.25 bitrate= 876.9kbits/s speed=  10x    
size=    2078kB time=00:00:17.86 bitrate= 952.5kbits/s speed=8.81x    
size=    2549kB time=00:00:20.58 bitrate=1014.4kbits/s speed=8.14x    
size=    2949kB time=00:00:22.89 bitrate=1055.2kbits/s speed=7.52x    
size=    3420kB time=00:00:25.60 bitrate=1094.4kbits/s speed=7.22x    
size=    3911kB time=00:00:28.42 bitrate=1127.2kbits/s speed=   7x    
size=    4347kB time=00:00:30.92 bitrate=1151.4kbits/s speed=6.76x    
size=    4832kB time=00:00:33.54 bitrate=1180.1kbits/s speed=6.58x    
size=    5301kB time=00:00:36.15 bitrate=1201.0kbits/s speed=6.45x    
size=    5773kB time=00:00:38.76 bitrate=1219.9kbits/s speed=6.35x    
size=    6223kB time=00:00:41.27 bitrate=1235.2kbits/s speed=6.23x    
size=    6755kB time=00:00:44.09 bitrate=1255.0kbits/s speed=6.18x    
size=    7265kB time=00:00:46.81 bitrate=1271.4kbits/s speed=6.11x    
size=    7783kB time=00:00:49.63 bitrate=1284.7kbits/s speed=6.08x    
size=    8239kB time=00:00:52.14 bitrate=1294.4kbits/s speed=6.02x    
size=    8691kB time=00:00:54.64 bitrate=1302.8kbits/s speed=5.97x    
size=    9129kB time=00:00:57.05 bitrate=1310.8kbits/s speed=5.91x    
size=    9587kB time=00:00:59.45 bitrate=1320.9kbits/s speed=5.85x    
size=   10128kB time=00:01:02.38 bitrate=1330.1kbits/s speed=5.84x    
size=   10670kB time=00:01:05.41 bitrate=1336.3kbits/s speed=5.85x    
size=   11360kB time=00:01:09.17 bitrate=1345.4kbits/s speed=5.92x    
size=   11926kB time=00:01:12.30 bitrate=1351.2kbits/s speed=5.93x    
size=   12406kB time=00:01:15.02 bitrate=1354.7kbits/s speed= 5.9x    
size=   12768kB time=00:01:17.11 bitrate=1356.4kbits/s speed=5.83x    
size=   13298kB time=00:01:20.14 bitrate=1359.3kbits/s speed=5.84x    
size=   13928kB time=00:01:23.59 bitrate=1364.9kbits/s speed=5.88x    
size=   14555kB time=00:01:27.04 bitrate=1369.9kbits/s speed=5.91x    
size=   15030kB time=00:01:29.75 bitrate=1371.8kbits/s speed=5.89x    
size=   15456kB time=00:01:32.26 bitrate=1372.3kbits/s speed=5.86x    
size=   15948kB time=00:01:35.81 bitrate=1363.5kbits/s speed= 5.9x    
size=   16531kB time=00:01:41.14 bitrate=1338.9kbits/s speed=6.04x    
size=   17092kB time=00:01:46.37 bitrate=1316.3kbits/s speed=6.16x    
size=   17735kB time=00:01:50.65 bitrate=1313.0kbits/s speed=6.23x    
size=   18426kB time=00:01:54.42 bitrate=1319.2kbits/s speed=6.26x    
size=   19077kB time=00:01:57.96 bitrate=1324.8kbits/s speed=6.28x    
size=   19823kB time=00:02:01.93 bitrate=1331.8kbits/s speed=6.32x    
size=   20493kB time=00:02:05.49 bitrate=1337.7kbits/s speed=6.34x    
timestamp discontinuity -127351292, new offset= 127351292
[vorbis @ 034f0b80] Ignoring comment header
[vorbis @ 034f0b80] Not a Vorbis I audio packet.
Error while decoding stream #0:0: Invalid data found when processing input
size=   21108kB time=00:02:10.09 bitrate=1329.1kbits/s speed=6.41x    
size=   21664kB time=00:02:15.31 bitrate=1311.5kbits/s speed= 6.5x    
size=   22212kB time=00:02:20.43 bitrate=1295.7kbits/s speed=6.59x    
size=   22751kB time=00:02:24.40 bitrate=1290.6kbits/s speed=6.62x    
size=   23186kB time=00:02:26.91 bitrate=1292.8kbits/s speed=6.58x    
size=   23626kB time=00:02:29.42 bitrate=1295.3kbits/s speed=6.55x    
size=   24073kB time=00:02:32.04 bitrate=1297.0kbits/s speed=6.52x    
size=   24545kB time=00:02:34.75 bitrate=1299.3kbits/s speed= 6.5x    
size=   25002kB time=00:02:37.36 bitrate=1301.5kbits/s speed=6.47x    
size=   25492kB time=00:02:40.08 bitrate=1304.5kbits/s speed=6.44x    
size=   25926kB time=00:02:42.48 bitrate=1307.1kbits/s speed=6.41x    
size=   26382kB time=00:02:44.99 bitrate=1309.9kbits/s speed=6.38x    
size=   26846kB time=00:02:47.60 bitrate=1312.1kbits/s speed=6.36x    
size=   27293kB time=00:02:50.00 bitrate=1315.1kbits/s speed=6.33x    
size=   27807kB time=00:02:52.72 bitrate=1318.8kbits/s speed=6.31x    
size=   28332kB time=00:02:55.55 bitrate=1322.0kbits/s speed= 6.3x    
size=   28826kB time=00:02:58.26 bitrate=1324.7kbits/s speed=6.28x    
size=   29262kB time=00:03:00.66 bitrate=1326.8kbits/s speed=6.26x    
size=   29712kB time=00:03:03.17 bitrate=1328.8kbits/s speed=6.24x    
size=   30141kB time=00:03:05.47 bitrate=1331.3kbits/s speed=6.21x    
size=   30679kB time=00:03:08.29 bitrate=1334.7kbits/s speed= 6.2x    
size=   31214kB time=00:03:11.32 bitrate=1336.5kbits/s speed=6.19x    
size=   31832kB time=00:03:14.66 bitrate=1339.5kbits/s speed= 6.2x    
size=   32438kB time=00:03:18.01 bitrate=1342.0kbits/s speed=6.21x    
size=   32949kB time=00:03:20.83 bitrate=1344.0kbits/s speed= 6.2x    
size=   33349kB time=00:03:23.13 bitrate=1344.9kbits/s speed=6.17x    
size=   33776kB time=00:03:25.64 bitrate=1345.5kbits/s speed=6.16x    
size=   34361kB time=00:03:28.87 bitrate=1347.6kbits/s speed=6.16x    
size=   34762kB time=00:03:31.07 bitrate=1349.1kbits/s speed=6.13x    
size=   35314kB time=00:03:34.10 bitrate=1351.2kbits/s speed=6.13x    
size=   35625kB time=00:03:35.88 bitrate=1351.8kbits/s speed=6.09x    
size=   35932kB time=00:03:37.65 bitrate=1352.4kbits/s speed=6.06x    
size=   36164kB time=00:03:39.01 bitrate=1352.7kbits/s speed=6.01x    
size=   36722kB time=00:03:42.88 bitrate=1349.7kbits/s speed=6.04x    
size=   37994kB time=00:03:54.58 bitrate=1326.8kbits/s speed=6.27x    
size=   39644kB time=00:04:03.98 bitrate=1331.1kbits/s speed=6.43x    
size=   41525kB time=00:04:14.01 bitrate=1339.2kbits/s speed=6.61x    
size=   43233kB time=00:04:23.31 bitrate=1345.0kbits/s speed=6.76x    
size=   45082kB time=00:04:33.34 bitrate=1351.1kbits/s speed=6.93x    
size=   46565kB time=00:04:41.81 bitrate=1353.6kbits/s speed=7.06x    
size=   48309kB time=00:04:51.21 bitrate=1358.9kbits/s speed= 7.2x    
size=   49956kB time=00:04:59.57 bitrate=1366.1kbits/s speed=7.32x    
size=   51838kB time=00:05:09.18 bitrate=1373.4kbits/s speed=7.46x    
size=   53446kB time=00:05:17.44 bitrate=1379.2kbits/s speed=7.57x    
size=   54073kB time=00:05:20.68 bitrate=1381.3kbits/s speed=7.55x    
size=   54727kB time=00:05:24.02 bitrate=1383.6kbits/s speed=7.54x    
size=   55394kB time=00:05:27.47 bitrate=1385.7kbits/s speed=7.54x    
size=   55964kB time=00:05:30.41 bitrate=1387.5kbits/s speed=7.52x    
size=   56549kB time=00:05:33.53 bitrate=1388.9kbits/s speed= 7.5x    
size=   57017kB time=00:05:36.04 bitrate=1389.9kbits/s speed=7.47x    
size=   57532kB time=00:05:38.77 bitrate=1391.2kbits/s speed=7.45x    
size=   57995kB time=00:05:41.26 bitrate=1392.1kbits/s speed=7.42x    
size=   58414kB time=00:05:43.56 bitrate=1392.8kbits/s speed=7.39x    
size=   58914kB time=00:05:46.29 bitrate=1393.7kbits/s speed=7.37x    
size=   59394kB time=00:05:48.89 bitrate=1394.6kbits/s speed=7.35x    
size=   59848kB time=00:05:51.40 bitrate=1395.2kbits/s speed=7.33x    
size=   60283kB time=00:05:53.80 bitrate=1395.8kbits/s speed= 7.3x    
size=   60767kB time=00:05:56.52 bitrate=1396.3kbits/s speed=7.28x    
size=   61207kB time=00:05:58.92 bitrate=1397.0kbits/s speed=7.25x    
size=   61718kB time=00:06:01.74 bitrate=1397.6kbits/s speed=7.24x    
size=   62135kB time=00:06:04.04 bitrate=1398.2kbits/s speed=7.21x    
size=   62602kB time=00:06:06.65 bitrate=1398.7kbits/s speed=7.19x    
size=   63061kB time=00:06:09.16 bitrate=1399.4kbits/s speed=7.17x    
size=   63523kB time=00:06:11.78 bitrate=1399.7kbits/s speed=7.15x    
size=   63852kB time=00:06:13.65 bitrate=1399.9kbits/s speed=7.12x    
size=   64128kB time=00:06:15.22 bitrate=1400.1kbits/s speed=7.08x    
size=   64425kB time=00:06:16.89 bitrate=1400.3kbits/s speed=7.04x    
size=   64699kB time=00:06:18.46 bitrate=1400.4kbits/s speed=7.01x    
size=   65109kB time=00:06:20.77 bitrate=1400.8kbits/s speed=6.98x    
size=   65610kB time=00:06:23.58 bitrate=1401.2kbits/s speed=6.97x    
size=   66067kB time=00:06:26.19 bitrate=1401.4kbits/s speed=6.95x    
size=   66533kB time=00:06:28.81 bitrate=1401.8kbits/s speed=6.94x    
size=   67000kB time=00:06:31.42 bitrate=1402.2kbits/s speed=6.92x    
size=   67402kB time=00:06:33.73 bitrate=1402.4kbits/s speed= 6.9x    
size=   68088kB time=00:06:38.11 bitrate=1401.1kbits/s speed=6.91x    
size=   68504kB time=00:06:41.14 bitrate=1399.0kbits/s speed=6.91x    
size=   68941kB time=00:06:44.06 bitrate=1397.7kbits/s speed= 6.9x    
size=   69376kB time=00:06:46.88 bitrate=1396.8kbits/s speed=6.89x    
size=   69764kB time=00:06:49.81 bitrate=1394.6kbits/s speed=6.88x    
size=   70114kB time=00:06:52.73 bitrate=1391.6kbits/s speed=6.87x    
size=   70681kB time=00:06:57.54 bitrate=1386.7kbits/s speed=6.89x    
size=   71204kB time=00:07:02.66 bitrate=1380.1kbits/s speed=6.92x    
size=   71665kB time=00:07:07.68 bitrate=1372.7kbits/s speed=6.94x    
[output stream 0:0 @ 034ddba0] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
size=   71860kB time=00:07:09.92 bitrate=1369.2kbits/s speed=6.95x    
video:0kB audio:71852kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.011264%
Input file #0 (lepi.ogg):
  Input stream #0:0 (audio): 29674 packets read (6038416 bytes); 29671 frames decoded (18955072 samples); 
  Total: 29674 packets (6038416 bytes) demuxed
Output file #0 (lepi.flac):
  Output stream #0:0 (audio): 4114 frames encoded (18955072 samples); 4115 packets muxed (73576448 bytes); 
  Total: 4115 packets (73576448 bytes) muxed
29671 frames successfully decoded, 1 decoding errors
[AVIOContext @ 034db920] Statistics: 2 seeks, 4116 writeouts
[AVIOContext @ 033da440] Statistics: 6215825 bytes read, 3 seeks

Attachments (1)

OGG Vorbis.txt (1.2 KB ) - added by Samuel 8 years ago.
OGGvorbis_MediaInfo_5706

Download all attachments as: .zip

Change History (8)

comment:1 by Carl Eugen Hoyos, 8 years ago

Title and console output do not match;-(
Did you upload a sample?

by Samuel, 8 years ago

Attachment: OGG Vorbis.txt added

OGGvorbis_MediaInfo_5706

comment:2 by Samuel, 8 years ago

Wait...you are so fast for me ;-)
Sorry about the bad title choice, i am not an experimented guy so i leave it to you and learn ;-)

Here the OGG Vorbis file :
https://we.tl/B66DqK7tmC

P.S. I tried with "-strict -2 -acodec vorbis" and "-acodec libvorbis" options but i didn't got better result.

Last edited 8 years ago by Samuel (previous) (diff)

comment:3 by Samuel, 8 years ago

Summary: OGG Vorbis file not recognizedOGG Vorbis

comment:4 by Carl Eugen Hoyos, 8 years ago

Keywords: ogg vorbis added; Vorbis removed
Resolution: worksforme
Status: newclosed

oggdec seems to confirm the decoding error and the output length of seven minutes as opposed to five minutes decoded by some older FFmpeg versions. ogginfo confirms the estimated length of five minutes.

in reply to:  4 ; comment:5 by Samuel, 8 years ago

Replying to cehoyos:

oggdec seems to confirm the decoding error and the output length of seven minutes as opposed to five minutes decoded by some older FFmpeg versions. ogginfo confirms the estimated length of five minutes.

So, that mean the different lenght from original audio file is normal ? as the huge file size ?
Or that it depend of the Xiph.org decoder and not from FFmpeg itself ?
Do i need to report it somewhere else or not ?

Sorry for not fully understand the meaning of your technical comment ;-(

Last edited 8 years ago by Samuel (previous) (diff)

in reply to:  5 comment:6 by Carl Eugen Hoyos, 8 years ago

Replying to Sami32:

Replying to cehoyos:

oggdec seems to confirm the decoding error and the output length of seven minutes as opposed to five minutes decoded by some older FFmpeg versions. ogginfo confirms the estimated length of five minutes.

So, that mean the different lenght from original audio file is normal ?

The duration of the input and the output file should be identical (and is identical here).

as the huge file size ?

Lossless copies of audio files are typically much bigger than (lossy) original files.

Or that it depend of the Xiph.org decoder and not from FFmpeg itself ?

I may misunderstand but I believe the issue is the used encoder.

Do i need to report it somewhere else or not ?

If you know how the sample was created you can report the issue there.

Please post all usage questions on the user mailing list, this is a bug tracker, not a support forum.

comment:7 by Samuel, 8 years ago

Thank you very much for your explanations, and sorry to bothered you :-/ i was not on purpose...
My input is around 5mn and my output is around 7mn
size= 71860kB time=00:07:09.92 bitrate=1369.2kbits/s speed=6.95x

The funny part is that this sample come from them :
http://www.vorbis.com/music/Epoq-Lepidoptera.ogg
So, i will try again to see if it was corrupted when downloading ?

EDIT : Yes, it was corrupted...
Learning from you, to use the oggdec and ogginfo tools, i got 5:02 mins with oggdec 1.10.1, so what i understand is that FFmpeg is using latest developpment version.

Last edited 8 years ago by Samuel (previous) (diff)
Note: See TracTickets for help on using tickets.