[FFmpeg-user] Make white of photo transparant

Cecil Westerhof Cecil at decebal.nl
Wed Jun 29 14:42:26 EEST 2022


> The problem of merging the two parts is solved:
>      ffmpeg -y -ss 21:50 -to 23:20 -i input.MTS -i Photos/output.jpg                                \
>             -filter_complex "[0:v][1:v] overlay=10:10:enable='between(t, 5, 85)',                   \
>                                         colorkey=0xFFFFFF\:0.01[ckout];[0:v][ckout]overlay[out]"    \
>             -map '[out]'                                                                            \
>             -pix_fmt yuv420p -c:a:0 copy -vcodec libx264 -preset veryfast -crf 26                   \
>             -t 30 greenScreen.mp4
>
> How can I get the audio into the output?

Found it. I just need to use:
    -map 0:a

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


More information about the ffmpeg-user mailing list