Opened 4 years ago

Last modified 4 years ago

#1891 open defect

Problem transcoding realmedia file

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

Description

Summary of the bug:
When trying to convert a certain file, ffmpeg does not terminate. Seems to be related to the input file, since no output formats i have tried works.

How to reproduce:

This is the command I am trying to execute:
$ ffmpeg.exe -xerror -i "438bdca27d59ed83f91cb8dd9dc127cd.rm" -r 30 -vcodec mpeg1video -b:v 200k -acodec libvorbis -ac 2 -ar 48000 -ab 128k -y "test.mpg"

This is the output of "ffmpeg -v 9 -loglevel 99 -i 438bdca27d59ed83f91cb8dd9dc127cd.rm":
$ ffmpeg -v 9 -loglevel 99 -i 438bdca27d59ed83f91cb8dd9dc127cd.rm
ffmpeg version N-41668-g564bb24 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jun 17 2012 20:18:05 with gcc 4.6.3
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --ena  libavutil      51. 58.100 / 51. 58.100
  libavcodec     54. 25.100 / 54. 25.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 81.100 /  2. 81.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[rm @ 00000000021df300] Format rm probed with size=2048 and score=100
[rm @ 00000000021df300] Unsupported stream type 00000187
[rm @ 00000000021df300] Unsupported stream type 00000431
[rm @ 00000000021df300] Unsupported stream type 0000028f
[rm @ 00000000021df300] File position before avformat_find_stream_info() is 3953
[cook @ 000000000034da60] codecdata_length=8
[cook @ 000000000034da60] subpacket[0].cookversion=1000001
[cook @ 000000000034da60] MONO
[cook @ 000000000034da60] sqvh VLC init
[cook @ 000000000034da60] VLC tables initialized.
[cook @ 000000000034da60] MDCT initialized, order = 11.
[rm @ 00000000021df300] parser not found for codec rv20, packets or times may be invalid.
    Last message repeated 2 times
[cook @ 0000000000365bc0] codecdata_length=8
[cook @ 0000000000365bc0] subpacket[0].cookversion=1000001
[cook @ 0000000000365bc0] MONO
[cook @ 0000000000365bc0] sqvh VLC init
[cook @ 0000000000365bc0] VLC tables initialized.
[cook @ 0000000000365bc0] MDCT initialized, order = 11.
[cook @ 000000000036e240] codecdata_length=8
[cook @ 000000000036e240] subpacket[0].cookversion=1000001
[cook @ 000000000036e240] MONO
[cook @ 000000000036e240] sqvh VLC init
[cook @ 000000000036e240] VLC tables initialized.
[cook @ 000000000036e240] MDCT initialized, order = 11.
[rm @ 00000000021df300] parser not found for codec rv20, packets or times may be invalid.
    Last message repeated 4 times
[rm @ 00000000021df300] max_analyze_duration 5000000 reached at 5000000
[cook @ 000000000034da60] Deallocating memory.
[cook @ 000000000034da60] Memory deallocated.
[cook @ 0000000000365bc0] Deallocating memory.
[cook @ 0000000000365bc0] Memory deallocated.
[cook @ 000000000036e240] Deallocating memory.
[cook @ 000000000036e240] Memory deallocated.
[rm @ 00000000021df300] File position after avformat_find_stream_info() is 163859
Input #0, rm, from '438bdca27d59ed83f91cb8dd9dc127cd.rm':
  Metadata:
    title           : Title
    author          : Author
    copyright       : (c)2000
    comment         :
  Duration: 00:01:03.71, start: 0.000000, bitrate: 649 kb/s
    Stream #0:0, 0, 1/1000: Data: none
    Stream #0:1, 0, 1/1000: Data: none
    Stream #0:2, 0, 1/1000: Data: none
    Stream #0:3, 0, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:4, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:5, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 132 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:6, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 68 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:7, 196, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:8, 0, 1/1000: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, flt, 32 kb/s
    Stream #0:9, 75, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:10, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:11, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:12, 0, 1/1000: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 1/1000, 68 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
