php-av icon indicating copy to clipboard operation
php-av copied to clipboard

Exporting a frame to JPEG

Open davidsteinsland opened this issue 9 years ago • 5 comments

davidsteinsland avatar Mar 17 '16 19:03 davidsteinsland

Interesting start ! thanks. I'll have a look shortly

Will need to refactor some code as I (we) add new features

jpauli avatar Mar 17 '16 21:03 jpauli

Yeah. Would be nice to provide a clean way of exposing more metadata methods of ffmpeg. The actual conversions should in my opinion be done via the ffmpeg cli tool, but I think it would be useful to have a handful of features such as this.

davidsteinsland avatar Mar 18 '16 08:03 davidsteinsland

I've planned to add a full support of libav to PHP , so conversions & all

jpauli avatar Mar 18 '16 09:03 jpauli

Hmm, ok.. Sounds interesting, but having some experiences with video encoders I find it's best to do the actual encoding using ffmpeg. This is because of the optimisations that are in place, using SIMD, graphics card, or what ever. Perhaps you'll manage to incorporate this in PHP, but my bet is that it will be slow.. :) Good luck!

davidsteinsland avatar Mar 18 '16 09:03 davidsteinsland

Doesn't libav populate such an API ? ffmpeg should be just another wrapper over it, publishing some CLI facilities. It should all depend on how libav's got compiled, with which optimizations etc... PHP will just use it as-is, from the OS

jpauli avatar Mar 18 '16 09:03 jpauli