motioneye-project / motioneye

A web frontend for the motion daemon.
GNU General Public License v3.0
3.86k stars 649 forks source link

Save video files as webm files #2414

Open giff1000 opened 2 years ago

giff1000 commented 2 years ago

Hi there, sorry I'm not sure how to label this properly , it should be a feature request.

Would it be at all possible to add the ability to save video files as webm files?

Thank you very much

Kind regards

Paul

MichaIng commented 2 years ago

Many thanks for your request.

Generally it is possible to convert to webm via FFmpeg, but it requires additional libraries, which AFAIK are not compile into most distribution's FFmpeg packages: https://stackoverflow.com/questions/6954845/how-to-create-a-webm-video-file ... although, on Debian: https://packages.debian.org/bullseye/libavcodec58 libvorbis0a and libvpx6 are dependencies of the FFmpeg codec library.

Probably we can ask FFmpeg about supported video codecs and offer those. I've actually not have a look at if/how video formats can be selected right now. There is a setting in motionEye camera configs with a file extension > format mapping, in current dev code since #2110.