<p>Can you try using the following:</p>
<pre><code>ffmpeg -hide_banner -y -i color.mp4 -i alpha.mp4 \
   -shortest -filter_complex [0:v][1:v]alphamerge -map \
   0:a:0 output.webm
</code></pre>

CC BY-SA 4.0
2022-05-16T15:08:31.530Z
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](/help/how-to-answer).
Community
CC BY-SA 4.0
2022-05-16T10:14:08.770Z
2022-05-16T10:14:08.770Z
M.Tag
<p>I am currently creating a webm file using two mp4's (alpha - black background, white silthoette) and normal video.</p>
<p>Using following ffmpeg command:</p>
<pre><code>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
</code></pre>
<p>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.</p>
<p>What is the proper way to do it in ffmpeg?</p>

<ffmpeg><video><ios>
FFMPEG: Video format replacement for webm (alpha channel)
John
# FFMPEG: Video format replacement for webm (alpha channel)

(Asked by: username_0 on 2022-03-18)

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?

**Tags:** ffmpeg, video, ios


---

## 1 answers

### Answer by username_1 on 2022-05-16. Score: 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

> **Comments:**
> **username_2**: 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](/help/how-to-answer).  

---

