Opened 3 years ago

#9387 new defect

Trimming Opus file can result in trimmed Opus file with "Unsupported huge granule pos" errors

Reported by: Albert Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: opus unsupported huge granule pos
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
When trimming an Opus file, with no re-encoding, the resultant trimmed Opus file can contain "Unsupported huge granule pos -xxxxxx" errors

How to reproduce:

% ffmpeg -ss 00:00:10 -to 00:00:15 -i linus.opus -codec copy ex.opus
ffmpeg version N-103279-g515e7fbce1 Copyright (c) 2000-2021 the FFmpeg developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.28)
  configuration: --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libopus --enable-libxvid --samples=fate-suite/
  libavutil      57.  4.101 / 57.  4.101
  libavcodec     59.  4.101 / 59.  4.101
  libavformat    59.  4.101 / 59.  4.101
  libavdevice    59.  0.101 / 59.  0.101
  libavfilter     8.  2.100 /  8.  2.100
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
  libpostproc    56.  0.100 / 56.  0.100

% ffprobe ex.opus

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Attachments (6)

linus.aa (1.9 MB ) - added by Albert 3 years ago.
linus.ab (1.9 MB ) - added by Albert 3 years ago.
linus.ac (1.9 MB ) - added by Albert 3 years ago.
linus.ad (1.9 MB ) - added by Albert 3 years ago.
linus.ae (403.1 KB ) - added by Albert 3 years ago.
cat linus.a* > linus.opus
ex.opus (184.3 KB ) - added by Albert 3 years ago.
extracted from linus.opus

Change History (6)

by Albert, 3 years ago

Attachment: linus.aa added

by Albert, 3 years ago

Attachment: linus.ab added

by Albert, 3 years ago

Attachment: linus.ac added

by Albert, 3 years ago

Attachment: linus.ad added

by Albert, 3 years ago

Attachment: linus.ae added

cat linus.a* > linus.opus

by Albert, 3 years ago

Attachment: ex.opus added

extracted from linus.opus

Note: See TracTickets for help on using tickets.