简体   繁体   中英

FFmpeg/avconv rotate video with watermark adding using PHP-FFmpeg

I've got problem with rotating video and adding watermark during the same request. My system can get video from mobile devices and has to reformat it for HTML5. so I'm making mp4,webm and ogv formats. Everything works fine, I've figured out how to get video rotation using Mediainfo. I have only one problem. When I want add watermark and rotation to video during the same request I've got only video with watermark (in proper resolution and format) but without rotation. I've read that it is possible to achieve using complex-filter. Has anyone expirience how to make it possible using PHP-ffmpeg? It is very simple to use library, and works for me so it would be really cool if it will start to work.

Ok I've found the solution working well with PHP-ffmpeg wrapper. The solution was building from sources ffmpeg according to manual which is available on ffmpeg website. After this operation everything is working like a charm :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM