Good library for coding video in a dynamic language?

I am looking for an effective video encoding library. I would prefer something in one of the languages ​​like Ruby / Python ilk, but I would use C or PHP libraries that were good. Essentially, I'm looking for something that wraps ffmpeg and will allow me to convert H.264.mp4 to .theora.ogv, .webm and (that would be nice) .flv files.

In the worst case, I could always use any language to initially execute ffmpeg using something like a command ("ffmpeg -i ... etc."), but I would prefer something a bit above the / level in the language , if it is possible.

I already watched RVideo , but could not get it to work correctly.

+4
source share
1 answer

For Python, there are PyMedia and pyffmpeg .

If you need an example using raw, see this .

+6
source

Source: https://habr.com/ru/post/1380255/


All Articles