Problem opening/transcoding MXF OP-Atom files

851 views
Skip to first unread message

Peter B.

unread,
Apr 15, 2012, 6:51:09 PM4/15/12
to ffmbc-discuss
I'm trying to transcode an MXF OP-Atom file to AVI (FFv1/pcm_s16le), but
using FFmbc (v0.7-rc5) I'm running into the following error:

//-------------------
./ffmbc -i test_v1.mxf -an -vcodec copy test.avi
//-------------------
FFmbc version 0.7-rc5
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers
[mxf @ 0x2b98600] material track 2: no corresponding source package found
[mxf @ 0x2b98600] material track 3: no corresponding source package found
[mxf @ 0x2b98600] material track 4: no corresponding source package found
[mxf @ 0x2b98600] material track 5: no corresponding source package found
Input #0, mxf, from 'test_v1.mxf':
Duration: 00:00:16.71, start: 0.000000, bitrate: 173062 kb/s
Stream #0.0(und): Video: unknown (0x0000), 720x496p, 29.97 fps
Output #0, avi, to 'test.avi':
Metadata:
ISFT: FFmbc 0.7
Stream #0.0(und): Video: unknown (0x0000), 720x496p, stream copy,
29.97 fps
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
Stream #0.0 dropping frames before first keyframe pts 0 dts 0 duration 1
size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 1 dts 1 duration 1
size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 2 dts 2 duration 1
size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 3 dts 3 duration 1
size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 4 dts 4 duration 1
size 720896 flags 0

[Lots more of these message...]

Stream #0.0 dropping frames before first keyframe pts 498 dts 498
duration 1 size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 499 dts 499
duration 1 size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 500 dts 500
duration 1 size 720896 flags 0
frame= 0 fps= 0 Lsize= 6kB time=00:00:00.00 bitrate= 0.0kbits
//-------------------

The resulting AVI file has no video content and duration 0.

I'd be grateful for any hints/tips/suggestions.

Thanks,
Pb

Peter B.

unread,
Apr 15, 2012, 6:54:18 PM4/15/12
to ffmbc-...@googlegroups.com
I forgot to add:

When I tried to transcode directly to FFv1, I got the following error
message:

//-------------------
./ffmbc -i test_v1.mxf -an -vcodec ffv1 test.avi


//-------------------
FFmbc version 0.7-rc5
Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers

[mxf @ 0x1994600] material track 2: no corresponding source package found
[mxf @ 0x1994600] material track 3: no corresponding source package found
[mxf @ 0x1994600] material track 4: no corresponding source package found
[mxf @ 0x1994600] material track 5: no corresponding source package found


Input #0, mxf, from 'test_v1.mxf':
Duration: 00:00:16.71, start: 0.000000, bitrate: 173062 kb/s
Stream #0.0(und): Video: unknown (0x0000), 720x496p, 29.97 fps

File 'test.avi' already exists. Overwrite ? [y/N] y
[buffer @ 0x1997e40] Invalid pixel format string '-1'
Error opening filters!
//-------------------

Pb

Peter B.

unread,
Apr 16, 2012, 12:50:01 PM4/16/12
to ffmbc-...@googlegroups.com
Since v0.7-rc5 was listed as the first entry in the download list, I
didn't see that rc7 already exists.
I've tried the same transcoding today with v0.7-rc7, and the problem
persists:

//-------------------
./ffmbc -i input/test_v1.mxf -acodec copy -vcodec copy test.avi
//-------------------

FFmbc version 0.7-rc7
Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
[mxf @ 0x1cde100] material track 2: no corresponding source package found
[mxf @ 0x1cde100] material track 3: no corresponding source package found
[mxf @ 0x1cde100] material track 4: no corresponding source package found
[mxf @ 0x1cde100] material track 5: no corresponding source package found
Input #0, mxf, from 'input/test_v1.mxf':
Metadata:
operational_pattern: OpAtom


Duration: 00:00:16.71, start: 0.000000, bitrate: 173062 kb/s
Stream #0.0(und): Video: unknown (0x0000), 720x496p, 29.97 fps
Output #0, avi, to 'test.avi':
Metadata:
ISFT: FFmbc 0.7
Stream #0.0(und): Video: unknown (0x0000), 720x496p, stream copy,
29.97 fps
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
Stream #0.0 dropping frames before first keyframe pts 0 dts 0 duration 1
size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 1 dts 1 duration 1
size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 2 dts 2 duration 1
size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 3 dts 3 duration 1
size 720896 flags 0

[Lots more of these messages...]


Stream #0.0 dropping frames before first keyframe pts 498 dts 498
duration 1 size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 499 dts 499
duration 1 size 720896 flags 0
Stream #0.0 dropping frames before first keyframe pts 500 dts 500
duration 1 size 720896 flags 0

frame= 0 fps= 0 Lsize= 6kB time=00:00:00.00 bitrate= 0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead inf%
//---------------

