libswresample in recent Ubuntu version?

2019-06-16 16:10发布

I am wondering which package covers libswresample of a recent Ubuntu version (and maybe also earlier ones and hopefully also Debian). Is it covered at all?

If not, what other lib should I use to resample the audio? Best would be to have it working just everywhere, i.e. the lib be available everywhere.

Or maybe I just distribute libswresample along with my project and statically link to it...

标签: ffmpeg
3条回答
SAY GOODBYE
2楼-- · 2019-06-16 16:40

I haven't found anything (comment, post, ...) answering this explicitly. Nor have I found such package (esp. not in the official repo). So, to answer the question: There is no such package.

My solution right now was to compile FFmpeg just manually. ./configure && make && sudo make install mostly works. This includes libswresample. --enable-shared was also useful, if you need that (otherwise only static libs).

查看更多
别忘想泡老子
3楼-- · 2019-06-16 16:42

Debian and Ubuntu currently use the "libav" fork of FFMPEG. This fork has a library called libavresample, that is very similar to libswresample but not compatible. Unfortunately Ubuntu 12.10 doesn't seem to include this library, either. It remains to be seen if the Debian FFMPEG maintainer will keep using that fork, or if they'll switch back to original FFMPEG that contains libswresample as well as (for full compatibility) libavresample. http://en.usenet.digipedia.org/thread/16946/35690/

Meanwhile your best bet is to remove all libav packages from your system and use FFMPEG packages from https://launchpad.net/~jon-severinsson/+archive/ffmpeg or if you want bleeding edge, build it from source.

The drawback is that some Debian software might depend on libav. Having both libraries installed on the same system, in different locations, might be possible (I even managed to use both in the same program) but it is prone to cause problems because they use identically named files and symbols.

查看更多
手持菜刀,她持情操
4楼-- · 2019-06-16 16:56

Sorry to wake an old question but Ubuntu 14.04 will likely bring libavresample back.

http://packages.ubuntu.com/trusty/libavresample1

查看更多
登录 后发表回答