Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Sound not working on Youtube
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
mark2
Apprentice
Apprentice


Joined: 22 May 2012
Posts: 293
Location: South Carolina

PostPosted: Thu Sep 24, 2015 2:25 am    Post subject: [Solved] Sound not working on Youtube Reply with quote

I thought I had everything I needed when I compiled my kernel, but I have no sound on Youtube videos. The Audio Mixer I installed with my Xfce desktop seems to have no effect, except when I turn on Rear Mic. Then I get something like pink or white noise and I can control the volume with Master. I've added all the channels or whatever and made sure they were turned on, but cannot hear any audio. The video plays ok and I guess it's using html5 as I have not yet emerged Flash.

[edit] Ok, emerged Adobe Flash, but still no help. In fact, now the video starts but crashes after a couple of seconds.

Thoughts, anyone?

Thanks,
Mark
_________________
Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams


Last edited by mark2 on Thu Sep 24, 2015 4:45 am; edited 1 time in total
Back to top
View user's profile Send private message
Muso
l33t
l33t


Joined: 22 Oct 2002
Posts: 980
Location: The Holy city of Honolulu

PostPosted: Thu Sep 24, 2015 2:54 am    Post subject: Reply with quote

Is it just on youtube videos?

Run alsamixer in a terminal and unmute all channel via the M and arrow keys.
_________________
Time is a great teacher, but unfortunately it kills all its pupils.
Back to top
View user's profile Send private message
mark2
Apprentice
Apprentice


Joined: 22 May 2012
Posts: 293
Location: South Carolina

PostPosted: Thu Sep 24, 2015 3:09 am    Post subject: Reply with quote

Right now it's just on Youtube because this is a completely new system install that I just got working yesterday.

I ran alsamixer as you suggested and unmuted everything, even though I had done that very thing in the graphical application. What has happened is that after installing Adobe Flash, the videos themselves quit after a few seconds. Prior to Adobe Flash at least the video would play with no trouble, just no sound.

Should I unmerge Flash?
_________________
Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Thu Sep 24, 2015 3:19 am    Post subject: Reply with quote

mark2 wrote:
Right now it's just on Youtube because this is a completely new system install that I just got working yesterday.

I ran alsamixer as you suggested and unmuted everything, even though I had done that very thing in the graphical application. What has happened is that after installing Adobe Flash, the videos themselves quit after a few seconds. Prior to Adobe Flash at least the video would play with no trouble, just no sound.

Should I unmerge Flash?
You can just tell youtube to use html5 instead of flash. If you need flash use chromium or chrome since they actually are maintaining their own version while adobe is not.

My guess is Alsa is trying trying to play using an incorrect card if the one you configured is unmuted. You can read more on that here https://wiki.gentoo.org/wiki/ALSA and check the arch pages as well.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
mark2
Apprentice
Apprentice


Joined: 22 May 2012
Posts: 293
Location: South Carolina

PostPosted: Thu Sep 24, 2015 4:22 am    Post subject: Reply with quote

I couldn't find where to tell youtube to use html5. I read the Wiki and did "lspci | grep -i audio" and got this:
Code:
Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA)

Then I went through their procedure and when I did "speaker-test -t wav -c 2", it came back with:
Code:
speaker-test 1.0.29

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

And I made sure I unmuted the Alsamixer once more, but still nothing. I will try a reboot, but I do not think it will make any difference.

Thanks for the suggestions, guys!
_________________
Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Thu Sep 24, 2015 4:32 am    Post subject: Reply with quote

https://www.youtube.com/html5

Google did spit out this on the error, which might be helpful.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
mark2
Apprentice
Apprentice


Joined: 22 May 2012
Posts: 293
Location: South Carolina

PostPosted: Thu Sep 24, 2015 4:42 am    Post subject: Reply with quote

Well, good news! After a reboot, it is now working. Looks like the Wiki article did the trick.

Thanks, Doctor.

Now on to other fixes. But now it's time for bed. Got to work in the morning, which it now is... :D
_________________
Thanks,
Mark
__________________________________________________________________
"Flying is learning how to throw yourself at the ground and miss." - Douglas Adams
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Thu Sep 24, 2015 5:25 pm    Post subject: Reply with quote

Funny thing is it sometimes happens to me as well. "Sometimes" is the keyword. html5 player usually works just fine, but once a blue moon it will only display the video.
Haven't spotted any patterns so far. It would typically work again after restarting browser, or sometimes after resuming from suspend again (without restarting). Or just because it's Friday.
I know, this message is incredibly helpful during troubleshooting :lol: but so far it looks similar so it might be worth mentioning. Perhaps someone stumbles over it some day and has more luck finding out what's going on.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum