Hi all,

We are using an Ubuntu 22.04 install with X (not Wayland) on an Intel NUC 11 
Pro  NUC11TNKi3.
When simply launching a terminal, we can record audio easily, and with success:

      ffmpeg -f alsa -i default  alsaout.wav

However, we need to launch this as the same user as we used in X, but from a 
daemon. We use sudo to become that same user and launch the exact same ffmpeg 
command as above.

This results in ffmpeg giving the following error:

      [alsa @ 0x5560dc7f9e40] cannot open audio device default (No such file or 
directory)
      default: Input/output error

In both situations we can run alsamixer with success, and 'arecord -L' shows:

null
    Discard all samples (playback) or generate zero samples (capture)
default
    Playback/recording through the PulseAudio sound server
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output

However also in both cases, 'arecord -l' only shows

      **** List of CAPTURE Hardware Devices ****

If we use ssh to that same machine, using that same user, it is also working 
fine.

We have tried to find any indications what is the cause (like making that user 
part of the audio group), but none of it worked.

In previous versions of Ubuntu (LTS), this was no problem at all.

Any hints or ideas are welcome,

Christof



Christof Ameye
CTO
T   +32 56 74 50 10
E   christof.am...@oscart.eu
oscart.eu
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to