Winlin 0ba47330ce FFmpeg: Feed PCM to K2 direclty, without any buffer. (#183) před 2 roky
..
CMakeLists.txt 4c688bd3ef Support ASD(Active speaker detection) for incorrect microphone. (#158) před 2 roky
README.md 788dfc272e FFmpeg: Manage objects by C++11 smart pointers. (#179) před 2 roky
sherpa-ncnn-ffmpeg.cc 0ba47330ce FFmpeg: Feed PCM to K2 direclty, without any buffer. (#183) před 2 roky

README.md

ffmpeg-examples

Enable sherpa-ncnn to use any url/file input that FFmpeg supports.

Usage

This example is disabled by default, please enable it by:

cd sherpa-ncnn
mkdir -p build
cd build
cmake -DSHERPA_NCNN_ENABLE_FFMPEG_EXAMPLES=ON ..
make -j10

Note: You can set -DSHERPA_NCNN_ENABLE_DEBUG_FOR_RELEASE=ON to enable debug symbols for release build, see #147 for more details.

Please install ffmpeg first:

  • macOS: brew install ffmpeg

Fixes for errors

To fix the following error:

Package libavdevice was not found in the pkg-config search path.

please run

sudo apt-get install libavdevice-dev

To fix the following error

Makefile:28: *** FFmpeg version should be n5.1 or above!.  Stop.

please run

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:savoury1/ffmpeg4
sudo add-apt-repository ppa:savoury1/ffmpeg5
sudo apt-get update
sudo apt-get install ffmpeg --reinstall
sudo apt-get install libavutil-dev --reinstall

To fix the following error:

ModuleNotFoundError: No module named 'apt_pkg'

please run:

sudo apt-get install python-apt