Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-01T04:11:34.177Z
Answers.LastActivityDate: 2020-03-01T04:11:34.177Z
Answers.UserDisplayName: drake7
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-02-07T13:50:06.870Z
Comments.Text: See current output:  https://nimb.ws/qpaf08
Comments.UserDisplayName: Avan Shrivastava
Tags: <ffmpeg>
Title: video overlay on another video with rounded corner, transparency, opacity, scaling, and border all together with FFMPEG in PHP
UserDisplayName: Avan Shrivastava
ThreadText: # 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
  
  ```
  
  
  ---
  
  