LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-12-2013, 03:26 PM   #1
xurtio
LQ Newbie
 
Registered: Jun 2013
Location: Alaskanada
Distribution: Slackware
Posts: 7

Rep: Reputation: Disabled
Youtube issues, possibly HDMI audio


Whenever I try to watch a youtube video in firefox, I get 1 of 2 behaviors:

1) if its got an advertisement, it shows a couple seconds of the ad's video, then it hiccups and skips the advertisement, then crashes on the video.

2) of there's no advertisement, it will just play, but there will be no audio.

If I try to watch it in google-chrome I just get video with no audio. In the command window, this appears:

ALSA lib pcm.c:7431snd_pcm_set_params) Rate doesn't match (requested 44100Hz, get 0Hz)
ALSA lib pcm.c:7442snd_pcm_set_params) Unable to set period time 23219 for PLAYBACK: Invalid argument

I'm configured for HDMI out, using this method to get it working:
http://crunchbang.org/forums/viewtopic.php?id=2310

and it works fine for VLC or aplay

Any ideas what's going on here?
 
Old 06-12-2013, 05:16 PM   #2
xurtio
LQ Newbie
 
Registered: Jun 2013
Location: Alaskanada
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: Disabled
Ok, found some new strange behavior. If I have VLC and youtube playing at the same time, VLC will work as normal (with HDMI audio) and youtube no longer crashes, but the audio for it comes out of the laptop speakers, so I have two different sound sources simultaneously.
 
Old 06-13-2013, 09:42 AM   #3
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 132

Rep: Reputation: 39
Flash only uses the first audio output - I expect you will get sound from your laptops headphone jack (there are probably 2 soundcards - one is the normal headphone jack and laptop speakers, the other one is HDMI) I would look into making HDMI the default using the .asound.conf file - theres a good post about it somewhere on here but then you will not get flash sound from the headphone jack...
 
Old 06-13-2013, 11:02 AM   #4
xurtio
LQ Newbie
 
Registered: Jun 2013
Location: Alaskanada
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tdos20 View Post
would look into making HDMI the default using the .asound.conf file
Is that not what I've already done following the crunchback link?

(I used my HDMI card/device numbers following kBang's instrucitons)
 
Old 06-14-2013, 09:41 AM   #5
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 132

Rep: Reputation: 39
Flash will only look at the first card - it needs to be set in /etc/modprobe.d/ as explained in this link: http://www.linuxquestions.org/questi...device-906741/
it maybe that this isn't the issue but I has problems with flash until I did something similar to this (your sound modules will probably be different - use lsmod to see what is being loaded.
 
Old 06-15-2013, 06:07 PM   #6
xurtio
LQ Newbie
 
Registered: Jun 2013
Location: Alaskanada
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: Disabled
So, using lsmod, I see a module called:

Code:
snd_hda_codec_hdmi
so, in /etc/modprobe.d/sound.conf (which is empty) I add the line:

Code:
options snd_hda_codec_hdmi index=0
But to no avail. When I boot, it says "ignoring bad line in modprobe"
 
Old 06-15-2013, 08:09 PM   #7
xurtio
LQ Newbie
 
Registered: Jun 2013
Location: Alaskanada
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: Disabled
currently trying post #7 here:
http://forums.opensuse.org/english/g...ube-issue.html
 
Old 06-16-2013, 07:40 AM   #8
tdos20
Member
 
Registered: Aug 2006
Location: London
Distribution: Slackware
Posts: 132

Rep: Reputation: 39
I think the underscores need to be hyphens (- not _) in the module name
 
Old 06-16-2013, 08:00 AM   #9
xurtio
LQ Newbie
 
Registered: Jun 2013
Location: Alaskanada
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by xurtio View Post
This solution made it so that youtube videos worked with sound, but they didn't play through HDMI, they played through the laptop speakers, and when I tried to use VLC, it said "defualt audio device not found" and went to the speakers (whereas before it had found HDMI as default).

So this makes me think that my HDMI is successfully set as default and is just having some problem communicating with youtube, since youtube works fine when it uses laptop speakers. Only when HDMI is set as default does it crash.

I will try your suggestion now though (- not _) though they appear in lsmod as _.
 
Old 06-16-2013, 08:10 AM   #10
xurtio
LQ Newbie
 
Registered: Jun 2013
Location: Alaskanada
Distribution: Slackware
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tdos20 View Post
I think the underscores need to be hyphens (- not _) in the module name
Same result as previous post. Now youtube doesn't crash, but it completely ignores HDMI (and vlc ssays no "can't open ALSA device default: no such file or directory"

and at startup:
"failed to obtain info for control #1"
(does this for #1, #2, #3, #4, #5)

So I'm starting to think that when youtube crashes, it's when it's successfully using the HDMI card.

Last edited by xurtio; 06-16-2013 at 08:12 AM. Reason: addendum
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
[SOLVED] no HDMI audio in Linux dimm0k Linux - Hardware 34 02-21-2012 08:30 PM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM
HDMI Audio with 12.2 Woodsman Slackware 27 09-04-2009 10:53 PM
Audio through HDMI Cable? Jeff91 Linux - Hardware 7 06-26-2009 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration