Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#903 closed defect (fixed)

Rainbow artifacts and errors on certain Gamecube THP files

Reported by: 11rcombs Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: THP mjpeg
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

I'm trying to convert a collection of THP files I extracted from Fire Emblem 9 and 10 (Path of Radiance and Radiant Dawn, respectively) to h.264/MP3 .mov files. ffmpeg converted all of the FE10 files perfectly, but some of the FE9 files are running into mjpeg errors during extraction, which produce rainbow artifacts in the output files.
The THP files in question are here: MediaFire
The output MOVs are here: MediaFire
All possibly-related files are here: Mediafire
s01 and s03 have rainbow artifacts at the end of the video. s02 is perfect. s05 appears to have rainbow artifacts throughout, though I haven't run the transcode though the entire video to check.
My CLI input for the FE9 files: ffmpeg -i file.thp -vcodec libx264 -sameq -s 1280x720 -acodec libmp3lame -deinterlace file.mov
The issue also occurs just ffplaying any one of the files in question.

Attachments (1)

s05_cut.thp (2.4 MB) - added by cehoyos 5 years ago.

Change History (10)

comment:1 Changed 5 years ago by cehoyos

  • Cc rodger.combs@gmail.com removed
  • Priority changed from important to normal

To make this a valid ticket, please add complete, uncut console of your ffmpeg command.
If the problem is also reproducible without using libx264, please do not use it, if it is required, please mention.

For future reports: Please do not use mediafire etc., see http://ffmpeg.org/bugreports.html or use http://www.datafilehost.com/

Ticket creators are always CC'd.

comment:2 Changed 5 years ago by 11rcombs

Modified CLI to demonstrate without libx264 (it's not required to reproduce): ffmpeg -v 9 -loglevel 99 -i s05.thp -report -vcodec mpeg2video -sameq -s 1280x720 -acodec libmp3lame -deinterlace s05.mov
Log output is too large to attach or pastebin, uploaded to datafilehost.

comment:3 Changed 5 years ago by cehoyos

Please add complete, uncut console output of your failing ffmpeg command to make this a valid ticket.
If -deinterlace and -s are not needed to reproduce the problem, please remove them, if the problem is audio-only, please use "-an" instead of -acodec, if audio is needed to reproduce the problem, please use an internal audio codec instead of an external.

comment:4 follow-up: Changed 5 years ago by 11rcombs

Removed as requested, problem still exists. Please note that the issue also occurs with ffplay, so it appears to be strictly a decoder issue and has nothing to do with the output format. New console command is ffmpeg -v 9 -loglevel 99 -i s05.thp -report -vcodec mpeg2video -sameq -an s05.mov New link at DataFileHost.

On a separate note, I saw the general ban on Rapidshare and Megaupload-type sites, but I used a Mediafire link because Mediafire isn't particularly ad-cluttered and doesn't have a download timer, so I don't usually class it as a "rapidshare or megaupload-type site". It also let me easily organize the files into searchable, browsable folders. Is there something wrong with Mediafire that should keep me from using it?

Changed 5 years ago by cehoyos

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

On a separate note, I saw the general ban on Rapidshare and Megaupload-type sites, but I used a Mediafire link because Mediafire isn't particularly ad-cluttered

This is wrong.

comment:6 Changed 5 years ago by cehoyos

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

out.avi shows artefacts.

$ ffmpeg -i s05_cut.thp -an -qscale 2 -vcodec mpeg2video out.avi
ffmpeg version N-36659-g2169f97 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 10 2012 11:14:36 with gcc 4.5.3
  configuration: --cc='/usr/local/gcc-4.5.3/bin/gcc -m32'
  libavutil      51. 34.100 / 51. 34.100
  libavcodec     53. 54.100 / 53. 54.100
  libavformat    53. 29.100 / 53. 29.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 58.100 /  2. 58.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x8dd8ca8)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cb)
