[FFmpeg-user] MXF file using mpeg2video in a windows environment

Nicolas Gaullier nicolas.gaullier at cji.paris
Mon Dec 18 12:10:35 EET 2023

>Thanks for answering!
>I read the article and did some trial and error, but it didn't work.
>What I'm currently trying to do is create a broadcast commercial using ffmpeg.
>I did two things but they didn't work.
>irst, I transferred the MXF file to the XDCOM XDS-PD200, but it was not displayed.
>Second, I used Sony MXF format checking tool which can check MXF files, but it showed an error message.
>When I check the MXF file generated using the code below, I get the error message "The MXF metadata contains an unspecified value".
>Please advise as I don't know what is wrong.
>%~dp0ffmpeg\ffmpeg.exe -i temp\temp2.mxf -i temp\narr3.wav -i temp\narr3.wav -i temp\silent.wav -i temp\silent.wav -i temp\silent.wav -i temp\silent.wav -i temp\silent.wav -i temp\silent.wav -c:a pcm_s24le -ar
>48000 -map 0:V -map 1:0 -map 2:0 -map 3:0 -map 4:0 -map 5:0 -map 6:0 -map
>7:0 -map 8:0 -vf
>-field_order tt -top 1 -flags +ildct+ilme -alternate_scan 1 -g 15 -timecode
>00:59:45:00 -c:v mpeg2video -r 29.97 -pix_fmt yuv422p -aspect 16:9 -color_range 1 -color_primaries 1 -color_trc 1 -colorspace 1 -non_linear_quant 1 -dc 11 -intra_vlc 1 -qmin 1 -lmin "1*QP2LAMBDA" -qmax
>28 -lmax "56*QP2LAMBDA" -b:v 50000000 -minrate 50000000 -maxrate 50000000 -minrate 50000000 -bufsize 17825792 -bf 2 -metadata creation_time=now -vtag xd5c -intra_matrix
>-f mxf -y output/output.MXF
>silent.wav is a sileent file.
>According to the commercial import standard, there is a rule that channel 3 to 8 must be silent.

Please avoid top posting, see https://ffmpeg.org/contact.html#MailingLists
I cannot use the sony soft as I don't read Japanese (the gui can be set in English, but not the error messages!).
First remember about my (very personal) doubts/warnings about lmin/lmax: carefully check the video quality you get - if it looks fine to you, keep it, but otherwise you might need to drop that part of the command line despite it seems required for straight sony conformance.
Concerning mxf itself, ffmpeg's output is fine for most usages, but for sensible cases or when interop is tricky, you may consider bmxtranswrap as a final pass : this is a pretty commonplace broadcast scenario, as implemented in ffastrans for example.


More information about the ffmpeg-user mailing list