At least one output file must be specified
[AVIOContext @ 00000000021df840] Statistics: 200630 bytes read, 2 seeks

PS.
I work at a company (www.netclean.com) that makes software used to analyzes data from seized computers in child sexual abuse investigations, and we use ffmpeg to convert video files. We sometimes test our software on legal porn to test functionality such as nudity detection etc. This is why the file I am trying to convert is porn.

Attachments (1)

12150B40CD272B4733AA2537F2F9E113274B8F6F.mpg (1.3 MB) - added by eklann 4 years ago.

Download all attachments as: .zip

Change History (19)

comment:1 Changed 4 years ago by eklann

The file I want to attach is about 5M in size, so i cannot upload it. How should I proceed?

comment:2 follow-up: Changed 4 years ago by cehoyos

Either read http://ffmpeg.org/bugreports.html or upload to http://www.datafilehost.com/ and report the download link here.

comment:3 in reply to: ↑ 2 Changed 4 years ago by eklann

Replying to cehoyos:

Thank you. I uploaded it to ftp://upload.ffmpeg.org/incoming/

Last edited 4 years ago by eklann (previous) (diff)

comment:4 Changed 4 years ago by cehoyos

  • Keywords real added
  • Version changed from unspecified to git-master

While I am still working on completing this ticket (FFmpeg does terminate, but it does not work as expected, also reproducible with -an), could you explain why you are using -acodec libvorbis ?
Is there any software that allows to decode the resulting file or any specification that explains how vorbis should be muxed in mpeg-ps? (This is of course not related to the bug you reported, I am just trying to understand your use-case.)

comment:5 follow-up: Changed 4 years ago by eklann

How long does it take for you to run the command until it terminates? Also the memory consumption i get is huge (varying over time, but mostly between 1.5 and 2 GB).

We convert all video files to that format (with some variations in video bitrate depending on resolution), because our video player works good with that format. VLC media player can also play the converted files just fine.

comment:6 in reply to: ↑ 5 Changed 4 years ago by cehoyos

Replying to eklann:

We convert all video files to that format (with some variations in video bitrate depending on resolution), because our video player works good with that format. VLC media player can also play the converted files just fine.

This seems very hard to believe (actually impossible). Could you provide a (very short) sample?

comment:7 follow-up: Changed 4 years ago by eklann

the file 12150B40CD272B4733AA2537F2F9E113274B8F6F.mpg is converted using the same arguments.

comment:8 in reply to: ↑ 7 Changed 4 years ago by cehoyos

Replying to eklann:

the file 12150B40CD272B4733AA2537F2F9E113274B8F6F.mpg is converted using the same arguments.

The sample looks as if it was converted with -acodec libmp3lame (and not with -acodec libvorbis).

comment:9 Changed 4 years ago by eklann

Thats really strange, but you seem to be right. I guess this is a bug in my program that builds the arguments to ffmpeg.

Anyhow: I still cannot get ffmpeg to terminate when i try to convert the first file i specified. I have also tested -an and it does not terminate then either (although the memory consumption is much more resonable)

comment:10 Changed 4 years ago by eklann

I'm sorry to have confused you from the beginning, and not having recognized this error myself. The command that I have been trying to execute all along is with the parameter "-acodec libmp3lame", just as you say. My apologies.

It does not however change the fact that when I try to convert the file, ffmpeg does not terminate. For clarity, here is the full command:

ffmpeg.exe -xerror -i "ffmpeg_not_terminating.rm" -r 30 -vcodec mpeg1video -b:v 200k -acodec libmp3lame -ac 2 -ar 48000 -ab 128k -y "test.mpg"

comment:11 Changed 4 years ago by cehoyos

  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from FFmpeg not terminating on given file to FFmpeg duplicating too many frames

The sample plays fine with ffplay and mplayer -demuxer lavf -vid 3 -aid 1 but too many frames get duplicated on reencoding with ffmpeg.

