View previous topic :: View next topic |
Author |
Message |
krumpf Apprentice
Joined: 15 Jul 2018 Posts: 187
|
Posted: Wed Oct 11, 2023 6:48 pm Post subject: [Solved: mold issue] Avidemux can't detect ALSA device |
|
|
Hi,
Avidemux is a basic video editor composed by avidemux avidemux-core avidemux-plugins.
Recently, it stopped playing sound on its preview window - but has no issue with encoding,
I've noted the following error message when launched from terminal Code: | [ADM_audioByName] 18:34:54-961 Device not found :AlsaDefault |
At first, I thought it was a alsa driver issue, I've been trying with different kernel versions, but no luck.
Then I remembered gentoo had a ffmpeg update from 4.4 to 6.0 that I believe to be the source of sound issue (avidemux package comes with embedded ffmpeg version 4.4.2).
Could anyone confirm/deny that issue ?
Would that be fixable through ebuild, or does it require a patch from avidemux authors ?
Thanks for reading
Last edited by krumpf on Thu Oct 12, 2023 2:34 pm; edited 2 times in total |
|
Back to top |
|
|
gorg86 Guru
Joined: 20 May 2011 Posts: 315
|
Posted: Thu Oct 12, 2023 2:38 am Post subject: |
|
|
At some point Avidemux stopped using a sound device by default, you have to select it manually in Edit->Preferences->Audio |
|
Back to top |
|
|
krumpf Apprentice
Joined: 15 Jul 2018 Posts: 187
|
Posted: Thu Oct 12, 2023 5:36 am Post subject: |
|
|
gorg86 wrote: | At some point Avidemux stopped using a sound device by default, you have to select it manually in Edit->Preferences->Audio |
The AudioDevice list only shows the "Dummy" device. Guess I'll try to downgrade ffmpeg to version 4.4 and see if there's any change.
UPDATE : no luck with ffmpeg 4.4 either, so I suppose it's an avidemux issue
(editing the title to remove ffmpeg reference) |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2730 Location: Here and Away Again
|
Posted: Thu Oct 12, 2023 10:49 am Post subject: |
|
|
Are you using plain ALSA, and do you have a custom '.asoundrc'?
It does seem to find my devices (from my custom '.asoundrc'), with 'media-libs/avidemux-plugins[alsa]'. _________________ Kindest of regardses. |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5110 Location: Bavaria
|
Posted: Thu Oct 12, 2023 10:54 am Post subject: |
|
|
krumpf,
this is just a shot in the dark (because I dont know Avidemux):
Maybe you are using pulseaudio or pipewire handling your audio devices, but Avidemux wants a default device from ALSA ?
Do you have a /etc/asound.conf ?
I am using a pure ALSA solution and it was necessary to define the default:
Code: | # LC_MESSAGES=C aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC897 Analog [ALC897 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC897 Digital [ALC897 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [Acer ET430K]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
~ # more /etc/asound.conf
defaults.pcm.card 0
defaults.pcm.device 3 |
|
|
Back to top |
|
|
krumpf Apprentice
Joined: 15 Jul 2018 Posts: 187
|
Posted: Thu Oct 12, 2023 12:11 pm Post subject: |
|
|
I'm using a pure ALSA system too. Been trying to remove/tweak my asoundrc, no change.
avidemux-plugins is compiled with alsa use flag.
Every other app that produces sound got no sound issue, so it's not an Alsa trouble. Avidemux used to work perfectly, so I suspect something changed in my setup, but besides a kernel or ffmpeg update, I can't see what. |
|
Back to top |
|
|
Chiitoo Administrator
Joined: 28 Feb 2010 Posts: 2730 Location: Here and Away Again
|
Posted: Thu Oct 12, 2023 2:05 pm Post subject: |
|
|
Well, 'system-ffmpeg' has been masked since 2013 it looks like... so indeed, that would not have any effect, unless you unmasked.
Also, I was in too much of a hurry earlier. It looks like Avidemux does not care about my '.asoundrc' at all, and only lists the following:
Code: | Dummy
AlsaDmix
AlsaDefault
AlsaHw0 |
This is what it looks like when it scans for them:
Code: | [ADM_av_loadPlugins] 10:44:25-492 [ADM_av_plugin] Scanning directory /usr/lib64/ADM_plugins6/audioDevices
[ADM_AudioDevices] 10:44:25-493 Name :AlsaDmix ApiVersion :2
[tryLoadingFilterPlugin] 10:44:25-493 [Filters] Registered filter /usr/lib64/ADM_plugins6/audioDevices/libADM_av_alsaDMix.so as Alsa Audio Device (dmix) (c) Mean 2008
[ADM_AudioDevices] 10:44:25-493 Name :AlsaDefault ApiVersion :2
[tryLoadingFilterPlugin] 10:44:25-493 [Filters] Registered filter /usr/lib64/ADM_plugins6/audioDevices/libADM_av_alsaDefault.so as Alsa Audio Device (default) (c) Mean 2009
[ADM_AudioDevices] 10:44:25-493 Name :AlsaHw0 ApiVersion :2
[tryLoadingFilterPlugin] 10:44:25-493 [Filters] Registered filter /usr/lib64/ADM_plugins6/audioDevices/libADM_av_alsaHw.so as Alsa Audio Device (hw:0) (c) Mean 2008
[ADM_av_loadPlugins] 10:44:25-493 [ADM_av_plugin] Scanning done |
_________________ Kindest of regardses. |
|
Back to top |
|
|
krumpf Apprentice
Joined: 15 Jul 2018 Posts: 187
|
Posted: Thu Oct 12, 2023 2:33 pm Post subject: |
|
|
Progess !
Checked the /usr/lib64 folder, the /usr/lib64/ADM_plugins6/audioDevices wasn't present.
So I tried recompiling avidemux-plugins again --> incriminated folder wasn't created. Then Eureka, I tweaked the compiler from gcc+lto+mold to gcc+lto, and it worked, the audioDevices folder magically appeared, and sound is back in avidemux !
So it seems to be a mold linker issue.
Thanks for help & hints folks |
|
Back to top |
|
|
|