Opened 12 years ago
Last modified 9 years ago
#2616 open defect
support matrox mpeg-2 I-frame with alpha codec (m704 fourcc)
Reported by: | ami_stuff | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | matrox mpeg2video alpha |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
attached file decodes as mpeg2video, but there are visible some artefact in the right-bottom corner of the video
http://www1.datafilehost.com/d/ea13c1dc
C:\>ffmpeg -vcodec mpeg2video -i m704.avi out.avi ffmpeg version N-53680-g0ab9362 Copyright (c) 2000-2013 the FFmpeg developers built on May 30 2013 12:14:03 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo- amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 34.100 / 52. 34.100 libavcodec 55. 12.102 / 55. 12.102 libavformat 55. 8.100 / 55. 8.100 libavdevice 55. 2.100 / 55. 2.100 libavfilter 3. 73.100 / 3. 73.100 libswscale 2. 3.100 / 2. 3.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100 [mpeg2video @ 02997f20] Invalid frame dimensions 0x0. Input #0, avi, from 'm704.avi': Duration: 00:00:12.64, start: 0.000000, bitrate: 8031 kb/s Stream #0:0: Video: mpeg2video (4:2:2) (M704 / 0x3430374D), yuv422p, 720x480 [SAR 8:9 DAR 4:3], 23.98 fps, 23.98 tbr, 23.97 tbn, 59.94 tbc Output #0, avi, to 'out.avi': Metadata: ISFT : Lavf55.8.100 Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 200 kb/s, 23.98 tbn, 23.98 tbc Stream mapping: Stream #0:0 -> #0:0 (mpeg2video -> mpeg4) Press [q] to stop, [?] for help [mpeg2video @ 02997f20] Invalid frame dimensions 0x0. [mpeg2video @ 02997f20] end mismatch left=73960 1 [mpeg2video @ 02997f20] Warning MVs not available [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=69680 1 [mpeg2video @ 02997f20] Warning MVs not available [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=69760 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=69664 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=69808 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=70176 1 [mpeg2video @ 02997f20] Warning MVs not available [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=70072 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=70168 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=69976 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=70736 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=70736 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=70440 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=71416 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=70920 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=71096 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=71208 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=71304 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=71848 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=72432 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=71208 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=71568 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=72256 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=74440 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=73032 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=72712 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=73160 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame frame= 246 fps=0.0 q=31.0 size= 467kB time=00:00:10.26 bitrate= 373.2kbits/ end mismatch left=75504 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=75672 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=77384 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame [mpeg2video @ 02997f20] end mismatch left=76168 1 [mpeg2video @ 02997f20] concealing 9 DC, 9 AC, 9 MV errors in I frame frame= 303 fps=0.0 q=31.0 Lsize= 536kB time=00:00:12.63 bitrate= 347.2kbits /s video:523kB audio:0kB subtitle:0 global headers:0kB muxing overhead 2.463669%
Attachments (14)
Change History (38)
follow-up: 3 comment:1 by , 12 years ago
Component: | undetermined → avcodec |
---|---|
Keywords: | matrox alpha added |
Status: | new → open |
Version: | unspecified → git-master |
comment:2 by , 12 years ago
Keywords: | mpeg2video added |
---|
comment:3 by , 11 years ago
Replying to cehoyos:
Assuming "alpha codec" means that the encoder can really save transparency information in the mpeg2 video stream, could you try to encode a file that actually contains transparency?
As for example the files in http://samples.ffmpeg.org/FLV/flash_with_alpha
(There are other samples but I can't find them atm.)
I would like to generate a sample with alpha, but I do not match the specs for example for Adobe Premiere CS6 which I could use for it:
If you meet then maybe you can use this instruction to generate a file:
comment:5 by , 11 years ago
You mean with which software? VirtualDub, but afaict it doesn't support alpha export to AVI.
comment:6 by , 11 years ago
You mean if your source is mov/png with transparency, it gets lost if you use VirtualDub?
by , 11 years ago
Attachment: | vd_dummyalpha.avi added |
---|
follow-up: 12 comment:8 by , 11 years ago
Does it support encoding png in avi? A user on irc claims that encoding transparency should work fine with VirtualDub (sorry, I honestly don't know).
comment:9 by , 11 years ago
Or to say it differently: What happens if you encode vd_dummyalpha.avi to any format that supports transparency?
follow-up: 11 comment:10 by , 11 years ago
Unrelated: Could you test if the sample from ticket #2464 plays for more than half a second for you with the Matrox codec installed?
comment:11 by , 11 years ago
Description: | modified (diff) |
---|
Replying to cehoyos:
Unrelated: Could you test if the sample from ticket #2464 plays for more than half a second for you with the Matrox codec installed?
Matrox codecs which I installed doesn't like this file (VirtualDub says "Couldn't load decompressor for format 'M701' (unknown)".
What I can notice is that Xvid's FourCC changer reports for this file:
FourCC Description code: M701
FourCC Used codes: M701
when for myself generated file:
FourCC Description code: m701
FourCC Used codes: M701
but even when I modify "FourCC Descriprion code" from M701 to m701 I still can't load/play the file with WMP/VirtualDub.
comment:12 by , 11 years ago
Replying to cehoyos:
Does it support encoding png in avi? A user on irc claims that encoding transparency should work fine with VirtualDub (sorry, I honestly don't know).
This is what VirtualDub supports:
http://packtlib.packtpub.com/graphics/9781904811350/graphics/1353_08_15.jpg
Maybe he can create a real alpha sample, I don't know how.
follow-up: 15 comment:14 by , 11 years ago
Finally I was able to encode sample with a real alpha channel:
http://www1.datafilehost.com/d/0436af02
Attached file plays correctly in Adobe Premiere (no colorful artefacts and alpha
works - see attached screenshot).
Colorful artefacts are visible while playing the file in WMP/VirtualDub.
It looks like this codec is designed especially for Adobe Premiere which knows how to identify alpha channel and use it:
"When rendering compositions or animations that have an alpha channel, you can
select a “+ Alpha” Matrox VFW codec to render to a Matrox uncompressed or
MPEG-2 I-frame .
avi
file that contains the alpha-key information. This .
avi
file
will be automatically keyed when you place the clip in an Adobe Premiere Pro
sequence."
input which I used to encode the file:
http://samples.mplayerhq.hu/FLV/flash_with_alpha/300x180-Scr-f8-056alpha.flv
by , 11 years ago
follow-up: 17 comment:15 by , 11 years ago
Replying to ami_stuff:
Finally I was able to encode sample with a real alpha channel:
it seems this is "404"
by , 9 years ago
follow-up: 18 comment:17 by , 9 years ago
comment:18 by , 9 years ago
Replying to ami_stuff:
I was unable to register on this forum;-(
If they discontinue their mpeg2 alpha codec, maybe they'll share information about how to decode the files.
follow-up: 20 comment:19 by , 9 years ago
follow-up: 21 comment:20 by , 9 years ago
comment:21 by , 9 years ago
Replying to cehoyos:
Replying to ami_stuff:
the same colorful thing is visible with "Matrox Uncompressed HD with Alpha (M104)", so to move on, #2611 should be fixed first (maybe fix for #2611 will fix support of "Matrox Uncompressed HD (M102) as well - I have samples)
Please provide samples with FourCC M102 and M104.
comment:22 by , 9 years ago
hmm just checked this again and "m704.avi" file seems to decode correctly with reference software (after remuxing to *.m2v)
https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket2616/m704.avi
ffmpeg -vcodec mpeg2video -i 704.avi -vcodec copy 704.m2v
http://www.mpeg.org/MPEG/video/mssg-free-mpeg-software.html
https://web.archive.org/web/20061214212714/http://www.mpeg2.de/video/software/mpg2w11b.zip
(I tested with "mpeg2dec.exe" from "mpg2w11b.zip" archive)
by , 9 years ago
Attachment: | matrox_mpeg2_720_480.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_720_576.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_alpha_720_480.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_alpha_720_576.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_hd_1280.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_hd_1440.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_hd_1920.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_hd_alpha_1280.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_hd_alpha_1440.avi added |
---|
by , 9 years ago
Attachment: | matrox_mpeg2_hd_alpha_1920.avi added |
---|
by , 9 years ago
Attachment: | utalpha.7z added |
---|
comment:24 by , 9 years ago
It looks like Premiere detects these colorful things with some kind of video filter.
I exported video to utvideo with and without alpha. "utvideo_rgba_720_480.avi" decodes correctly in Photoshop (no colorful artefacts) and alpha works just fine.
Assuming "alpha codec" means that the encoder can really save transparency information in the mpeg2 video stream, could you try to encode a file that actually contains transparency?
As for example the files in http://samples.ffmpeg.org/FLV/flash_with_alpha
(There are other samples but I can't find them atm.)