$ ffmpeg -i ffmpeg_not_terminating.rm -r 30 -an -qscale 2 out.mpg
ffmpeg version N-46483-g98506e1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov  6 2012 13:36:48 with gcc 4.7 (SUSE Linux)
  configuration: --disable-indev=jack --enable-gpl --enable-libvorbis
  libavutil      52.  5.100 / 52.  5.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 21.106 /  3. 21.106
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[rm @ 0x3403240] Unsupported stream type 00000187
[rm @ 0x3403240] Unsupported stream type 00000431
[rm @ 0x3403240] max_analyze_duration 5000000 reached at 5000000
Input #0, rm, from 'ffmpeg_not_terminating.rm':
  Metadata:
    File ID         : 49389963-cfd9-fcc8-b745-8eefb2b4bb99
    Modification Date: 5/10/2001 20:30:24
    Generated By    : RealProducer G2 Core SDK
    Target Audiences: DSL/Cable Modem (220 Kbps);
    Video Quality   : Sharpest Image Video
    Audio Format    : Music
    Creation Date   : 5/10/2001 20:28:07
    ASMRuleBook     : #($Bandwidth < 165106),Stream2Bandwidth = 32148, Stream3Bandwidth = 68596;#($Bandwidth >= 165106) && ($Bandwidth < 220106),Stre
    title           : Title
    author          : Author
    copyright       : (c)2000
    comment         :
  Duration: 00:01:03.71, start: 0.000000, bitrate: 649 kb/s
    Stream #0:0: Data: none
    Stream #0:1: Data: none
    Stream #0:2: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, fltp, 32 kb/s
    Stream #0:3: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:4: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 132 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:5: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 68 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:6: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, fltp, 32 kb/s
    Stream #0:7: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, fltp, 32 kb/s
    Stream #0:8: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:9: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:10: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 187 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
    Stream #0:11: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 68 kb/s, 15 fps, 15 tbr, 1k tbn, 1k tbc
Please use -q:a or -q:v, -qscale is ambiguous
[mpeg @ 0x3422520] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'out.mpg':
  Metadata:
    File ID         : 49389963-cfd9-fcc8-b745-8eefb2b4bb99
    Modification Date: 5/10/2001 20:30:24
    Generated By    : RealProducer G2 Core SDK
    Target Audiences: DSL/Cable Modem (220 Kbps);
    Video Quality   : Sharpest Image Video
    Audio Format    : Music
    Creation Date   : 5/10/2001 20:28:07
    ASMRuleBook     : #($Bandwidth < 165106),Stream2Bandwidth = 32148, Stream3Bandwidth = 68596;#($Bandwidth >= 165106) && ($Bandwidth < 220106),Stre
    title           : Title
    author          : Author
    copyright       : (c)2000
    comment         :
    encoder         : Lavf54.36.100
    Stream #0:0: Video: mpeg1video, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 30 tbc
Stream mapping:
  Stream #0:3 -> #0:0 (rv20 -> mpeg1video)
