[FFmpeg-user] MXF, OP1A, DNxHD - Creates corrupted (Potential bug?)

Mark O'Shea mark-os at weacceptyou.com
Fri Aug 9 00:59:33 EEST 2019


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




-------------- next part --------------
A non-text attachment was scrubbed...
Name: geen_line.png
Type: image/png
Size: 12613 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20190808/c3293b22/attachment.png>
-------------- next part --------------
Input #0, mxf, from 'correclty_exported.mxf':
  Metadata:
    uid             : 1c1f2101-ba21-11e9-9466-720004979fd0
    generation_uid  : 1c1f2102-ba21-11e9-8138-720004979fd0
    company_name    : Adobe Systems Incorporated
    product_name    : Adobe Media Encoder
    product_version : 12.1.2
    application_platform: Mac OS X
    product_uid     : 0c3919fe-46e8-11e5-a151-feff819cdc9f
    modification_date: 2019-08-08T21:11:38.000000Z
    material_package_umid: 0x060A2B340101010501010D111300000010378C040387058038D0720004979FD0
    timecode        : 00:00:03:05
  Duration: 00:00:13.71, start: 0.000000, bitrate: 121130 kb/s
    Stream #0:0: Video: dnxhd (DNXHD), yuv422p(bt709/unknown/unknown, progressive), 1920x1080, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D121329D93110378C0403870580EA8C720004979FD0
      file_package_name: Source Package
      track_name      : Track 1
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010D121329D93110378C0403870580EA8C720004979FD0
      file_package_name: Source Package
      track_name      : Track 2
-------------- next part --------------
[dnxhd @ 0x7fb203001800] frame size changed: 1920x1088 -> 1920x1080
Input #0, mxf, from 'converted_test.mxf':
  Metadata:
    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000
    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001
    company_name    : FFmpeg
    product_name    : OPAtom Muxer
    product_version : 58.20.100
    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002
    modification_date: 0000-01-02T00:00:00.000000Z
    material_package_umid: 0x060A2B340101010501010D0013EE49445294713416EE4944005294713416EE00
    timecode        : 00:00:00:00
  Duration: 00:00:14.25, start: 0.000000, bitrate: 36180 kb/s
    Stream #0:0: Video: dnxhd (DNXHD), yuv422p(bt709/unknown/unknown, progressive), 1920x1080, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc
    Metadata:
      file_package_umid: 0x060A2B340101010501010D0013EE49445294713416EE4944005294713416EE01
      reel_umid       : 0x060A2B340101010501010D0013EE49445294713416EE4944005294713416EE02
      reel_name       : A001_B281_DE56
      timecode        : 00:00:00:00


More information about the ffmpeg-user mailing list