0

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
1

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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