Truncating packet of size 1312 to 1289
[thp @ 0x8dd1aa0] Estimating duration from bitrate, this may be inaccurate
Input #0, thp, from 's05_cut.thp':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: thp, yuvj420p, 640x480, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0:1: Audio: adpcm_thp, 32000 Hz, 2 channels, s16
Incompatible pixel format 'yuvj420p' for codec 'mpeg2video', auto-selecting format 'yuv420p'
[buffer @ 0x8dd87c0] w:640 h:480 pixfmt:yuvj420p tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x8dd7c20] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x8de7d40] w:640 h:480 fmt:yuvj420p -> w:640 h:480 fmt:yuv420p flags:0x4
Output #0, avi, to 'out.avi':
  Metadata:
    ISFT            : Lavf53.29.100
    Stream #0:0: Video: mpeg2video (mpg2 / 0x3267706D), yuv420p, 640x480, q=2-31, 200 kb/s, 29.97 tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (thp -> mpeg2video)
Press [q] to stop, [?] for help
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cb)
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cb)
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cb)
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=7 x=1
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=3 x=0
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 38960x36638 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=5 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cf)
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (c9)
[thp @ 0x8dd7d80] only 8 bits/component accepted
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=9 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=10 x=6
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=4 x=0
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 6103x60528 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=8 x=0
[thp @ 0x8dd7d80] only 8 bits/component accepted
Error while decoding stream #0:0
[thp @ 0x8dd7d80] error count: 64
[thp @ 0x8dd7d80] error y=7 x=2
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=4 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (c7)
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=3 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (ca)
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=4 x=0
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 19513x14110 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=8 x=0
[thp @ 0x8dd7d80] invalid id 125
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=11 x=2
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cf)
    Last message repeated 1 times
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=10 x=0
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=12 x=3
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=9 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (c6)
[thp @ 0x8dd7d80] only 8 bits/component accepted
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=6 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (c6)
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 60239x18387 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=10 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=10 x=1
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=9 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=2 x=0
[thp @ 0x8dd7d80] dqt: 16bit precision
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (c6)
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 43350x34248 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (ca)
    Last message repeated 1 times
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=3 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=5 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=8 x=0
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 53888x18762 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] error count: 64
[thp @ 0x8dd7d80] error y=4 x=1
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=15 x=0
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 35976x45291 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=11 x=0
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 7257x49408 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=2 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=11
[thp @ 0x8dd7d80] only 8 bits/component accepted
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=4 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cd)
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cf)
[thp @ 0x8dd7d80] decode_sos: nb_components (148) unsupported
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=8 x=1
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=8 x=1
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=3 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=5 x=0
[thp @ 0x8dd7d80] [IMGUTILS @ 0xffc471f4] Picture size 64154x19773 is invalid
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=6 x=0
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=14 x=1
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=15 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=16 x=39
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=7 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (c8)
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=12 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (c6)
[thp @ 0x8dd7d80] invalid id 226
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=18 x=3
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=9 x=0
[thp @ 0x8dd7d80] mjpeg: unsupported coding type (cb)
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=4 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=4 x=0
[thp @ 0x8dd7d80] only 8 bits/component accepted
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=3 x=0
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=1 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=5 x=0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=16 x=2
[thp @ 0x8dd7d80] huffman table decode error
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=5 x=9
[thp @ 0x8dd7d80] only 8 bits/component accepted
Error while decoding stream #0:0
[thp @ 0x8dd7d80] mjpeg_decode_dc: bad vlc: 0:0 (0x9120288)
[thp @ 0x8dd7d80] error dc
[thp @ 0x8dd7d80] error y=4 x=0
Truncating packet of size 1312 to 1
frame=   30 fps=  0 q=2.0 Lsize=     152kB time=00:00:01.80 bitrate= 688.9kbits/s
video:145kB audio:0kB global headers:0kB muxing overhead 4.715752%

comment:7 Changed 5 years ago by cehoyos

  • Keywords mjpeg added

comment:8 Changed 5 years ago by michael

  • Resolution set to fixed
  • Status changed from open to closed

comment:9 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
Note: See TracTickets for help on using tickets.