Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#1544 closed defect (fixed)

Transcoding of mpeg file fails - Too large number of skiped frames

Reported by: cehoyos Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mpegps roundup
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

(Sample from issue 452)
I will post a link to a sample that cannot be transcoded, timestamps wraps after the first audio and first video frame, the resulting file is unplayable.

$ ffmpeg -i infinite_loop.avi out.avi
ffmpeg version N-42594-g56ae592 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 18 2012 09:14:59 with gcc 4.3.2
  configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-libtheora --extra-ldflags=-lm --enable-libvpx --enable-libxavs --enable-x11grab --enable-libass
  libavutil      51. 65.100 / 51. 65.100
  libavcodec     54. 41.100 / 54. 41.100
  libavformat    54. 17.100 / 54. 17.100
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  2.100 /  3.  2.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mpeg @ 0x90774e0] max_analyze_duration 5000000 reached at 5000000
Input #0, mpeg, from 'infinite_loop.avi':
  Duration: 00:00:47.92, start: 95443.337944, bitrate: 468 kb/s
    Stream #0:0[0x1c0]: Audio: mp2, 44100 Hz, mono, s16, 56 kb/s
    Stream #0:1[0x1e0]: Video: mpeg1video, yuv420p, 160x120 [SAR 1:1 DAR 4:3], 400 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf54.17.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 160x120 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, mono, s16
Stream mapping:
  Stream #0:1 -> #0:0 (mpeg1video -> mpeg4)
  Stream #0:0 -> #0:1 (mp2 -> libmp3lame)
Press [q] to stop, [?] for help
Too large number of skiped frames 2386083 time=00:00:44.32 bitrate=  68.6kbits/s
frame= 1189 fps=446 q=1.6 Lsize=     398kB time=00:00:47.56 bitrate=  68.5kbits/s
video:3690kB audio:372kB subtitle:0 global headers:0kB muxing overhead -90.213204%

Change History (4)

comment:2 Changed 4 years ago by cehoyos

  • Keywords roundup added

comment:3 Changed 3 years ago by compn

  • Resolution set to worksforme
  • Status changed from new to closed

seems to be fixed.

W:\mplayer-test>y:\ffmpeg -i infinite_loop.avi out.avi
ffmpeg version N-49448-gdc8dd2f Copyright (c) 2000-2013 the FFmpeg developers

built on Jan 29 2013 17:50:41 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzli

b --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-li
bcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-l
ibopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --e
nable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

libavutil 52. 17.100 / 52. 17.100
libavcodec 54. 91.100 / 54. 91.100
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 34.101 / 3. 34.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100

[mpeg @ 024e7960] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, mpeg, from 'infinite_loop.avi':

Duration: 00:00:47.92, start: 0.379744, bitrate: 468 kb/s

Stream #0:0[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 56 kb/s
Stream #0:1[0x1e0]: Video: mpeg1video, yuv420p, 160x120 [SAR 1:1 DAR 4:3], 400 kb/s, 25 fps, 25

tbr, 90k tbn, 25 tbc
File 'out.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'out.avi':

Metadata:

ISFT : Lavf54.61.104
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 160x120 [SAR 1:1 DAR 4:3], q=2-31, 200 k

b/s, 25 tbn, 25 tbc

Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, mono, s16p

Stream mapping:

Stream #0:1 -> #0:0 (mpeg1video -> mpeg4)
Stream #0:0 -> #0:1 (mp2 -> libmp3lame)

Press [q] to stop, ? for help
frame= 1189 fps= 81 q=2.3 Lsize= 1727kB time=00:00:47.96 bitrate= 295.0kbits/s
video:1272kB audio:372kB subtitle:0 global headers:0kB muxing overhead 5.062353%

out.avi plays fine.

comment:4 Changed 3 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Resolution changed from worksforme to fixed

Fixed by Harald Axmann.

Note: See TracTickets for help on using tickets.