[FFmpeg-user] How to matte/letterbox plus burn in timecode and subcaps over the letterboxing
Media Mouth
communque at gmail.com
Mon Aug 21 18:44:56 EEST 2023
We've got 1920x1080 source
We want to letterbox top and bottom to create 2.39 aspect ratio, maintaining that within the original 1920x1080
Then over the composited letterboxed picture we want to burn in timecode and subcaps
We're currently achieving the letterbox by means superimposing a photoshop file that handles the letterboxing
ffmpeg \
-i Source.mxf \
-i Source.psd \
-filter_complex "[0:v][1:v] overlay=0:0:enable='between(t,2,10)'" \
Dest.mxf
But when adding the overlays we run into trouble
ffmpeg \
-i Source.mxf \
-i Source.psd \
-filter_complex "[0:v][1:v] overlay=0:0:enable='between(t,2,10)'" \
-vf "drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode='00\\:59\\:57\\:00':rate=23.976:fontsize=43.5:fontcolor=white:x=(w-text_w-35):bordercolor=black:borderw=2:y=75, subtitles=Subcaps.ass" \
Dest.mxf
Error is
[vost#0:0/mpeg2video @ 0x12ba058f0] Filtergraph 'drawtext=fontsize=15:fontfile=/Library/Fonts/DroidSansMono-webfont.ttf:timecode='00\:59\:57\:00':rate=23.976:fontsize=43.5:fontcolor=white:x=(w-text_w-35):bordercolor=black:borderw=2:y=75, subtitles=Subcaps.ass' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a complex filtergraph.
-vf/-af/-filter and -filter_complex cannot be used together for the same stream.
Is there a way to properly configure this?
Thanks
More information about the ffmpeg-user
mailing list