Portál AbcLinuxu, 12. listopadu 2025 14:49
aplay -L | lesszjistit aktuální nastavení defaultu - hledej řádek začínající slovem default (klávesy /^default). Pokud by bylo jiné než např.
default {
type plug
slave.pcm "plughw:0"
}
pak vyrob ve svém home adresáři soubor .asoundrc a dej do něj svou lokální konfiguraci:
pcm.!default {
type plug
slave.pcm "plughw:0"
}
Tím se z default stane přímo vstup do zvukovky a mythtv by měl hrát OK, protože sis již otestoval, že na stejné vzorkovací frekvenci to hraje správně. Pokud ne, je problém v mythtv. Když to bude OK a bez toho .asoundrc to bude stále blbnout, můžeme to řešit dál.
vasek@vasek:~$ aplay -D default -c2 -r48000 sf_wah1.wav Přehrávám WAVE 'sf_wah1.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono a jede OKMythDVD přehraje krásně filmy i se zvukem OK. Takže, zapnul jsem mythtv a dal jsem koukat se na tv, zase špatný zvuk, vypnul jsem program, tudíž zůstal naladěl vstup, pak jsem zaznamenal /dev/dsp sound-recorderem a dostal jsem krásný a jasný zvuk bez jediné chybičky, takže z /dev/dsp to leze dobře.
vasek@vasek:~$ sound-recorder -s 48000 -f wav tv.wav Sound Recorder version 0.06 (Build on Oct 30 2005) Copyright (C) 1997-2000 by B. Warmerdam under GPL. This program is free software and comes with ABSOLUTELY NO WARRANTY. Record from dsp (no cdrom support). To end the recording press CTRL-C Creating file: tv.wav Time 00:08 End of recording: tv.wav with 819200 samples vasek@vasek:~$ aplay tv.wav Přehrávám WAVE 'tv.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
pcm.!default {
type plug
slave.pcm "kombinace"
}
pcm.vystup {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 16384
rate 48000
}
}
pcm.vstup {
type dsnoop
ipc_key 2048
slave {
pcm "hw:1,0"
channels 2
period_size 1024
buffer_size 8192
#rate 44100
periods 0
period_time 0
}
bindings {
0 0
0 1
}
}
pcm.kombinace {
type asym
playback.pcm "vystup"
capture.pcm "vstup"
}
root@vasek:/home/vasek/mythtv-0.20-svn20070122# patch -p0 <../mythtv_alsa.patch patching file libs/libmythtv/alsaaudioinput.h patching file libs/libmythtv/ossaudioinput.h patching file libs/libmythtv/NuppelVideoRecorder.cpp Hunk #3 succeeded at 619 (offset -9 lines). Hunk #4 FAILED at 636. Hunk #5 FAILED at 2174. Hunk #6 FAILED at 2231. Hunk #7 succeeded at 2258 (offset -28 lines). Hunk #8 succeeded at 2273 (offset -28 lines). 3 out of 8 hunks FAILED -- saving rejects to file libs/libmythtv/NuppelVideoRecorder.cpp.rej patching file libs/libmythtv/libmythtv.pro Hunk #1 succeeded at 346 with fuzz 2 (offset -19 lines). patching file libs/libmythtv/audioinput.cpp patching file libs/libmythtv/ossaudioinput.cpp patching file libs/libmythtv/audioinput.h patching file libs/libmythtv/videosource.cpp Hunk #1 FAILED at 774. 1 out of 1 hunk FAILED -- saving rejects to file libs/libmythtv/videosource.cpp.rej patching file libs/libmythtv/alsaaudioinput.cpp
svn co http://svn.mythtv.org/svn/trunk/mythtv cd mythtv patch -p0 < ./mythtv_alsa.patch cd .. rm mythtv-0.20-svn20070122 ln -s mythtv mythtv-0.20-svn20070122 patch -p0 < ./mythtv_0.20-svn20070122-0.0ubuntu6.diff cd mythtv chmod +x debian/rules fakeroot dpkg-buildpackageAle dpkg-buildpackage skončí s
dpkg-source: building mythtv in mythtv_0.20-svn20070122-0.0ubuntu6.dsc dpkg-source: unrepresentable changes to source
vasek@vasek:~/myth/bin$ ./mythtv-setup
./mythtv-setup: Symbol `_ZTV13SelectSetting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV17VideoSourceEditor' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV19ConfigurationWizard' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV15LineEditSetting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV15ComboBoxSetting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV13ChannelEditor' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV15CardInputEditor' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV19ConfigurationDialog' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTI15LineEditSetting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV12Configurable' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTI14IntegerSetting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV17CaptureCardEditor' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV28HorizontalConfigurationGroup' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV7Setting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV26VerticalConfigurationGroup' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV15CheckBoxSetting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTI19ConfigurationWizard' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV18ConfigurationGroup' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV14IntegerSetting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV14SpinBoxSetting' has different size in shared object, consider re-linking
./mythtv-setup: Symbol `_ZTV14BooleanSetting' has different size in shared object, consider re-linking
2007-05-06 16:50:39.713 This app was compiled against libmyth version: 0.20.20070327-1
but the library is version: 0.20.20060828-3
You probably want to recompile everything, and do a
'make distclean' first.
2007-05-06 16:50:39.714 Failed to init MythContext, exiting.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.