docker-firefox icon indicating copy to clipboard operation
docker-firefox copied to clipboard

No Sound

Open pradeepk2001 opened this issue 3 years ago • 9 comments

Hi, just setup the container on my Synology and everything works fine - almost. This was exactly what I was looking for to allow me to browse directly from my Synology NAS.

The only issue is that I am not able to get sound when I open up a site like Youtube. I know VNC has poor support for audio, but I was wondering if there is a simple solution to this ?

I am fairly new to docker so apologies if I am missing something basic

Regards, Pradeep

pradeepk2001 avatar Apr 20 '21 12:04 pradeepk2001

Its in the docs /dev/snd must be exposed to the container by adding the --device /dev/snd parameter to the docker run command

robinjoerke avatar Aug 12 '21 09:08 robinjoerke

I'm also getting no sound even with the --device /dev/snd parameter added to the docker run command. Running Ubuntu 21.04 as well. Not sure if it's an OS driver issue or what. Also, running it in a cloud VM so it may be that sound isn't supported on the machine by default.

Any ideas?

therodfather avatar Aug 23 '21 16:08 therodfather

@jlesage no sound here and with other containers solutions from others I'm able to get sound. So seems to be here the issue.

crw-rw-rw-    1 root     root        1,   5 Oct 22 21:14 zero
crw-rw-rw-    1 root     root        1,   9 Oct 22 21:14 urandom
crw-rw-rw-    1 root     root        5,   0 Oct 22 21:14 tty
lrwxrwxrwx    1 root     root            15 Oct 22 21:14 stdout -> /proc/self/fd/1
lrwxrwxrwx    1 root     root            15 Oct 22 21:14 stdin -> /proc/self/fd/0
lrwxrwxrwx    1 root     root            15 Oct 22 21:14 stderr -> /proc/self/fd/2
drwxr-xr-x    2 root     root           280 Oct 22 21:14 snd
drwxrwxrwt    2 root     root            40 Oct 22 21:14 shm
crw-rw-rw-    1 root     root        1,   8 Oct 22 21:14 random
drwxr-xr-x    2 root     root             0 Oct 22 21:14 pts
lrwxrwxrwx    1 root     root             8 Oct 22 21:14 ptmx -> pts/ptmx
crw-rw-rw-    1 root     root        1,   3 Oct 22 21:14 null
drwxrwxrwt    2 root     root            40 Oct 22 21:14 mqueue
crw-rw-rw-    1 root     root        1,   7 Oct 22 21:14 full
lrwxrwxrwx    1 root     root            13 Oct 22 21:14 fd -> /proc/self/fd
lrwxrwxrwx    1 root     root            11 Oct 22 21:14 core -> /proc/kcore
/dev #

/dev # cd snd
/dev/snd # ll
total 0
crw-rw----    1 root     29        116,  33 Oct 22 21:14 timer
crw-rw----    1 root     29        116,   1 Oct 22 21:14 seq
crw-rw----    1 root     29        116,   7 Oct 22 21:14 pcmC0D9p
crw-rw----    1 root     29        116,   6 Oct 22 21:14 pcmC0D8p
crw-rw----    1 root     29        116,   5 Oct 22 21:14 pcmC0D7p
crw-rw----    1 root     29        116,   4 Oct 22 21:14 pcmC0D3p
crw-rw----    1 root     29        116,   8 Oct 22 21:14 pcmC0D10p
crw-rw----    1 root     29        116,   3 Oct 22 21:14 pcmC0D0c
crw-rw----    1 root     29        116,  10 Oct 22 21:14 hwC0D2
crw-rw----    1 root     29        116,   9 Oct 22 21:14 hwC0D0
crw-rw----    1 root     29        116,  11 Oct 22 21:14 controlC0
crw-rw----    1 root     29        116,   2 Oct 22 21:27 pcmC0D0p
/dev/snd #

