ALSA support for FFMPEG

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
pieman99
 
Posts: 8
Joined: Mon Apr 28, 2014 7:37 pm

ALSA support for FFMPEG

Post by pieman99 »

I'm not sure if this is the right forum for this question. On a older Pi I installed ffmpeg from the repository and it worked fine recording audio using ALSA support. On the latest version of ffmpeg in the repository it no longer supports ALSA so it won't record audio on the pi.

Is there a way to install the old ffmpeg?

The new one is:
ffmpeg version 0.8.13-6:0.8.13-1+rpi1, Copyright (c) 2000-2014 the Libav developers
built on Jul 29 2014 02:09:52 with gcc 4.6.3
ffmpeg 0.8.13-6:0.8.13-1+rpi1
libavutil 51. 22. 2 / 51. 22. 2
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 1
libpostproc 52. 0. 0 / 52. 0. 0
The older one is:
ffmpeg version 0.8.10-6:0.8.10-1+rpi1, Copyright (c) 2000-2013 the Libav developers
built on Mar 22 2014 02:13:15 with gcc 4.6.3
ffmpeg 0.8.10-6:0.8.10-1+rpi1
libavutil 51. 22. 2 / 51. 22. 2
libavcodec 53. 35. 0 / 53. 35. 0
libavformat 53. 21. 1 / 53. 21. 1
libavdevice 53. 2. 0 / 53. 2. 0
libavfilter 2. 15. 0 / 2. 15. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 52. 0. 0 / 52. 0. 0

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: ALSA support for FFMPEG

Post by adafruit_support_mike »

Try:

Code: Select all

sudo apt-get install alsa-utils

User avatar
pieman99
 
Posts: 8
Joined: Mon Apr 28, 2014 7:37 pm

Re: ALSA support for FFMPEG

Post by pieman99 »

Thanks for the suggestion. I had already tried that. It doesn't update ffmpeg. It appears that ffmpeg has to be built with --enable-alsa turned on. I ended up rebuilding ffmpeg (and all of its dependencies; x264, alsa, etc) from source. It took a really long time, but it actually worked. Now ffmpeg recognizes alsa.

Who does one notify in the repository-package ecosystem to tell them that the version they built is missing a key component?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: ALSA support for FFMPEG

Post by adafruit_support_mike »

Check with the folks over in the Raspbery Pi forums:

http://www.raspberrypi.org/forums/

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”