libswresample在最近的Ubuntu版本? [英] libswresample in recent Ubuntu version?

查看:226
本文介绍了libswresample在最近的Ubuntu版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道哪个包涵盖了最近Ubuntu版本的libswresample(也许也是早期版本,希望还有Debian)。是否覆盖?



如果没有,我应该使用什么其他的lib来重新采样音频?最好的办法就是让它无处不在,即lib可以随处可见。



或者也许我只是分发libswresample和我的项目,并静态链接到它...

解决方案

Debian和Ubuntu目前使用FFMPEG的libav叉。这个fork有一个名为libavresample的库,与libswresample非常相似但不兼容。不幸的是,Ubuntu 12.10似乎也不包括这个库。如果Debian FFMPEG维护者将继续使用该叉,或者如果他们将切换回包含libswresample的原始FFMPEG以及(完全兼容)libavresample,还有待观察。 http://en.usenet.digipedia.org/thread/16946/35690/



同时您最好的办法是从系统中删除所有libav包,并使用 https://launchpad.net/~jon-severinsson/+archive/ffmpeg ,或者如果你想要流血的边缘,从源头构建它。 >

缺点是一些Debian软件可能依赖于libav。将两个库安装在同一个系统上,在不同的位置可能是可能的(我甚至设法在同一程序中使用),但由于使用相同命名的文件和符号,容易引起问题。


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...

解决方案

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.

这篇关于libswresample在最近的Ubuntu版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