[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.
>>https://www.sony.jp/xdcam/support/download/pwa_mc1.html
>
>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
>copy,il=l=d:c=d,colorspace=fast=1:all=bt709:format=yuv422p:ispace=bt709:itrc=bt709:iprimaries=bt709,il=l=i:c=i,fps=29.970,setfield=tff,setdar=dar=16/9,setsar=sar=1
>-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
>8,17,17,19,17,19,21,21,21,21,21,21,23,22,23,24,24,24,24,24,24,24,25,25,25,26,26,26,29,29,29,26,26,26,25,25,27,27,28,29,29,29,31,32,32,31,31,30,30,33,33,34,34,34,38,38,37,37,43,43,44,50,50,58
>-inter_matrix
>16,17,17,18,18,18,19,19,19,19,20,20,20,20,20,21,21,21,21,21,21,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,25,24,24,24,25,26,26,26,26,25,27,27,27,27,27,28,28,28,28,30,30,30,31,31,33
>-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.
Nicolas
More information about the ffmpeg-user
mailing list