0

I am currently creating a webm file using two mp4's (alpha - black background, white silthoette) and normal video.

Using following ffmpeg command:

ffmpeg -i color.mp4 -i alpha.mp4 \
       -filter_complex [0][1]alphamerge,format=yuva420p \
       -c:v libvpx -strict -2 -auto-alt-ref 0 \
       output.webm

And while this works fine for most browsers, it doesn't work on iOS, so I need to create a .mov (or maybe something else?) file with transparent background.

What is the proper way to do it in ffmpeg?

1 Answer 1

0

Can you try using the following:

ffmpeg -hide_banner -y -i color.mp4 -i alpha.mp4 \
   -shortest -filter_complex [0:v][1:v]alphamerge -map \
   0:a:0 output.webm
New contributor
M.Tag is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    3 hours ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.