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

大石脩斗 s-oishi at knb.ne.jp
Thu Dec 14 09:46:27 EET 2023

Dear ffmpeg support

I'm Oishi from KNB.
I'm trying to combine mxf file, wav file, and image files using ffmpeg.
I'm using the Windows command prompt.
Is it possible to use the codec mpeg2Video in a Windows environment?
Do I need to install anything additional to use it?

I'll post the code I'm currently creating as an attachment.
I would like to meet the following conditions.
Please let me know if there is anything I can do
Format:Mpeg Video
Number of channel:8(channel 3 to 8 are silent, 1channel is stored in
Sample rate:48KHz
Bit depth:24bit

I hope I can hear from you soon
Best regards

Shuto Oishi
Kitanihon Broadcasting Co., Ltd.
-------------- next part --------------
set CnstFramerate=30

pushd %~dp0

del /Q temp\

%~dp0ffmpeg\ffmpeg.exe -i input\base.MXF temp\baseMuon.MXF

%~dp0ffmpeg\ffmpeg.exe -i input\narr.wav -af "adelay=15000|15000" -c:a pcm_s24le -ar 48000 temp\narr2.wav
%~dp0ffmpeg\ffmpeg.exe -i temp\narr2.wav -af "apad=pad_dur=3.5" -ac 1 -c:a pcm_s24le -ar 48000 temp\narr3.wav
%~dp0ffmpeg\ffmpeg.exe -i temp\narr3.wav -af "volume=0"  temp\silent.wav

%~dp0ffmpeg\ffmpeg.exe -i temp/baseMuon.MXF -loop 1 -i input\logo.png  -pix_fmt yuv422p -g 15 -b:v 50M -maxrate 50M -minrate 50M -filter_complex "[1]lut=a='val*0.9',fade=in:st=25000ms:d=1:alpha=1[a];[0][a]overlay=x=(W-w)/2:y=(H-h)/2:shortest=1" -y temp/temp1.mxf

%~dp0ffmpeg\ffmpeg.exe -i temp/temp1.mxf -vcodec copy -an -y temp\temp2.mxf
: %~dp0ffmpeg\ffmpeg.exe -i temp/temp2.mxf  -c:v copy -y temp\narr.mxf

%~dp0ffmpeg\ffmpeg.exe -i temp/temp1.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 -vcodec copy -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 -c:a pcm_s24le -ar 48000 -y output/output.MXF
: %~dp0ffmpeg\ffmpeg.exe -i output\output.MXF -vcodec libx264 -pix_fmt yuv420p -y output\output.mp4



More information about the ffmpeg-user mailing list