<p>Add <code>format=yuva444p,</code> before 'rotate'.</p>

<pre><code>ffmpeg -i empt_vid_5891581054410.mp4\
-i merged-571580302534.mp4 \
-filter_complex "[1:v]format=yuva444p,rotate=-30*PI/180:ow=rotw(iw):oh=roth(ih):c=none [rotate];[0:v][rotate] overlay=40:10:enable='between(t,2,7)', colorchannelmixer=aa=0.5" -auto-alt-ref 0 -pix_fmt yuv420p -c:a copy overlayavatar.mp4
</code></pre>

CC BY-SA 4.0
2020-03-01T04:11:34.177Z
2020-03-01T04:11:34.177Z
drake7
<p>I am trying to change a video with Rotation, rounded corner,  transparent, scaling, and border all with together and overlay on a video;
I am trying to do this with FFMPEG in PHP but getting issue in transparent background; I am getting green background please help;</p>

<pre><code>ffmpeg -i empt_vid_5891581054410.mp4 -i merged-571580302534.mp4 -filter_complex "[1:v] rotate=-    30*PI/180:ow=rotw(iw):oh=roth(ih):c=none [rotate];[0:v][rotate] overlay=40:10:enable='between(t,2,7)', colorchannelmixer=aa=0.5" -auto-alt-ref 0 -pix_fmt yuv420p -c:a copy overlayavatar.mp4
</code></pre>

CC BY-SA 4.0
2020-02-07T13:50:06.870Z
See current output:  https://nimb.ws/qpaf08
Avan Shrivastava
<ffmpeg>
video overlay on another video with rounded corner, transparency, opacity, scaling, and border all together with FFMPEG in PHP
Avan Shrivastava
# video overlay on another video with rounded corner, transparency, opacity, scaling, and border all together with FFMPEG in PHP

(Asked by: username_0 on 2020-02-07)

I am trying to change a video with Rotation, rounded corner,  transparent, scaling, and border all with together and overlay on a video;
I am trying to do this with FFMPEG in PHP but getting issue in transparent background; I am getting green background please help;
ffmpeg -i empt_vid_5891581054410.mp4 -i merged-571580302534.mp4 -filter_complex "[1:v] rotate=-    30*PI/180:ow=rotw(iw):oh=roth(ih):c=none [rotate];[0:v][rotate] overlay=40:10:enable='between(t,2,7)', colorchannelmixer=aa=0.5" -auto-alt-ref 0 -pix_fmt yuv420p -c:a copy overlayavatar.mp4

**Tags:** ffmpeg

> **Comments:**
> **username_0**: See current output:  https://nimb.ws/qpaf08  

---

## 1 answers

### Answer by username_1 on 2020-03-01. Score: 0

Add format=yuva444p, before 'rotate'.
ffmpeg -i empt_vid_5891581054410.mp4\
-i merged-571580302534.mp4 \
-filter_complex "[1:v]format=yuva444p,rotate=-30*PI/180:ow=rotw(iw):oh=roth(ih):c=none [rotate];[0:v][rotate] overlay=40:10:enable='between(t,2,7)', colorchannelmixer=aa=0.5" -auto-alt-ref 0 -pix_fmt yuv420p -c:a copy overlayavatar.mp4


---

