[FFmpeg-user] Ubuntu 22.04 audio capture issue
Christof Ameye (Oscart Group)
christof.ameye at oscart.eu
Fri Dec 2 10:18:48 EET 2022
Followup:
We have found a solution via a different group:
https://unix.stackexchange.com/questions/231941/cant-run-aplay-as-root/602707
It involves setting the XDG_RUNTIME_DIR environment variable.
Just wanted to let you know.
--
Christof
[https://cdn.sstatic.net/Sites/unix/Img/apple-touch-icon@2.png?v=32fb07f7ce26]<https://unix.stackexchange.com/questions/231941/cant-run-aplay-as-root/602707>
Can't run aplay as root!<https://unix.stackexchange.com/questions/231941/cant-run-aplay-as-root/602707>
Not that I need to aplay as root but it came across me and I wondered why it shouldn't work. # aplay /home/bibek/apert.wav XDG_RUNTIME_DIR (/run/user/1000) is not owned by us (uid 0), but by uid...
unix.stackexchange.com
Christof Ameye
CTO
T +32 56 74 50 10
E christof.ameye at oscart.eu
oscart.eu
________________________________
Van: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> namens Christof Ameye (Oscart Group) <christof.ameye at oscart.eu>
Verzonden: maandag 28 november 2022 17:14
Aan: ffmpeg-user at ffmpeg.org <ffmpeg-user at ffmpeg.org>
Onderwerp: [FFmpeg-user] Ubuntu 22.04 audio capture issue
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.ameye at oscart.eu
oscart.eu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image305054.png
Type: image/png
Size: 4641 bytes
Desc: image305054.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20221202/f15845c4/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image597601.png
Type: image/png
Size: 444 bytes
Desc: image597601.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20221202/f15845c4/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image831863.png
Type: image/png
Size: 712 bytes
Desc: image831863.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20221202/f15845c4/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image159913.png
Type: image/png
Size: 427 bytes
Desc: image159913.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20221202/f15845c4/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image149600.png
Type: image/png
Size: 556 bytes
Desc: image149600.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20221202/f15845c4/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image341069.png
Type: image/png
Size: 452 bytes
Desc: image341069.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20221202/f15845c4/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image023877.png
Type: image/png
Size: 69356 bytes
Desc: image023877.png
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20221202/f15845c4/attachment-0006.png>
More information about the ffmpeg-user
mailing list