Opened 12 years ago

Closed 11 years ago

#1345 closed defect (fixed)

ffmpeg loops tiny flac (av_read_frame duplicates frames?)

Reported by: uwwint Owned by:
Priority: important Component: avcodec
Version: git-master Keywords: flac regression
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

I have a tiny flac. When I transcode via ffmpeg_g into an mp3 the sound is looped.

./ffmpeg_g -i sinemarker.1.flac test.mp3
ffmpeg version N-40960-ge15f128 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 23 2012 12:59:16 with gcc 4.4.3
  configuration: --enable-nonfree --enable-shared --enable-libmp3lame --prefix=/home/uwe/Dokumente/ffmpeg/ffmpeg.git/installDir
  libavutil      51. 53.100 / 51. 53.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.100 / 54.  6.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 76.100 /  2. 76.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
Input #0, flac, from 'sinemarker.1.flac':
  Duration: 00:00:00.50, bitrate: 495 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
Output #0, mp3, to 'test.mp3':
  Metadata:
    TSSE            : Lavf54.6.100
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16
Stream mapping:
  Stream #0:0 -> #0:0 (flac -> libmp3lame)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 0
DTS 4096, next:592874 st:0 invalid dropping                                                                                          
PTS 4096, next:592874 invalid dropping st:0                                                                                          
DTS 8192, next:1185748 st:0 invalid dropping                                                                                         
PTS 8192, next:1185748 invalid dropping st:0                                                                                         
DTS 12288, next:1778622 st:0 invalid dropping                                                                                        
PTS 12288, next:1778622 invalid dropping st:0                                                                                        
DTS 16384, next:2371496 st:0 invalid dropping                                                                                        
PTS 16384, next:2371496 invalid dropping st:0                                                                                        
DTS 20480, next:2964370 st:0 invalid dropping                                                                                        
PTS 20480, next:2964370 invalid dropping st:0                                                                                        
[libmp3lame @ 0x13e25c0] Trying to remove 1152 samples, but que empty                                                                
size=      48kB time=00:00:03.03 bitrate= 129.6kbits/s                                                                               
video:0kB audio:48kB global headers:0kB muxing overhead 0.388540%

Then compare flac with mp3 in audacity/some other program that doesn't use ffmpeg (mplayer doesn't work). The mp3 contains multiple loops of the flac.

Attachments (1)

sinemarker.1.flac (30.3 KB ) - added by uwwint 12 years ago.
the small flac

Download all attachments as: .zip

Change History (3)

by uwwint, 12 years ago

Attachment: sinemarker.1.flac added

the small flac

comment:1 by Carl Eugen Hoyos, 12 years ago

Component: undeterminedavcodec
Keywords: regression added; tiny loop removed
Priority: normalimportant
Reproduced by developer: set
Status: newopen

Regression since 4b5d472.

comment:2 by Carl Eugen Hoyos, 11 years ago

Resolution: fixed
Status: openclosed

Fixed by Michael Chinen.

Note: See TracTickets for help on using tickets.