You are not logged in.

#1 2012-08-11 08:44:49

johane
Member
From: Dalarna - Sweden
Registered: 2010-02-05
Posts: 42
Website

[Solved] No sound in videos (flash, divx ... ...)

When I try to play videos I only see the video but there are no sound at all.
I have sound in Amarok, I can play streams and mp3's without problem so I guess Alsa is working.
What can I have missed? Where do I start.
I have tried with and without .asoundrc.

Last edited by johane (2012-08-12 10:43:40)

Offline

#2 2012-08-11 11:18:04

theshadster
Member
Registered: 2012-08-06
Posts: 29

Re: [Solved] No sound in videos (flash, divx ... ...)

What did you put in .asoundrc ?
This works for me:

pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}

Offline

#3 2012-08-11 15:37:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,700

Re: [Solved] No sound in videos (flash, divx ... ...)

Are you using pulseaudio?
Are you using KDE? (You stated Amarok, it does not require KDE)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2012-08-11 21:59:26

johane
Member
From: Dalarna - Sweden
Registered: 2010-02-05
Posts: 42
Website

Re: [Solved] No sound in videos (flash, divx ... ...)

theshadster wrote:

What did you put in .asoundrc ?
}

Now I dont have a .asoundrc. I had one that I copied from a similiar computer. And one with just a few entries. It was the same, just sound in Amarok.

ewaller wrote:

Are you using pulseaudio?
Are you using KDE? (You stated Amarok, it does not require KDE)

No I don't use Pulseaudio.
Sorry I forgot to mention, I use KDE.

Some other info about my system:

Linux 3.4.7-1-arch
KDE 4.9
Intel atom D2700
4g ram
nVidia GT 520M nVidia 304.32 (audio/video)

Offline

#5 2012-08-12 04:57:27

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] No sound in videos (flash, divx ... ...)

theshadster wrote:

pcm.!default {
type hw
card 1

With that config, you're disabling dmix.

Try my ~/.asoundrc

Use the speaker-test command, to test audio. Then show the error message.

Offline

#6 2012-08-12 05:33:16

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [Solved] No sound in videos (flash, divx ... ...)

Worth reading, works as expected for a simple Phonon + Alsa setup: http://userbase.kde.org/Phonon .


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#7 2012-08-12 08:18:05

johane
Member
From: Dalarna - Sweden
Registered: 2010-02-05
Posts: 42
Website

Re: [Solved] No sound in videos (flash, divx ... ...)

brebs wrote:

Try my ~/.asoundrc

Use the speaker-test command, to test audio. Then show the error message.

Speaker-test reports no errors and I hear the noise as I should. :-/

Wow thats a huge .asoundrc you got.
I copied it and changed card and device to my numbers and yes there is sound now but it is very distorted.
So I guess the problem is with the .asoundrc-file. I just have to get it right.

Offline

#8 2012-08-12 10:39:29

johane
Member
From: Dalarna - Sweden
Registered: 2010-02-05
Posts: 42
Website

Re: [Solved] No sound in videos (flash, divx ... ...)

Hm. The problem is smplayer. When I start the film with mplayer I have clear sound but with smplayer it gets distorted.

Edit: Changed from 4-channel to 2 and now it sounds good.

Thank you for your help with this. :-)

Last edited by johane (2012-08-12 10:43:05)

Offline

#9 2012-08-12 10:47:45

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [Solved] No sound in videos (flash, divx ... ...)

Have you tried using the following config bits in your /etc/asound.conf? This configuration works well with Phonon and GStreamer backend. In smplayer you have to set the audio driver to alsa and it should work without a glitch.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

Board footer

Powered by FluxBB