Mark Himsley told me that handling OP-Atom MXFs should work since v0.7-rc6.

Am I doing something wrong here?

Thanks,
Pb

Baptiste Coudurier

unread,
Apr 18, 2012, 5:36:57 PM4/18/12
to ffmbc-...@googlegroups.com, Peter B.
Hi Peter,

On 4/16/12 9:50 AM, Peter B. wrote:
> Since v0.7-rc5 was listed as the first entry in the download list, I
> didn't see that rc7 already exists.
> I've tried the same transcoding today with v0.7-rc7, and the problem
> persists:
>
> //-------------------
> ./ffmbc -i input/test_v1.mxf -acodec copy -vcodec copy test.avi
> //-------------------
>
> FFmbc version 0.7-rc7
> Copyright (c) 2008-2012 Baptiste Coudurier and the FFmpeg developers
> [mxf @ 0x1cde100] material track 2: no corresponding source package found
> [mxf @ 0x1cde100] material track 3: no corresponding source package found
> [mxf @ 0x1cde100] material track 4: no corresponding source package found
> [mxf @ 0x1cde100] material track 5: no corresponding source package found
> Input #0, mxf, from 'input/test_v1.mxf':
> Metadata:
> operational_pattern: OpAtom
> Duration: 00:00:16.71, start: 0.000000, bitrate: 173062 kb/s
> Stream #0.0(und): Video: unknown (0x0000), 720x496p, 29.97 fps

Your file is not recognized, can you please share it ? I'll have a look.

--
Baptiste COUDURIER
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org

Peter B.

unread,
Apr 20, 2012, 2:54:39 AM4/20/12
to ffmbc-...@googlegroups.com
On 04/18/2012 11:36 PM, Baptiste Coudurier wrote:
> Your file is not recognized, can you please share it ? I'll have a look.
As far as I know, they're using Ingex (and according to Dave Bevan, it's
got FFmbc at the core)
I will share the sample ASAP, but I'm still waiting for clearance from
SceneSavers [1] as the file originates from there.

Thank you very much,
Pb

== References:
[1] http://www.scenesavers.com/

Peter B.

unread,
Apr 25, 2012, 9:24:43 AM4/25/12
to ffmbc-...@googlegroups.com
On 04/18/2012 11:36 PM, Baptiste Coudurier wrote:
> Your file is not recognized, can you please share it ? I'll have a look.
>
I've now received the permission to provide my sample MXF file:
http://download.das-werkstatt.com/pb/mthk/examples/mxf/test_v1.mxf

If I'm correct, the file is an uncompressed NTSC YUV OP-Atom, created
using BBC R&D's "Ingex" [1].

Thank you very much in advance,
Pb

== References:
[1] http://ingex.sourceforge.net/

Rens Dijkshoorn

unread,
Apr 25, 2012, 5:35:08 PM4/25/12
to ffmbc-discuss
Hi,

avidmxfinfo shows the follow information.

Filename = test_v1.mxf
Project name = Nasa
Project edit rate = 30000/1001
Clip name = VTR1_4.15324813
Clip created = 2012-04-02 19:33:44.000
Clip edit rate = 30000/1001
Clip duration = 501 samples (00:00:16:21)
Clip video tracks = 1
Clip audio tracks = 4
Clip track string = V1 A1-4
Video essence
Essence type = 1:1
Essence container label = 060e2b34040101010d01030102050102
Track number = 1
Edit rate = 30000/1001
Track duration = 501 samples (00:00:16:21)
Track segment duration = 501 samples (00:00:16:21)
Track segment offset = 0 samples (00:00:00:00)
Start timecode = 1679053 samples (15:32:48:13)
Picture coding label = 00000000000000000000000000000000
Image aspect ratio = 4/3
Stored WxH = 720x496 (mixed field)
Display WxH = 720x496 (mixed field)
User comments:
Shoot Date = 20120402
Source = VTR1_4
Descript =
Location = Unspecified
Organization = BBC
Material package attributes:
_PJ = Nasa
Material package UID =
060a2b340101010101010f00130000004f79ff187b347f58060e2b347f7f2a80
File package UID =
060a2b340101010101010f00130000004f79ff187b357f58060e2b347f7f2a80
Physical package UID =
060a2b340101010101010f00130000004f79fe8a43997f58060e2b347f7f2a80
Physical package type = Tape
Physical package name = VTR1_4 - 2012-04-02
Physical package locator =


Regards Rens

Peter B.

unread,
May 4, 2012, 7:01:30 AM5/4/12
to ffmbc-...@googlegroups.com
Thanks for the info, but unfortunately, I'm not quite sure what to do
with it... ;)
Could someone enlighten me what's wrong with the file, or what to do in
order to be able to process/transcode these Ingex MXFs with ffmbc?

Thanks,
Pb

Rens Dijkshoorn

unread,
May 7, 2012, 9:42:54 AM5/7/12
to ffmbc-discuss
Hi Peter,

