FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2014
    Location
    Hungary
    Posts
    3

    ffmpeg cannot use alsa

    Hi

    Fedora 26

    The problem:
    Code:
    bob@bob ~ % ffmpeg -f alsa -i hw:0 out.wav                                                                         :(
    ffmpeg version 3.3.5 Copyright (c) 2000-2017 the FFmpeg developers
      built with gcc 7 (GCC)
    ...
    Unknown input format: 'alsa'
    Apparently I cannot make ffmpeg to record any sound.

    I have all the alsa lib packages installed. I can record sound for example with audacity without any problem.
    Last edited by bobzxr; 5th December 2017 at 07:58 PM.

  2. #2
    Join Date
    Nov 2017
    Location
    Havant
    Posts
    93

    Re: ffmpeg cannot use alsa

    Quote Originally Posted by bobzxr
    Hi

    Fedora 26

    The problem:
    Code:
    bob@bob ~ % ffmpeg -f alsa -i hw:0 out.wav                                                                         :(
    ffmpeg version 3.3.5 Copyright (c) 2000-2017 the FFmpeg developers
      built with gcc 7 (GCC)
    ...
    Unknown input format: 'alsa'
    Apparently I cannot make ffmpeg to record any sound.

    I have all the alsa lib packages installed. I can record sound for example with audacity without any problem.
    Use pulse as ffmpeg hasn't been compiled with alsa support

    Code:
     $ ffmpeg -sources
    
    Auto-detected sources for jack:
    Cannot list sources. Not implemented.
    Auto-detected sources for openal:
    Cannot list sources. Not implemented.
    Auto-detected sources for oss:
    Cannot list sources. Not implemented.
    Auto-detected sources for pulse:
      alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2.monitor [Monitor of GK106 HDMI Audio Controller Digital Stereo (HDMI 3)]
      alsa_output.pci-0000_00_14.2.analog-stereo.monitor [Monitor of Built-in Audio Analog Stereo]
    * alsa_input.pci-0000_00_14.2.analog-stereo [Built-in Audio Analog Stereo]
    Auto-detected sources for libcdio:
    Cannot list sources. Not implemented.
    Auto-detected sources for fbdev:
    Auto-detected sources for lavfi:
    Cannot list sources. Not implemented.
    Auto-detected sources for video4linux2,v4l2:
    Auto-detected sources for x11grab:
    Cannot list sources. Not implemented.
    
    
    $ ffmpeg -sinks
    
    Auto-detected sinks for oss:
    Cannot list sinks. Not implemented.
    Auto-detected sinks for pulse:
    * alsa_output.pci-0000_01_00.1.hdmi-stereo-extra2 [GK106 HDMI Audio Controller Digital Stereo (HDMI 3)]
      alsa_output.pci-0000_00_14.2.analog-stereo [Built-in Audio Analog Stereo]
    Auto-detected sinks for fbdev:
    Auto-detected sinks for opengl:
    Cannot list sinks. Not implemented.
    Auto-detected sinks for sdl,sdl2:
    Cannot list sinks. Not implemented.
    Auto-detected sinks for v4l2:
    Cannot list sinks. Not implemented.
    Auto-detected sinks for xv:
    Cannot list sinks. Not implemented.
    https://src.fedoraproject.org/user/leigh123linux
    https://github.com/leigh123linux
    https://admin.rpmfusion.org/pkgdb/packager/leigh123linux/

  3. #3
    Join Date
    Jul 2014
    Location
    Hungary
    Posts
    3

    Re: ffmpeg cannot use alsa

    Okay so I didn't know that you can invoke pulse directly, skipping alsa.

    So instead of
    Code:
    -f alsa -i pulse
    You can use:
    Code:
    -f pulse -i default
    This way it works.

  4. #4
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,639

    Re: ffmpeg cannot use alsa

    Yes, the command: ffmpeg -formats, shows pulse (and others) available, but not alsa.

Similar Threads

  1. Replies: 3
    Last Post: 23rd June 2009, 08:42 AM
  2. Replies: 2
    Last Post: 19th August 2007, 08:20 PM
  3. Updated packages alsa-lib and alsa-lib-devel for FC1 (stable)
    By fedora-package-announce-admin@fedora.us in forum Advisories & Updates
    Replies: 0
    Last Post: 1st February 2004, 12:10 PM
  4. New Packages alsa-driver and kernel-module-alsa available
    By fedora-package-announce-admin@fedora.us in forum Advisories & Updates
    Replies: 0
    Last Post: 25th January 2004, 07:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •