Opened 8 years ago

Last modified 5 years ago

#5097 new defect

XDCAM HD422

Reported by: AxelTechnology Owned by:
Priority: normal Component: avformat
Version: unspecified Keywords: mxf
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Hello everyone, my goal is to import files into a Sony Station machine using the software Sony Content Browser, but I keep getting "unsupported file" messages.
The XDCAM profile I need to use is HD422 https://en.wikipedia.org/wiki/XDCAM

How to reproduce:

% ffmpeg -i input.mpg -vcodec mpeg2video -s 1920x1080 -b:v 50000k -maxrate 50000k -bufsize 3835k -minrate 50000k -r 25 -flags ilme -top 1 -acodec pcm_s24le -ar 48000 -pix_fmt yuv422p  output.mxf

ffmpeg version git-2dba040 
built on 2015-12-19

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (13)

comment:1 by laurfb, 8 years ago

Hi. Add "-profile:v 0 -level:v 2" to fully define XDCAM HD422
regards
laurfb

comment:2 by AxelTechnology, 8 years ago

Hi, yes the output file has all the XDCAM HD422 format features, but it cannot be loaded into Sony Content Browser.

FFmbc fixed this issue with this:
https://github.com/bcoudurier/FFmbc/commit/a9cc593546280c8aba4d4340be884fc81dfd2d70

regards

comment:3 by Carl Eugen Hoyos, 8 years ago

Did you confirm that if you apply the change to current FFmpeg git head the issue is resolved?

comment:4 by laurfb, 8 years ago

MXF files generated by ffmpeg/ffmbc is not fully compliant with MXF specs/structure.
I faced similar problems and only solution I found till now is to rewrap always mxf files with bmxlibs (http://sourceforge.net/projects/bmxlib/).
To further investigate this problem I upload the original mxf files generated by ffmpeg, the rewraped mxf files with bmxtranswrap (from bmxlibs) and the mxf dump infos from both files using mxfdump (also from bmxlibs) hopping that someone will be able to identify the problem.

How to reproduce:

  1. generate the mxf files (xdcam_ffmpeg.mxf) with ffmpeg (git) - doesn't matter XDCAM flavour (422 or 420, profile/level etc.)
  2. rewrap mxf with: "bmxtranswrap -p -o bmx_rewrap.mxf xdcam_ffmpeg.mxf"
  3. dump the mxf infos with: "mxfdump --mxf-dump xdcam_ffmpeg.mxf > ffmpeg_mxf_dump.txt"

and "mxfdump --mxf-dump bmx_rewrap.mxf > rewrap_mxf_dump.txt"

The sample files can be downloaded from http://www47.zippyshare.com/v/hDFBE9A8/file.html

regards,
laur

Last edited 8 years ago by laurfb (previous) (diff)

in reply to:  4 comment:5 by Carl Eugen Hoyos, 8 years ago

Replying to laurfb:

MXF files generated by ffmpeg/ffmbc is not fully compliant with MXF specs/structure.

This sounds like an issue different from the one in this ticket.

comment:6 by laurfb, 8 years ago

Nope. It's about "unsupported file" messages when try to import some XDCAM MXF files in broadcast applications (like Sony Browser, AVID, etc.).
ffmbc partially resolved MXF KVL/header wrapping and only for XDCAM HD422 (not working at all for XDCAM EX/HD files).
After re-wrapping (with libbmx) files are loaded without any error.
regards,
laurfb

comment:7 by Baptiste Coudurier, 8 years ago

I tested FFmbc with Sony Content Browser and PDX devices and all XDCAM files import fine with ffmbc generated files.Could you please clarify what does not work ?
That would help a lot. Thanks a lot !

comment:8 by laurfb, 8 years ago

Hi. I do some more test with XDCAM MXF files using ffmbc/ffmpeg and the latest SONY browsers/viewers. Yes, the MXF files are loaded and played without any error, but:
From what I know MXF was developed as an exchange standard in broadcast industry.
However the flexibility of format lead sometime to interoperability issue: MXF files produced by some equipment/producers (like Sony for ex.) is not necessarely understood by all apps that claim to support MXF standards, most often due to obscure subformat options behind MXF extension.
Recently one of my friend had some compatibility issue using ffmpeg/ffmbc with some particular application (playout automation system from http://si-media.tv/) - the MXF files can't be loaded ("unsuported format") and the only solution I found is to re-wrap MXF files (generated either with ffmpeg or ffmbc) with bmxlib.
I must say that all the MXF files generated with ffmpeg/ffmbc (e.g. files uploaded on zippyshare) are well played on few other proffesional grade apps I used (Drastic Preview, Cinegy, Sony Viewer).
Also, the initial issue reported by Axel Technology I think is related to their XTV automation&playout systems (http://www.axeltechnology.com).
I don't have acces to such playouts systems (simedia or axel) so I can't help with furter tests if needed.
I think the only solution to maximize the overall ffmpeg mxf compatibility is to use the bmxlibs (based on BBC R&D specs as far as I know) which, I hope, will eliminate the majority of problems encountered.
Don't know if someone will have more time to investigate that matter but I think it would be useful to extend the overall ffmpeg compatibility.
Thanks for your work!
best regards,
laur

in reply to:  8 comment:9 by Carl Eugen Hoyos, 8 years ago

Replying to laurfb:

Hi. I do some more test with XDCAM MXF files using ffmbc/ffmpeg and the latest SONY browsers/viewers. Yes, the MXF files are loaded and played without any error

But this ticket is about FFmpeg files not being loaded and played by the Sony content browser.

We all know that the development of mxf as an exchange standard in broadcast industry was not successful. Still, if you can fix issues with FFmpeg's mxf muxer, please do not hesitate to send a patch to the FFmpeg development mailing list, if you found an issue that you cannot fix, please send an email to the FFmpeg user mailing list explaining how to reproduce the issue or open a new ticket. If you decide to open a new ticket, please do not forget to test current FFmpeg git head and to provide the command line that allows to reproduce the issue together with the complete, uncut console output (of current FFmpeg git head).

comment:10 by AxelTechnology, 7 years ago

In the past, we patched the mxfenc file and it worked in SONY Browser. Today we want to apply again the patch on the last release. Anyone can help us to apply the patch in FFmpeg git head? We can provide the original and the modified mxfenc.c file with the patch.

comment:11 by vimlesh1975, 6 years ago

Hi
Is this solved?

I also want to use ffmpeg for transcoding files and making campatilble to sony devices

Last edited 6 years ago by vimlesh1975 (previous) (diff)

in reply to:  10 comment:12 by Carl Eugen Hoyos, 6 years ago

Replying to AxelTechnology:

In the past, we patched the mxfenc file and it worked in SONY Browser.

Too bad you didn't tell us when I asked in comment:3...

comment:13 by Carl Eugen Hoyos, 5 years ago

Component: undeterminedavformat
Keywords: mxf added
Note: See TracTickets for help on using tickets.