Press [q] to stop, [?] for help
[rm @ 0x3403240] DATA tag in middle of chunk, file may be broken.
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rm @ 0x3403240] DATA tag in middle of chunk, file may be broken.
[rv20 @ 0x3426f40] I cbpy damaged at 10 3
[rv20 @ 0x3426f40] ERROR at MB 10 3
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] illegal ac vlc code at 16x7
[rv20 @ 0x3426f40] ERROR at MB 16 7
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] concealing 300 DC, 300 AC, 300 MV errors in I frame
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] illegal ac vlc code at 2x7
[rv20 @ 0x3426f40] ERROR at MB 2 7
frame= 5939 fps=0.0 q=2.0 size=     718kB time=00:03:17.90 bitrate=  29.7kbits/s dup=5938 drop=0    ^MCOUNT ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 299 DC, 299 AC, 299 MV errors in P frame
[rv20 @ 0x3426f40] concealing 275 DC, 275 AC, 275 MV errors in B frame
frame=256614 fps=7000 q=2.0 size=   31038kB time=02:22:33.73 bitrate=  29.7kbits/s dup=256612 drop=1    ^Mreserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] illegal dc 0 at 18 14
[rv20 @ 0x3426f40] illegal ac vlc code at 18x14
[rv20 @ 0x3426f40] ERROR at MB 18 14
[rv20 @ 0x3426f40] Slice type mismatch
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] concealing 276 DC, 276 AC, 276 MV errors in P frame
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 141 DC, 141 AC, 141 MV errors in P frame
Input stream #0:3 frame changed from size:320x240 fmt:yuv420p to size:240x176 fmt:yuv420p
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 273 DC, 273 AC, 273 MV errors in P frame
Input stream #0:3 frame changed from size:240x176 fmt:yuv420p to size:320x240 fmt:yuv420p
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
PTS 636726228, next:8487952000 invalid dropping st:3
[rv20 @ 0x3426f40] I cbpy damaged at 7 6
[rv20 @ 0x3426f40] ERROR at MB 7 6
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 296 DC, 296 AC, 296 MV errors in P frame
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] I cbpy damaged at 0 4
[rv20 @ 0x3426f40] ERROR at MB 0 4
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] Slice type mismatch
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] Slice type mismatch
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
[rv20 @ 0x3426f40] concealing 300 DC, 300 AC, 300 MV errors in I frame
[rv20 @ 0x3426f40] HEADER ERROR
frame=1384641 fps=6097 q=2.0 size=  587276kB time=12:49:14.63 bitrate= 104.2kbits/s dup=1384638 drop=5
early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
[rv20 @ 0x3426f40] illegal ac vlc code at 5x7
[rv20 @ 0x3426f40] ERROR at MB 5 7
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 298 DC, 298 AC, 298 MV errors in P frame
DTS 469768582, next:8520845000 st:3 invalid dropping
PTS 469768582, next:8520845000 invalid dropping st:3
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] I cbpc damaged at 7 7
[rv20 @ 0x3426f40] ERROR at MB 7 7
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 34 DC, 34 AC, 34 MV errors in P frame
Input stream #0:3 frame changed from size:320x240 fmt:yuv420p to size:160x128 fmt:yuv420p
[rv20 @ 0x3426f40] COUNT ERROR
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] run overflow at 2x6 i:0
[rv20 @ 0x3426f40] ERROR at MB 2 6
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
DTS 250890696, next:41177433000 st:3 invalid dropping
PTS 250890696, next:41177433000 invalid dropping st:3
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 222 DC, 222 AC, 222 MV errors in P frame
Input stream #0:3 frame changed from size:160x128 fmt:yuv420p to size:320x240 fmt:yuv420p
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
DTS 513052034, next:2628000 st:3 invalid dropping
PTS 513052034, next:2628000 invalid dropping st:3
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 2 times
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
DTS 121919953, next:8487886000 st:3 invalid dropping
PTS 121919953, next:8487886000 invalid dropping st:3
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] illegal ac vlc code at 2x3
[rv20 @ 0x3426f40] ERROR at MB 2 3
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] I cbpy damaged at 5 4
[rv20 @ 0x3426f40] ERROR at MB 5 4
DTS 542125888, next:8488017000 st:3 invalid dropping
PTS 542125888, next:8488017000 invalid dropping st:3
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
DTS 636726228, next:8488215000 st:3 invalid dropping
PTS 807440896, next:8488215000 invalid dropping st:3
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] I cbpy damaged at 11 3
[rv20 @ 0x3426f40] ERROR at MB 11 3
DTS 530084356, next:10944000 st:3 invalid dropping
PTS 530084356, next:10944000 invalid dropping st:3
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] error, qscale:0
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] Slice type mismatch
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] Slice type mismatch
    Last message repeated 2 times
