开发者

FFmpeg php metadata wrapper

开发者 https://www.devze.com 2023-01-16 05:58 出处:网络
I have two questions about FFmpeg 1. Does FFmpeg Output change with versions (ffmpeg -i) 2. If the output don\'t change, anyone know a good PHP/Python class that pars开发者_如何学编程e FFmpeg Output a

I have two questions about FFmpeg 1. Does FFmpeg Output change with versions (ffmpeg -i) 2. If the output don't change, anyone know a good PHP/Python class that pars开发者_如何学编程e FFmpeg Output and get all metadata (Duration, Codec, Audio Biterate, Video Biterate, Width, Height...) 3. if the FFmpeg output change, anyone know a linux tool (cmd line) that get those metadatas without dependence of FFmpeg.

I know that the php-ffmpeg module exist, but it's so old and buggy (wrong duration for example..., can't get $movie->getAudioBitRate() working )

Thanks


ffpmpeg-php seems to be your best bet, unless you want to grab/parse ffmpeg's output directly. If you plan on working with remote files (eg. urls vs. local files) then FFmpeg-php will not work with anything but absolute urls (eg. http://example.com/video.mp4 vs. http://example.com/?get_video=234). There might be a cURL option for accomplishing this but I've yet to come across anything stable.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号