Page 1 of 1

mxf XDCAM from ffmpeg

PostPosted: Wed Nov 11, 2015 5:12 pm
by Jonathan Bäcker
Hello Everybody,
we have here video material from sony cameras, witch comes in XDCAM HD 35. The problem is that it is recorder in mp4 containers and Resolve (12) can not read this.

So we try to multiplex the stream new in a mxf container. I try it with ffmpeg, but it doesn't work. When we re-encode them with the sony content browser the files are ok in Resolve. But we don't wont to re-encode them.

The funny thing is, that my file from ffmpeg looks identical in mediainfo to the file from sony content browser:

Sony:
Code: Select all
ormat                                   : MXF
Commercial name                          : XDCAM HD 35
Format version                           : 1.2
Format profile                           : OP-1a
Format settings                          : Closed / Complete
File size                                : 322 MiB
Duration                                 : 1mn 10s
Overall bit rate mode                    : Variable
Overall bit rate                         : 38.5 Mbps
Encoded date                             : 2015-11-09 11:27:11.000
Writing application                      : Sony util 1.00

Video
ID                                       : 2
Format                                   : MPEG Video
Commercial name                          : XDCAM HD 35
Format version                           : Version 2
Format profile                           : Main@High
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=12
Format settings, wrapping mode           : Frame
Codec ID                                 : 0D01030102046001-0401020201030300
Duration                                 : 1mn 10s
Bit rate mode                            : Variable
Bit rate                                 : 35.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.675
Stream size                              : 292 MiB (91%)
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 3
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 1mn 10s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 6.42 MiB (2%)

Audio #2
ID                                       : 4
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 1mn 10s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 6.42 MiB (2%)

Audio #3
ID                                       : 5
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 1mn 10s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 6.42 MiB (2%)

Audio #4
ID                                       : 6
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 1mn 10s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 6.42 MiB (2%)

Other #1
ID                                       : 1-Material
Type                                     : Time code
Format                                   : MXF TC
Time code of first frame                 : 17:28:07:10
Time code settings                       : Material Package
Time code, striped                       : Yes

Other #2
ID                                       : 1-Source
Type                                     : Time code
Format                                   : MXF TC
Time code of first frame                 : 17:28:07:10
Time code settings                       : Source Package
Time code, striped                       : Yes

Other #3
Type                                     : Time code
Format                                   : SMPTE TC
Muxing mode                              : SDTI
Time code of first frame                 : 17:28:07:10


ffmpeg:
Code: Select all
Format                                   : MXF
Commercial name                          : XDCAM HD 35
Format version                           : 1.2
Format profile                           : OP-1a
Format settings                          : Closed / Complete
File size                                : 1.69 GiB
Duration                                 : 6mn 19s
Overall bit rate mode                    : Variable
Overall bit rate                         : 38.3 Mbps
Encoded date                             : 0-00-00 00:00:00.000
Writing application                      : FFmpeg OP1a Muxer 56.40.101

Video
ID                                       : 2
Format                                   : MPEG Video
Commercial name                          : XDCAM HD 35
Format version                           : Version 2
Format profile                           : Main@High
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=12
Format settings, wrapping mode           : Frame
Codec ID                                 : 0D01030102046001-0401020201030300
Duration                                 : 6mn 19s
Bit rate mode                            : Variable
Bit rate                                 : 35.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Standard                                 : Component
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.675
Stream size                              : 1.55 GiB (91%)
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio #1
ID                                       : 3
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 6mn 19s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 34.7 MiB (2%)

Audio #2
ID                                       : 4
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 6mn 19s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 34.7 MiB (2%)

Audio #3
ID                                       : 5
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 6mn 19s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 34.7 MiB (2%)

Audio #4
ID                                       : 6
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 6mn 19s
Bit rate mode                            : Constant
Bit rate                                 : 768 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 34.7 MiB (2%)

Other #1
ID                                       : 1-Material
Type                                     : Time code
Format                                   : MXF TC
Time code of first frame                 : 17:28:07:10
Time code settings                       : Material Package
Time code, striped                       : Yes

Other #2
ID                                       : 1-Source
Type                                     : Time code
Format                                   : MXF TC
Time code of first frame                 : 17:28:07:10
Time code settings                       : Source Package
Time code, striped                       : Yes

Other #3
Type                                     : Time code
Format                                   : SMPTE TC
Muxing mode                              : SDTI
Time code of first frame                 : 17:28:07:10


Is there any metadata, what mediainfo doesn't show, and Resolve need? Or any other idea?

Muxing in mov is not a good solution to, because it only works on mac, and not on windows.

My ffmpeg command looks like this:

Code: Select all
fmpeg -i input.MP4 -timecode 17:28:07:10 -metadata creation_time="2015-11-09 11:27:11.000" -c:v copy -filter_complex [0:a]channelsplit[a][b] -map 0:0 -map [a] -map [b] -f mxf -y output.MXF


Regards
Jonathan

Re: mxf XDCAM from ffmpeg

PostPosted: Wed Nov 11, 2015 7:30 pm
by Craig Marshall
See if ClipToolz Convert v2.0 will re-wrap them to .MOV. Works in Windows. Downloadable from the Dropbox link at page bottom: http://hdcinematics.com/convert-V2.html

Re: mxf XDCAM from ffmpeg

PostPosted: Wed Nov 11, 2015 8:05 pm
by Jack Swart
Use the XDCAM TRANSFER app (free fom Sony)
This rewraps the XDCAM footage into .mov files which DaVinci will easily read.

Re: mxf XDCAM from ffmpeg

PostPosted: Thu Nov 12, 2015 8:49 am
by Jonathan Bäcker
Thank you for your answers! I have try both, ClipToolz and XDCAM Transfer. From both I cannot import the clips in DaVinci (is this because I have the Lite Version?). It only shows the Sound, not the Video. I have Read that in Windows Quick Time needs a extra Codec for XDCAM. I found here Calibrated{Q} XD Decode - with that I get it to work, but I only have a demo License from it.

In OSX I can use the mov files, for that I also can use ffmpeg to rewrap, but Windows is here the problem. So I thought I use mxf, because theoretical DaVinci can work with mxf to.

Edit:
I found a way, not the best but it works. First multiplex the files with ffmpeg to mxf, and after that rewrite the mxf with the bmx ( http://sourceforge.net/projects/bmxlib/?source=typ_redirect ) tools:

Code: Select all
bmxtranswrap --rt 1.0 -o output.MXF --gf "input.MXF"