[rv20 @ 0x3426f40] illegal ac vlc code at 11x9
[rv20 @ 0x3426f40] ERROR at MB 11 9
[rv20 @ 0x3426f40] Slice type mismatch
[rv20 @ 0x3426f40] I cbpy damaged at 3 9
[rv20 @ 0x3426f40] ERROR at MB 3 9
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] I cbpy damaged at 11 2
[rv20 @ 0x3426f40] ERROR at MB 11 2
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 52 DC, 52 AC, 52 MV errors in P frame
Input stream #0:3 frame changed from size:320x240 fmt:yuv420p to size:160x128 fmt:yuv420p
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 283 DC, 283 AC, 283 MV errors in B frame
Input stream #0:3 frame changed from size:160x128 fmt:yuv420p to size:320x240 fmt:yuv420p
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
DTS 370950529, next:12378000 st:3 invalid dropping
PTS 370950529, next:12378000 invalid dropping st:3
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 236 DC, 236 AC, 236 MV errors in P frame
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] I cbpc damaged at 0 7
[rv20 @ 0x3426f40] ERROR at MB 0 7
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
    Last message repeated 1 times
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] reserved bit set
[rv20 @ 0x3426f40] HEADER ERROR
DTS 254838784, next:8487884000 st:3 invalid dropping
PTS 254838784, next:8487884000 invalid dropping st:3
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] run overflow at 6x3 i:0
[rv20 @ 0x3426f40] ERROR at MB 6 3
[rv20 @ 0x3426f40] [IMGUTILS @ 0x7fffcf39d6d0] Picture size 0x0 is invalid
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] warning: first frame is no keyframe
[rv20 @ 0x3426f40] concealing 281 DC, 281 AC, 281 MV errors in P frame
DTS 556303872, next:8454791000 st:3 invalid dropping
PTS 556303872, next:8454791000 invalid dropping st:3
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] early B pix
[rv20 @ 0x3426f40] HEADER ERROR
[rv20 @ 0x3426f40] error, qscale:0
[rv20 @ 0x3426f40] HEADER ERROR
ffmpeg_not_terminating.rm: Input/output error
frame=1384641 fps=6095 q=2.0 Lsize=  587278kB time=12:49:14.66 bitrate= 104.2kbits/s dup=1384638 drop=12
video:582056kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.897134%

comment:12 Changed 4 years ago by cehoyos

Memory usage is >2G when running above command line.

comment:13 Changed 4 years ago by michael

you can use -dts_error_threshold to set the threshold at which timestamps will be considered wrong and no duplication will happen. If that is set to a small value the duplication wil be limited. There may be a better solution though, i didnt investigate why this happens ...

comment:14 Changed 4 years ago by eklann

When I use -dts_error_threshold with a value under 8200, the file is converted. However the converted file is only a gray surface for 2:51, while the input file is 1:03. Using a higher value for -dts_error_threshold gives the same problem as I originally described.

comment:15 Changed 4 years ago by compn

  • Component changed from undetermined to avformat

file plays fine with mplayer and ffrv20.
(which means you can use mencoder to convert this)
leads me to believe problem is demxuer.

Version 0, edited 4 years ago by compn (next)

comment:16 Changed 4 years ago by compn

  • Component changed from avformat to undetermined

this works: not sure why -map 0:8 is required.
removing component, as i dont know where the problem is now.

W:\mplayer-test>y:\ffmpeg -i ffmpeg_not_terminating.rm -map 0:8 -y 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

[rm @ 024e79c0] Unsupported stream type 00000187
[rm @ 024e79c0] Unsupported stream type 00000431
[rm @ 024e79c0] max_analyze_duration 5000000 reached at 5000000 microseconds
Input #0, rm, from 'ffmpeg_not_terminating.rm':

Metadata:

File ID : 49389963-cfd9-fcc8-b745-8eefb2b4bb99
Modification Date: 5/10/2001 20:30:24
Generated By : RealProducer? G2 Core SDK
Target Audiences: DSL/Cable Modem (220 Kbps);
Video Quality : Sharpest Image Video
Audio Format : Music
Creation Date : 5/10/2001 20:28:07
ASMRuleBook : #($Bandwidth < 165106),Stream2Bandwidth = 32148, Stream3Bandwidth = 68596;#($B

andwidth >= 165106) && ($Bandwidth < 220106),Stre

title : Title
author : Author
copyright : (c)2000
comment :

Duration: 00:01:03.71, start: 0.000000, bitrate: 649 kb/s

Stream #0:0: Data: none, 32 kb/s
Stream #0:1: Data: none, 187 kb/s
Stream #0:2: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, fltp, 32 kb/s
Stream #0:3: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 187 kb/s, 15 fps, 15 tbr, 1k tbn

