Yahweasel / libav.js

This is a compilation of the libraries associated with handling audio and video in ffmpeg—libavformat, libavcodec, libavfilter, libavutil, libswresample, and libswscale—for emscripten, and thus the web.
291 stars 18 forks source link

Resampling #3

Closed BobbyShoe closed 3 years ago

BobbyShoe commented 3 years ago

The docs mention libswresample is included, but I do not see any resampling classes in bindings.c

In other projects I have used SwrContext to do resampling within FFmpeg. Is there anything similar available in libav.js?

Thanks.

Yahweasel commented 3 years ago

I don't have bindings directly to libswresample, I just have resampling supported by way of the aresample filter. I'll admit the only reason for this is that I've never actually used libswresample directly myself, only by way of the aresample filter :). I believe that anything one can do with libswresample one can also do indirectly via its avfilter. Nonetheless, I'll consider adding a direct interface.

BobbyShoe commented 3 years ago

Took me a while, but I got it working with the aresample filter. Thanks for the suggestion.