/ # lsmod
Module                  Size  Used by    Tainted: G
nls_utf8               16384  0
isofs                  49152  0
input_leds             16384  0
rfcomm                 81920  4
cfg80211              897024  0
xt_nat                 16384 24
xt_tcpudp              20480 48
veth                   28672  0
xt_conntrack           16384  3
nft_chain_nat          16384  9
xt_MASQUERADE          20480 15
nf_nat                 49152  3 xt_nat,nft_chain_nat,xt_MASQUERADE
nf_conntrack_netlink    49152  0
nf_conntrack          151552  5 xt_nat,xt_conntrack,xt_MASQUERADE,nf_nat,nf_conntrack_netlink
nf_defrag_ipv6         24576  1 nf_conntrack
nf_defrag_ipv4         16384  1 nf_conntrack
xfrm_user              40960  1
xfrm_algo              16384  1 xfrm_user
nft_counter            16384 85
xt_addrtype            16384  2
nft_compat             20480 92
br_netfilter           28672  0
bridge                266240  1 br_netfilter
stp                    16384  1 bridge
llc                    16384  2 bridge,stp
cmac                   16384  2
algif_hash             16384  1
algif_skcipher         16384  1
af_alg                 32768  6 algif_hash,algif_skcipher
bnep                   28672  2
overlay               131072 12
snd_hda_codec_hdmi     65536  1
snd_soc_skl           163840  0
snd_hda_codec_realtek   147456  1
snd_soc_sst_ipc        20480  1 snd_soc_skl
snd_soc_sst_dsp        32768  1 snd_soc_skl
snd_hda_ext_core       32768  1 snd_soc_skl
snd_hda_codec_generic    81920  1 snd_hda_codec_realtek
snd_soc_acpi_intel_match    49152  1 snd_soc_skl
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_soc_acpi           16384  2 snd_soc_skl,snd_soc_acpi_intel_match
snd_soc_core          294912  1 snd_soc_skl
snd_compress           28672  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_intel          53248  0
snd_intel_dspcfg       28672  2 snd_soc_skl,snd_hda_intel
snd_intel_sdw_acpi     20480  1 snd_intel_dspcfg
snd_hda_codec         147456  4 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_codec_generic,snd_hda_intel
snd_hda_core           94208  7 snd_hda_codec_hdmi,snd_soc_skl,snd_hda_codec_realtek,snd_hda_ext_core,snd_hda_codec_generic,snd_hda_intel,snd_hda_codec
snd_hwdep              16384  1 snd_hda_codec
intel_rapl_msr         20480  0
snd_pcm               118784  8 snd_hda_codec_hdmi,snd_soc_skl,snd_soc_core,snd_compress,snd_pcm_dmaengine,snd_hda_intel,snd_hda_codec,snd_hda_core
mei_hdcp               24576  0
intel_rapl_common      28672  1 intel_rapl_msr
intel_tcc_cooling      16384  0
snd_seq_midi           20480  0
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
snd_seq_midi_event     16384  1 snd_seq_midi
coretemp               20480  0
snd_rawmidi            36864  1 snd_seq_midi
kvm_intel             290816  0
snd_seq                73728  2 snd_seq_midi,snd_seq_midi_event
snd_seq_device         16384  3 snd_seq_midi,snd_rawmidi,snd_seq
snd_timer              40960  2 snd_pcm,snd_seq
kvm                   880640  1 kvm_intel
nls_iso8859_1          16384  2
rapl                   20480  0
intel_cstate           20480  0
btusb                  61440  0
btrtl                  24576  1 btusb
btbcm                  16384  1 btusb
btintel                32768  1 btusb
intel_wmi_thunderbolt    20480  0
joydev                 28672  0
efi_pstore             16384  0
wmi_bmof               16384  0
bluetooth             671744 33 rfcomm,bnep,btusb,btrtl,btbcm,btintel
snd                   102400 13 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_codec_generic,snd_soc_core,snd_compress,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_seq_device,snd_timer
ee1004                 20480  0
mei_me                 40960  1
ecdh_generic           16384  1 bluetooth
ecc                    36864  1 ecdh_generic
intel_xhci_usb_role_switch    16384  0
soundcore              16384  1 snd
intel_pch_thermal      20480  0
mei                   139264  3 mei_hdcp,mei_me
acpi_pad              184320  0
mac_hid                16384  0
nf_tables             217088 402 nft_chain_nat,nft_counter,nft_compat
sch_fq_codel           20480  2
nfnetlink              20480  4 nf_conntrack_netlink,nft_compat,nf_tables
msr                    16384  0
parport_pc             45056  0
ppdev                  24576  0
lp                     20480  0
parport                65536  3 parport_pc,ppdev,lp
ip_tables              32768  0
x_tables               49152  7 xt_nat,xt_tcpudp,xt_conntrack,xt_MASQUERADE,xt_addrtype,nft_compat,ip_tables
autofs4                45056  2
dm_crypt               53248  1
raid10                 65536  0
raid456               163840  0
async_raid6_recov      24576  1 raid456
async_memcpy           20480  2 raid456,async_raid6_recov
async_pq               24576  2 raid456,async_raid6_recov
async_xor              20480  3 raid456,async_raid6_recov,async_pq
async_tx               20480  5 raid456,async_raid6_recov,async_memcpy,async_pq,async_xor
xor                    24576  1 async_xor
raid6_pq              114688  3 raid456,async_raid6_recov,async_pq
libcrc32c              16384  4 nf_nat,nf_conntrack,nf_tables,raid456
raid1                  49152  0
raid0                  24576  0
multipath              20480  0
linear                 20480  0
system76_io            16384  0
system76_acpi          16384  0
hid_generic            16384  0
usbhid                 61440  0
hid                   135168  2 hid_generic,usbhid
i915                 2473984  2
crct10dif_pclmul       16384  1
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
i2c_algo_bit           16384  1 i915
aesni_intel           376832  5
drm_kms_helper        258048  1 i915
crypto_simd            16384  1 aesni_intel
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
cryptd                 24576  4 ghash_clmulni_intel,crypto_simd
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
xhci_pci               20480  0
cec                    53248  2 i915,drm_kms_helper
e1000e                274432  0
rc_core                57344  1 cec
drm                   561152  3 i915,drm_kms_helper
ahci                   40960  5
i2c_i801               36864  0
i2c_smbus              20480  1 i2c_i801
libahci                36864  1 ahci
xhci_pci_renesas       20480  1 xhci_pci
wmi                    32768  2 intel_wmi_thunderbolt,wmi_bmof
video                  53248  1 i915
/ #

