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

大石脩斗 s-oishi at knb.ne.jp
Mon Dec 18 09:46:40 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
I did two things but they didn't work.
First, I transferred the MXF file to the XDCOM XDS-PD200, but it was not
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.

2023年12月14日(木) 19:07 Nicolas Gaullier <nicolas.gaullier at cji.paris>:

> >Is it possible to use the codec mpeg2Video in a Windows environment?
> >Do I need to install anything additional to use it?
> Any platform, any cpu, the mpeg2 encoder is part of libavcodec which is
> part of ffmpeg, so any non-specific (with no explicit disabling) build
> includes it.
> You can actually check it and get "inline help" of you current build this
> simple way:
> ffmpeg -h encoder=mpeg2video
> >Format:Mpeg Video
> >GOP:15
> >Bitrate:50M
> Look for an xdcamhd preset on the web, you'll find plenty. Have to take
> care of progressive vs. interlaced.
> For example:
> https://trac.ffmpeg.org/ticket/7168
> https://github.com/mltframework/mlt/blob/master/presets/consumer/avformat/XDCAM-HD422
> Note that:
> - I recommend you NOT to use 420 as I experienced severe artefacts in this
> configuration, due to the reduced buffer size (420 chroma=>MP at ML)
> - I recommend you NOT to use lmin/lmax as I experienced severe quality
> regression some years ago, and old command lines are no more valid
> currently (in my experience)
> (- in case you target xdcamhd for real, you have to be very careful on the
> reduced sony bufsize at least; and you will not be 100% conformant anyway)
> Nicolas
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".

More information about the ffmpeg-user mailing list