Opened 6 years ago

Closed 6 years ago

#51 closed defect (fixed)

FFMpeg hangs on some iptv stream.

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

Description

Sometimes on euronews stream, ffmpeg hangs.

FFmpeg version git-N-28947-gd0df293, Copyright (c) 2000-2011 the FFmpeg developers
  built on Apr  8 2011 12:32:22 with gcc 4.5.2 20101111 (prerelease)
  configuration: --cc=gcc45 --extra-cflags='-march=core2' --enable-version3 --enable-gpl --enable-nonfree --disable-devices --enable-avfilter --enable-postproc --enable-network --enable-libx264 --enable-libxvid --enable-libfaac --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-shared --enable-libmp3lame --enable-libtheora --enable-libvorbis --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.117. 0 / 52.117. 0
  libavformat  52.106. 0 / 52.106. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 77. 1 /  1. 77. 1
  libswscale    0. 13. 0 /  0. 13. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[mpeg2video @ 0x2950d000] mpeg_decode_postinit() failure
    Last message repeated 4 times
[mpegts @ 0x29536000] max_analyze_duration reached
Input #0, mpegts, from './euronews_not_working.ts':
  Duration: 19:53:39.47, start: 192.164489, bitrate: 2 kb/s
  Program 8211 
    Stream #0.0[0x300](ita): Subtitle: [6][0][0][0] / 0x0006
    Stream #0.1[0x8ad]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 3095 kb/s, 25.60 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.2[0x8b7](fra): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.3[0x8b8](eng): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.4[0x8b9](deu): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.5[0x8ba](ita): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.6[0x8bb](spa): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.7[0x8bc](por): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.8[0x8bd](rus): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.9[0x8be](ara): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.10[0x8bf](tur): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.11[0x8c0](per): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0.12[0x8c6]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s




ffmpeg -i ./euronews_not_working.ts -map 0:1 -map 0:3 ./test.mov
ffmpeg -i ./euronews_not_working.ts -an ./test.mov

Hangs with 100% CPU, and always increasing memory.


But: 
ffmpeg -i ./euronews_not_working.ts -vn ./test.mp3

Transcode ok.

Attach file: http://www.2shared.com/file/jYD_XAnS/euronews_not_working.html

Attachments (1)

test.ts (2.0 MB) - added by cehoyos 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by cehoyos

The original file plays fine with mplayer (-demuxer mpegts and -demuxer lavf) and ffplay, ffmpeg produces an unplayable avi file (MPlayer reports "Badly interleaved AVI file detected"), -map makes no difference.

$ ffmpeg -i test.ts out.avi
FFmpeg version git-N-29036-gc104a6e, Copyright (c) 2000-2011 the FFmpeg developers
  built on Apr 11 2011 22:52:06 with gcc 4.5.2
  configuration: --cc='/usr/local/gcc-4.5.2/bin/gcc -m32'
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.117. 1 / 52.117. 1
  libavformat  52.106. 0 / 52.106. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 78. 0 /  1. 78. 0
  libswscale    0. 13. 0 /  0. 13. 0
[mpeg2video @ 0x8c422f0] mpeg_decode_postinit() failure
    Last message repeated 10 times
Input #0, mpegts, from 'test.ts':
  Duration: 19:53:07.35, start: 196.204522, bitrate: 0 kb/s
  Program 8211
    Stream #0.0[0x300](ita): Subtitle: [6][0][0][0] / 0x0006
    Stream #0.1[0x8ad]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 3095 kb/s, 27.47 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.2[0x8b7](fra): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.3[0x8b8](eng): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.4[0x8b9](deu): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.5[0x8ba](ita): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.6[0x8bb](spa): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.7[0x8bc](por): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.8[0x8bd](rus): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.9[0x8be](ara): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.10[0x8bf](tur): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.11[0x8c0](per): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0.12[0x8c6]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
[buffer @ 0x8c41270] w:720 h:576 pixfmt:yuv420p
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf52.106.0
    Stream #0.0: Video: mpeg4, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream #0.1(ita): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.5 -> #0.1
Press [q] to stop encoding
[mpeg2video @ 0x8c422f0] warning: first frame is no keyframe
[mpeg2video @ 0x8c422f0] ac-tex damaged at 36 24.46 bitrate=  89.8kbits/s
[mpeg2video @ 0x8c422f0] Warning MVs not available
[mpeg2video @ 0x8c422f0] concealing 540 DC, 540 AC, 540 MV errors
[mp2 @ 0x8c59fe0] incomplete frame
Error while decoding stream #0.5
frame=  101 fps= 24 q=2.0 Lsize=   44296kB time=4.03 bitrate=89998.9kbits/s
video:2305kB audio:32kB global headers:0kB muxing overhead 1795.586149%

The following produces grey frames ad infinitum:

$ ffmpeg -i test.ts -an out.mpeg
FFmpeg version git-N-29036-gc104a6e, Copyright (c) 2000-2011 the FFmpeg developers
  built on Apr 11 2011 22:52:06 with gcc 4.5.2
  configuration: --cc='/usr/local/gcc-4.5.2/bin/gcc -m32'
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.117. 1 / 52.117. 1
  libavformat  52.106. 0 / 52.106. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 78. 0 /  1. 78. 0
  libswscale    0. 13. 0 /  0. 13. 0
[mpeg2video @ 0x8c422f0] mpeg_decode_postinit() failure
    Last message repeated 10 times
Input #0, mpegts, from 'test.ts':
  Duration: 19:53:07.35, start: 196.204522, bitrate: 0 kb/s
  Program 8211
    Stream #0.0[0x300](ita): Subtitle: [6][0][0][0] / 0x0006
    Stream #0.1[0x8ad]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 3095 kb/s, 27.47 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0.2[0x8b7](fra): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.3[0x8b8](eng): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.4[0x8b9](deu): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.5[0x8ba](ita): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.6[0x8bb](spa): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.7[0x8bc](por): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.8[0x8bd](rus): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.9[0x8be](ara): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.10[0x8bf](tur): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s (clean effects)
    Stream #0.11[0x8c0](per): Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
    Stream #0.12[0x8c6]: Audio: mp2, 48000 Hz, mono, s16, 64 kb/s
[buffer @ 0x8e2a650] w:720 h:576 pixfmt:yuv420p
[mpeg @ 0x8e28680] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpeg':
  Metadata:
    encoder         : Lavf52.106.0
    Stream #0.0: Video: mpeg1video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
[mpeg2video @ 0x8c422f0] warning: first frame is no keyframe

Changed 6 years ago by cehoyos

comment:2 Changed 6 years ago by cehoyos

  • Reproduced by developer set
  • Status changed from new to open

comment:3 Changed 6 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Resolution set to fixed
  • Status changed from open to closed
  • Version changed from git to git-master

Fixed in latest git master

Note: See TracTickets for help on using tickets.