Open GoogleCodeExporter opened 8 years ago
I used your newer version (0.7-rc3) ,but the errors are duplicated
Command line:
ffmbc -i Matrox_Mpeg2_iframe_15Mbs.avi -i pcm_s16le_1536kbs.wav -target imx50
IMX50_From_Matrox.mxf
Output:
FFmbc version 0.7-rc3
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers
[avi @ 0x287e600] non-interleaved AVI
[mpeg2video @ 0x2880680] mpeg_decode_postinit() failure
Input #0, avi, from 'Matrox_Mpeg2_iframe_15Mbs.avi':
Metadata:
encoder: Matrox MQSink Filter For MPEG. Format: 4. Build: 2.0.0.271
Duration: 00:18:22.84, start: 0.000000, bitrate: 103317 kb/s
Stream #0.0(und): Video: mpeg2video (4:2:2), yuv422p, 720x576i tff [PAR 16:15 DAR 4:3], 14999 kb/s, 25.00 fps
Input #1, wav, from 'pcm_s16le_1536kbs.wav':
Duration: 02:06:05.64, start: 0.000000, bitrate: 1536 kb/s
Stream #1.0(und): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
File 'IMX50_From_Matrox.mxf' already exists. Overwrite ? [y/N] y
auto-rescaling to IMX resolution
[pad @ 0x2886720] w:720 h:576 -> w:720 h:608 x:0 y:32 color:0x108080FF[yuva]
Warning, QMAT_SHIFT is larger than 21, overflows possible
Last message repeated 1 times
Output #0, mxf_d10, to 'IMX50_From_Matrox.mxf':
Metadata:
encoder: FFmbc 0.7
Stream #0.0(und): Video: mpeg2video, yuv422p, 720x608i tff [PAR 152:135 DAR 4:3], cbr, 50000 kb/s, 25.00 fps
Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press [q] to stop, [?] for help
[mpeg2video @ 0x2880680] mpeg_decode_postinit() failure
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] Warning MVs not available
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
frame= 63 fps= 0 q=1.0 size= 18946kB time=00:00:02.49
bitrate=62181.8kbits/s eta=00:03:43.11
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] Warning MVs not available
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
frame= 127 fps=126 q=1.0 size= 38498kB time=00:00:05.05
bitrate=62376.5kbits/s eta=00:03:38.59
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
frame= 191 fps=126 q=1.0 size= 58050kB time=00:00:07.61
bitrate=62440.4kbits/s eta=00:03:37.21
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2880680] ac-tex damaged at 44 35
[mpeg2video @ 0x2880680] concealing 45 DC, 45 AC, 45 MV errors
frame= 264 fps=125 q=1.0 Lsize= 80317kB time=00:00:10.49
bitrate=62686.1kbits/s 00:03:39.21
video:64453kB audio:1968kB global headers:0kB muxing overhead 20.920184%
Original comment by rebaglia...@gmail.com
on 21 Oct 2011 at 10:51
This file seems damaged. In any case I need the file to confirm the issue
Original comment by baptiste...@gmail.com
on 23 Oct 2011 at 9:07
I looked for another file Matrox because the first one was too big.
How can I get you the file with size 300Mb, it is the smallest file that I have.
Command line:
ffmbc -i Matrox_Mpeg2_iframe_15Mbs.avi -i pcm_s16le_1536kbs.wav -target imx50
IMX50_From_Matrox.mxf
Output:
FFmbc version 0.7-rc4
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers
[avi @ 0x208e600] non-interleaved AVI
[mpeg2video @ 0x2090680] mpeg_decode_postinit() failure
Input #0, avi, from 'Matrox_Mpeg2_iframe_15Mbs.avi':
Metadata:
encoder: Matrox MQSink Filter For MPEG. Format: 4. Build: 2.0.0.271
Duration: 00:02:32.24, start: 0.000000, bitrate: 15069 kb/s
Stream #0.0(und): Video: mpeg2video (4:2:2), yuv422p, 720x576i tff [PAR 16:15 DAR 4:3], 14999 kb/s, 25.00 fps
Input #1, wav, from 'pcm_s16le_1536kbs.wav':
Duration: 00:02:32.24, start: 0.000000, bitrate: 1536 kb/s
Stream #1.0(und): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
File 'IMX50_From_Matrox.mxf' already exists. Overwrite ? [y/N] y
Auto-rescaling to imx50 resolution
[pad @ 0x2096720] w:720 h:576 -> w:720 h:608 x:0 y:32 color:0x108080FF[yuva]
Warning, QMAT_SHIFT is larger than 21, overflows possible
Last message repeated 1 times
Output #0, mxf_d10, to 'IMX50_From_Matrox.mxf':
Metadata:
encoder: FFmbc 0.7
Stream #0.0(und): Video: mpeg2video, yuv422p, 720x608i tff [PAR 152:135 DAR 4:3], cbr, 50000 kb/s, 25.00 fps
Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press [q] to stop, [?] for help
[mpeg2video @ 0x2090680] mpeg_decode_postinit() failure
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] Warning MVs not available
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] Warning MVs not available
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
frame= 59 fps= 0 q=1.0 size= 17724kB time=00:00:02.32
bitrate=62440.6kbits/s eta=00:00:32.83
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
frame= 121 fps=120 q=1.0 size= 36360kB time=00:00:04.80
bitrate=62053.6kbits/s eta=00:00:31.06
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
frame= 184 fps=121 q=1.0 size= 55912kB time=00:00:07.33
bitrate=62412.9kbits/s eta=00:00:30.00
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x2090680] ac-tex damaged at 44 35
[mpeg2video @ 0x2090680] concealing 45 DC, 45 AC, 45 MV errors
frame= 262 fps=121 q=1.0 Lsize= 79698kB time=00:00:10.41
bitrate=62712.8kbits/s 00:00:29.66
video:63965kB audio:1952kB global headers:0kB muxing overhead 20.906194%
Original comment by rebaglia...@gmail.com
on 27 Oct 2011 at 1:38
I noticed that HD Matrox intraframe wrapped in AVI are not recognized at all:
Stream #0.0(und): Video: unknown (M705), 1920x1080p, 25fps
Regards
Original comment by plkmaru...@gmail.com
on 27 Oct 2011 at 2:06
Sorry, I need the file anyway to be able to look at it.
Original comment by baptiste...@gmail.com
on 27 Oct 2011 at 3:44
How can I get you the file with size 300Mb?
The Max. attachments per comment is 10.0 MB
Original comment by rebaglia...@gmail.com
on 27 Oct 2011 at 4:05
Upload the file to medafire or something like that, and mail me the link.
Original comment by baptiste...@gmail.com
on 27 Oct 2011 at 4:09
I noticed that the version 6.1 doesn't create image artefacts.
Original comment by rebaglia...@gmail.com
on 29 Oct 2011 at 6:58
I'll have a look, thanks for the sample
Original comment by baptiste...@gmail.com
on 29 Oct 2011 at 9:10
Btw, can you share a small sample with M705 fourcc ? So I can add support.
Original comment by baptiste...@gmail.com
on 29 Oct 2011 at 9:10
Here you go: http://min.us/mbgSk2nfPY, a very small Matrox M705 file.
1920x1080, 50i
Original comment by plkmaru...@gmail.com
on 30 Oct 2011 at 6:33
SD files should be supported now. HD is different I need to investigate more.
Original comment by baptiste...@gmail.com
on 12 Jan 2012 at 5:54
Hi Baptiste, Thanks! now it's fine.
But if I use a much longer file, ffmbc doesn't read the correct duration and it
doesn't encode the entire file.
Below you can see the output of the test.
Command Line:
ffmbc -v 3 -i Test.avi -i Test.wav -target imx50 -tff -aspect 4:3 -acodec
pcm_s16le Test.mxf -map_audio_channel 1:0:0:0:1:0 -map_audio_channel
1:0:1:0:1:1 -map_audio_channel 1:0:0:0:1:2 -map_audio_channel 1:0:1:0:1:3
Output:
FFmbc version 0.7-rc5
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers
[avi @ 0x1d94600] non-interleaved AVI
[mpeg2video @ 0x1d96620] mpeg_decode_postinit() failure
Input #0, avi, from 'Test.avi':
Metadata:
encoder: Matrox MQSink Filter For MPEG. Format: 4. Build: 2.0.0.271
Duration: 00:18:22.84, start: 0.000000, bitrate: 103317 kb/s
Stream #0.0(und): Video: mpeg2video (4:2:2), yuv422p, 720x576i tff [PAR 16:15 DAR 4:3], 14999 kb/s, 25.00 fps
Input #1, wav, from 'Test.wav':
Duration: 02:06:05.64, start: 0.000000, bitrate: 1536 kb/s
Stream #1.0(und): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Auto-rescaling to imx50 resolution
[pad @ 0x1d96060] w:720 h:576 -> w:720 h:608 x:0 y:32 color:0x108080FF[yuva]
Warning, QMAT_SHIFT is larger than 21, overflows possible
Last message repeated 1 times
Output #0, mxf_d10, to 'Test.mxf':
Metadata:
encoder: FFmbc 0.7
Stream #0.0(und): Video: mpeg2video, yuv422p, 720x608i tff [PAR 152:135 DAR 4:3], cbr, 50000 kb/s, 25.00 fps
Stream #0.1(und): Audio: pcm_s16le, 48000 Hz, 4 channels, s16, 3072 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1 [channel: 0 -> 0]
Stream #1.0 -> #0.1 [channel: 1 -> 1]
Stream #1.0 -> #0.1 [channel: 0 -> 2]
Stream #1.0 -> #0.1 [channel: 1 -> 3]
Press [q] to stop, [?] for help
[mpeg2video @ 0x1d96620] mpeg_decode_postinit() failure
frame= 288 fps=124 q=1.0 Lsize= 87681kB time=00:00:11.47
bitrate=62582.4kbits/s 00:03:40.01
video:70312kB audio:4304kB global headers:0kB muxing overhead 17.508255%
Original comment by rebaglia...@gmail.com
on 21 Jan 2012 at 12:34
Can you please upload the file somewhere ? Thanks
Original comment by baptiste...@gmail.com
on 23 Jan 2012 at 7:55
Hi,
I working for a french television channel, and we also use AVI Matrox for our
old file.
I had to modify a codec to get the correct duration of the file.
The problem came with the structure of the AVI file. Matrox didn't respect the
avi specification (odml if I remember correctly) for the file that was larger
than 2Gb...
So they start like a normal avi file, but after the 9min 13s the video stop...
That means that you arrive at the end of the normal "structure" of the avi
file...
The bug is inside FFMPEG, on the avidec.c
I was able to correct : LAVFilter for windows to be able to read a full file
and reencode it...
But when I try to do the same on FFMBC, my C skills wasn't enough....
If you wan't a file you will need a file bigger than 90000 frames (82000
something like that) and will have the bug.
I think that my correction in LAVFilter isn't a good correction... My C skills
or old but It work for me... I wasn't able to do it in ffmbc if you want to
look at it, I will put my avidec.c (of lavfilter) in attached file.
I add the method: avi_read_mmes
Which use the right index of the file.
Hope that help.
Original comment by ilf.mou...@gmail.com
on 15 Jun 2012 at 9:44
Attachments:
Thanks, I'll have a look, ping me if I forget.
Original comment by baptiste...@gmail.com
on 15 Jun 2012 at 10:16
Hi,
Were you able to look at it ?
Thanks again.
Original comment by ilf.mou...@gmail.com
on 25 Jun 2012 at 2:31
No, not yet, can you please send a diff ? It would be easier. Thanks,
Original comment by baptiste...@gmail.com
on 25 Jun 2012 at 4:14
Hi,
we have applied the patch supplied by ilf to the sources of FFmbc version
0.7-rc8. Now we are able to read the index correctly (we hope!) but during the
execution we get a Segmentation fault. We have a diff file if it can be use
usefull.
Do you have news about this issue?
Thanks
Original comment by cook.fon...@gmail.com
on 28 Jun 2013 at 7:29
Nope, this require some work to apply the patch correctly
Original comment by baptiste...@gmail.com
on 15 Jul 2013 at 10:11
[deleted comment]
[deleted comment]
Hi all.
I work for a major swiss broadcasting company and we started a project to
convert a huge bunch of Matrox MMES AVI files into MXF, so this issue is quite
important for us.
The patch proposed by ilf (see comment #15), while setting the correct number
of frames in the index (and by consequence, the correct duration of the video
stream), seems not to solve the whole problem, as stated by cook (see comment
#19).
After some days of analysing different AVI files (Matrox and not, big and
small), studying the specs and trying, it seems to me that "big" MMES files are
different from "standard big" files in the following ways:
1. the super index "index subtype" (index_sub_type) is 16 instead of 0;
2. same for the standard index
3. a standard index entry is 24 bytes long instead of 8, thus the
longs_pre_entry value is 6 instead of 2;
the fields "offset" and "length" are QWORD (64bit) instead of DWORD (32bit);
the semantic of the additional field (or fields) is beyond my comprehension, but at first sight it
doesn't seem to be necessary.
I therefore came up with the attached patch. Perhaps I'm too optimistic, but
for now it seems to work. It shall be applied to libavformat/avidec.c of
FFmbc-0.7-rc8. I tested it against some files, ranging from a couple of minutes
(to assure that it's backward compatible) to almost 3 hours. Use it at your own
risk and post here your findings.
Hopefully, in the near future I'll start the massive conversion; I'll let you
know if the patch really works, so stay tuned...
Original comment by fris...@yahoo.com
on 8 Nov 2013 at 1:30
Attachments:
Hi everyone...
I'm using ffmbc to generate a lot of transcoding for my work...
But I don't use directly Matrox avi file with ffmbc... I'm bypassing the
problem using LAVFilter (which I patched) to work with ffmbc using avisynth
script.. It's working but only in 32Bit...
I'm using it for 2 years now without any problems...
Hope this will help.
Original comment by ilf.mou...@gmail.com
on 14 Feb 2014 at 8:43
(Please see comment #23; I had to create a Google account since it's no longer
possible to use an external account)
Hello everybody.
As promised I'm back with some results
I wrote a bulk AVI to MXF conversion program; for each conversion, the program
tests the AVI file duration against the MXF one; so far, the program has
converted about 10'000 files, ranging from less than a minute to a few hours.
The number of discrepancies found is... 0.
I didn't obviously looked at every file, just at some of them, and they look OK.
I therefore think that the patch I submitted last November actually solves the
problem, but I would like to see these figures confirmed by other users.
@Ilf: I think this thread is to have FFmbc do the work; that said, is always
great to have alternatives, so thanks for your comment.
Original comment by pa070pa...@gmail.com
on 26 May 2014 at 4:16
Nice, do you have other files I could validate the patch with ? Ill apply it
Thanks
Original comment by baptiste...@gmail.com
on 26 May 2014 at 9:50
Hi Baptiste.
I sent you via Google Drive some links with the requested files.
Note that the AVI files are video-only; that's why the audio is in separated
files.
Files 399508* are a short clip, a little less than 2 minutes, used to test the
backward compatibility.
The other ones, 401605*, is a longer clip, more than 24 minutes, used to test
the patch: before applying it, ffprobe shows a duration of about 9:13, while
the patched version should show the correct one. ffmbc and other programs
should behave consequently.
Please keep these files for yourself, as the content might be copyrighted.
Please note that I submitted the patch in November, for the 0.7-rc8 version. I
see that you released the 0.7 and the 0.7.1 versions; I've yet to apply the
patch to the newest release but I saw that it should be almost the same as the
November's one (just a matter of displacement in the source file).
Keep up the good work ;-)
Original comment by pa070pa...@gmail.com
on 5 Jun 2014 at 11:31
Original issue reported on code.google.com by
rebaglia...@gmail.com
on 21 Oct 2011 at 8:58