MXF, OP1A, DNxHD - Creates corrupted (Potential bug?)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MXF, OP1A, DNxHD - Creates corrupted (Potential bug?)

Mark O'Shea
Hi, all (apologies if this is a duplicate email, I wasn't subscribed to the
mailing list so not sure if it went through).

In advance thank you for any help!

I've been trying to generate some DNxHR's with additional metadata as
requested by a client, these are:
reel_name:XXXX_XXX_XXXXX
timecode:##:##:##:##

I've been using FFMPEG so that it is scriptable but have run into what I
think may be a bug when using the mxf_opatom option.

The command I'm running:
ffmpeg -y -r 24 -start_number 1001 -i input_exr_sequence.%04d.exr -vf
colormatrix=bt601:bt709 -an -timecode 12:44:54:20 -minrate:v 36M -b:v 36M
-c:v dnxhd -maxrate:v 36M -pix_fmt yuv422p -vf
scale=in_range=limited:out_range=full -color_range 2 -f mxf_opatom
-metadata reel_name=xxxx output.mxf

This generates an MXF which opens fine in AVID, but not in other NLE's.
Final Cut Pro + Adobe Premiere all won't allow it to be imported and reject
the media as corrupt.

Davinci Resolve will load up the footage but with a green line across the
bottom (potential corrupt footer?) e.g:
[image: geen_line.png]

When I export the same file from adobe media encoder, the MXF works across
all the above NLE's listed.

I've attached an FFPROBE of the MXFs as .txt files on this email. I can
send over some example MXF files if needed!

Note at the very top of the FFMPEG MXF metadata:

[dnxhd @ 0x7fb203001800] frame size changed: 1920x1088 -> 1920x1080

I think this may be the corruption but I have no idea how to fix it.

I've tried using raw2bmx in conjunction with FFMPEG to:
- Create RAW DNxHD stream with FFMPEG
- Wrap in MXF with raw2bmx, injecting metadata (Can't get this working with
the reel_name)

Command to convert to raw data:
ffmpeg -y -r 24 -start_number 1001 -i input_exr_sequence.%04d.exr -vf
colormatrix=bt601:bt709 -an -timecode 12:44:54:20 -minrate:v 36M -b:v 36M
-c:v dnxhd -maxrate:v 36M -pix_fmt yuv422p -vf
scale=in_range=limited:out_range=full -color_range 2 -f mxf_opatom
-metadata reel_name=xxxx output.mxf

Command to wrap as MXF:
raw2bmx -t op1a -o ./from_raw_metadata2.mxf -y 12:44:54:20 -a 16:9
--transfer-ch bt709 --coding-eq bt709 --color-prim bt709 --color-siting
bt601 --vc3_1080p_1253 output.dnxhd

This gives me a working DNxHD MXF but without the reel_name metadata needed.

I'm really at a loss now as to how to get these DNxHD MXFs generating with
an additional metadata key and not be corrupt!

All help and advice is really appreciated!

Many thanks,
Mark O'Shea

--
t: + 44 (0)20 7734 3106
www.weacceptyou.com <http://www.weacceptyou.com>







Holden House, 57 Rathbone Place, London W1T 1JU
Ground Floor, 7-10
Charlotte Mews, London W1T 4EE


This message and any attachments are
confidential.  If you have received this message in error please delete it
from your system.  If you require any assistance please notify the sender.
Thank you.


Registered in England & Wales No 5313949, VAT No 853 224 635

Registered office: Holden House, 57 Rathbone Place, London W1T 1JU





_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

geen_line.png (16K) Download Attachment
exported_from_media_encoder.txt (1K) Download Attachment
exported_from_ffmpeg.txt (1K) Download Attachment