, 1k tbc

Stream #0:4: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 132 kb/s, 15 fps, 15 tbr, 1k tbn

, 1k tbc

Stream #0:5: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 68 kb/s, 15 fps, 15 tbr, 1k tbn,

1k tbc

Stream #0:6: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, fltp, 32 kb/s
Stream #0:7: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, mono, fltp, 32 kb/s
Stream #0:8: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 187 kb/s, 15 fps, 15 tbr, 1k tbn

, 1k tbc

Stream #0:9: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 187 kb/s, 15 fps, 15 tbr, 1k tbn

, 1k tbc

Stream #0:10: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 187 kb/s, 15 fps, 15 tbr, 1k tb

n, 1k tbc

Stream #0:11: Video: rv20 (RV20 / 0x30325652), yuv420p, 320x240, 68 kb/s, 15 fps, 15 tbr, 1k tbn

, 1k tbc
Output #0, avi, to 'out.avi':

Metadata:

File ID : 49389963-cfd9-fcc8-b745-8eefb2b4bb99
Modification Date: 5/10/2001 20:30:24
Generated By : RealProducer? G2 Core SDK
Target Audiences: DSL/Cable Modem (220 Kbps);
Video Quality : Sharpest Image Video
Audio Format : Music
Creation Date : 5/10/2001 20:28:07
ASMRuleBook : #($Bandwidth < 165106),Stream2Bandwidth = 32148, Stream3Bandwidth = 68596;#($B

andwidth >= 165106) && ($Bandwidth < 220106),Stre

INAM : Title
author : Author
ICOP : (c)2000
ICMT :
ISFT : Lavf54.61.104
Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 320x240, q=2-31, 200 kb/s, 15 tbn, 15 tb

c
Stream mapping:

Stream #0:8 -> #0:0 (rv20 -> mpeg4)

Press [q] to stop, ? for help
frame= 159 fps=0.0 q=11.7 size= 463kB time=00:00:20.53 bitrate= 184.8kbits/s dup=0 drop=132
frame= 246 fps=164 q=14.2 size= 691kB time=00:00:31.40 bitrate= 180.2kbits/s dup=0 drop=197
frame= 362 fps=181 q=13.7 size= 984kB time=00:00:41.13 bitrate= 195.9kbits/s dup=0 drop=218
frame= 482 fps=192 q=11.0 size= 1221kB time=00:00:51.13 bitrate= 195.6kbits/s dup=0 drop=240
DATA tag in middle of chunk, file may be broken.0:01:01.06 bitrate= 193.6kbits/s dup=0 drop=266
Truncating packet of size 575759053 to 3397544
[rm @ 024e79c0] Impossibly sized packet

(tons of these)

ffmpeg_not_terminating.rm: Input/output error
frame= 634 fps=141 q=4.5 Lsize= 1505kB time=00:01:03.40 bitrate= 194.4kbits/s dup=0 drop=272

video:1476kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.907895%

comment:17 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Summary changed from FFmpeg duplicating too many frames to Problem transcoding realmedia file

I apparently misunderstood the issue originally: ffplay automatically chooses streams 0:8 and 0:6 for playback which works fine (this corresponds to mplayer -demuxer lavf -vid 3 -aid 1), ffmpeg tries to transcode video stream 0:3 which fails (like mplayer -demuxer lavf -vid 0), workaround is the following command line:
$ ffmpeg -i ffmpeg_not_terminating.rm -map 0:8 -map 0:6 -r 30 out.mpg

There is definitely a problem with the demuxer that can be shown with the sample, the following mplayer command lines show videos with different fps:
$ mplayer ffmpeg_not_terminating.rm -demuxer real -nosound -vc ffrv20 -vid 1
$ mplayer ffmpeg_not_terminating.rm -demuxer real -nosound -vc ffrv20 -vid 4
$ mplayer ffmpeg_not_terminating.rm -demuxer real -nosound -vc ffrv20 -vid 5

comment:18 Changed 4 years ago by compn

why do ffplay and ffmpeg choose different streams to play/encode?

Note: See TracTickets for help on using tickets.