getting some errors:

user@host: /usr/local/etc/firefox/config/log/firefox# tail -f error.log
[Child 2392, MediaDecoderStateMachine #1] WARNING: Decoder=562d4f4574e0 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 2392, MediaDecoderStateMachine #1] WARNING: Decoder=562d4f4574e0 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 4384, MediaDecoderStateMachine #1] WARNING: Decoder=5626781a2540 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 4384, MediaDecoderStateMachine #1] WARNING: Decoder=5626781a2540 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 4384, MediaDecoderStateMachine #1] WARNING: Decoder=5626781a2540 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 4384, MediaDecoderStateMachine #1] WARNING: Decoder=5626781a2540 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 4384, MediaDecoderStateMachine #1] WARNING: Decoder=5626781a2540 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 4384, MediaDecoderStateMachine #1] WARNING: Decoder=56267771eca0 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 4384, MediaDecoderStateMachine #1] WARNING: Decoder=56267771eca0 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471
[Child 4384, MediaDecoderStateMachine #1] WARNING: Decoder=56267771eca0 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /home/buildozer/aports/community/firefox/src/firefox-84.0.2/dom/media/MediaDecoderStateMachine.cpp:3471

jobenvil avatar Oct 22 '21 19:10 jobenvil

Would this imply it is impossible to pass a --argument to the xvnc11? If so, which one would I need to pass to passthrough to vnc externally?

thisisawesome1994 avatar Mar 08 '22 12:03 thisisawesome1994

Also getting this issue using docker image on Ubuntu, I added device /dev/snd to my docker-compose aswell. Any solutions?

LeehamElectronics avatar Mar 19 '22 05:03 LeehamElectronics

I also have a Synology NAS (DS218+). Video works (not very smooth but watchable). No sound.

I would add to @pradeepk2001's comment that "/dev/snd" does not exist in my Synology NAS. That seems logical since a NAS usually does not have any sound hardware...

ERROR: for ccc74d0f809f_firefox Cannot start service firefox: error gathering device information while adding custom device "/dev/snd": no such file or directory

jducaud avatar Jun 25 '22 18:06 jducaud

Note that currently, the sound support is limited to the host running the container. In other words, the sound is from the host running the container, not from the browser you are using to access the container.

jlesage avatar Oct 06 '22 23:10 jlesage

Maybe better to just use webtop then, full sound support https://github.com/linuxserver/docker-webtop

maltokyo avatar Oct 12 '22 09:10 maltokyo

I have same problem on archlinux 6.0.9-arch1-1 - no sound even with --device /dev/snd

romz987 avatar Nov 23 '22 14:11 romz987