as this are avid OP-Atom MXF files. The easy way to handle this just
to
install Trail Avid MC put all the files in /Avid MediaFiles/MXF/1.

Start Avid create a 30i project, wait for the indexing to finish,
then open the "Media Tool" import your files to a Avid BIN,
drop on the timeline and export.

There are other ways but this is by far the easyest.

Regards

Rens

Peter B.

unread,
May 7, 2012, 6:40:32 PM5/7/12
to ffmbc-...@googlegroups.com
On 05/07/2012 03:42 PM, Rens Dijkshoorn wrote:
> Hi Peter,
>
> as this are avid OP-Atom MXF files. The easy way to handle this just
> to
> install Trail Avid MC put all the files in /Avid MediaFiles/MXF/1.
>
> Start Avid create a 30i project, wait for the indexing to finish,
> then open the "Media Tool" import your files to a Avid BIN,
> drop on the timeline and export.
>
> There are other ways but this is by far the easyest.
>
Thanks for your tips, but I'm not trying to open the file in Avid: I'd
like to transcode them using ffmbc/ffmpeg.

Pb

J.Reykdal

unread,
May 7, 2012, 8:18:03 PM5/7/12
to ffmbc-...@googlegroups.com
What I would try to do is extract the essence from the mxf containers
(video in the V1 file and audio in the A1 A2 etc. files), combine the
audio tracks with sox into one .wav file and then transcode and merge
the audio with the video during that process.

If you have many files then you should be able to script it and let it run.

You would probably lose all the metadata contained in the mxf files though.

Regards,

JReykdal

Tim Nicholson

unread,
May 8, 2012, 3:47:43 AM5/8/12
to ffmbc-...@googlegroups.com
Would the bmxlib help to rewrap as an MXF op1a, or even extract the raw tracks
to feed to ffmbc....

--
Tim Nicholson
Digital Media Services
BBC Studios and Post Production
+44 (0) 208 576 1229 or +44 (0) 7092 223819
Room 2517, Television Centre, Wood Lane, London, W12 7RJ
Intranet http://resources.gateway.bbc.co.uk/post_solutions/

Peter B.

unread,
May 8, 2012, 7:51:27 AM5/8/12
to ffmbc-...@googlegroups.com
Quoting Tim Nicholson <tim.ni...@bbc.co.uk>:

> Would the bmxlib help to rewrap as an MXF op1a, or even extract the
> raw tracks to feed to ffmbc....

My ultimate goal is to transcode these ingex-MXFs with uncompressed
video to FFv1 in a different container than MXF (e.g. AVI, MKV or
maybe MOV).

@Tim:
Do you mean this "bmxlib" here:
http://sourceforge.net/p/bmxlib/home/Home/

What I do not understand is, what's wrong with that MXF that prevents
ffmbc from being able to handle it directly?
Sorry, but I don't know too much about the innards of MXF :)

Thank you very much for your suggestions,
Pb


Jóhannes Reykdal

unread,
May 8, 2012, 2:24:16 PM5/8/12
to ffmbc-...@googlegroups.com
The problem is probably that the file contains a raw video stream in YUVY format that ffmbc does not recognise.

I can at least play the file with the ingex player.

JR

Tim Nicholson

unread,
May 9, 2012, 3:31:21 AM5/9/12
to ffmbc-...@googlegroups.com
On 08/05/12 12:51, Peter B. wrote:
> Quoting Tim Nicholson <tim.ni...@bbc.co.uk>:
>
>> Would the bmxlib help to rewrap as an MXF op1a, or even extract the raw tracks
>> to feed to ffmbc....
>
> My ultimate goal is to transcode these ingex-MXFs with uncompressed video to
> FFv1 in a different container than MXF (e.g. AVI, MKV or maybe MOV).
>
> @Tim:
> Do you mean this "bmxlib" here:
> http://sourceforge.net/p/bmxlib/home/Home/
>

Yes, its written by the ingex people....

> What I do not understand is, what's wrong with that MXF that prevents ffmbc from
> being able to handle it directly?

I think it is only opAtom DNX that it supports, not uncompressed.

> Sorry, but I don't know too much about the innards of MXF :)
>

Even those that do find it can be a bit of a 'mare, just whisper AS11 in
Baptiste's ear....

> Thank you very much for your suggestions,
> Pb
>
>


lily....@gmail.com

unread,
Oct 7, 2013, 10:43:17 PM10/7/13
to ffmbc-...@googlegroups.com, p...@das-werkstatt.com
Transcode mxf to avi format, you can try handbrake or FFmpeg, there are great for converting mxf video files. and some rechargeable software such as iVideotool MXF Converter for Mac(http://www.abettersoft.com/mxf-converter-for-mac.html) may much better for converting and compress videos, here is the detailed guide: http://www.abettersoft.com/how-to/convert-mxf-to-avi-mac.html
Reply all
Reply to author
Forward
0 new messages