LinHES Forums http://forum.linhes.org/ |
|
Mythtv button sounds http://forum.linhes.org/viewtopic.php?f=3&t=7223 |
Page 1 of 3 |
Author: | bigbri9 [ Mon Dec 05, 2005 2:00 am ] |
Post subject: | Mythtv button sounds |
I found this online, thought it was pretty neat. [url]http://outflux.net/blog/archives/2005/10/16/mythtv-button-sounds/ [/url] It lets you add sound responses to key presses. Now if someone could just walk a newb like me through setting it up. Brian |
Author: | ille [ Mon Dec 05, 2005 5:59 am ] |
Post subject: | |
Cool, I've installed that script. But I have to check if it works when I get home tonight. If you can start an ssh session to your box this is how I installed it: Code: mythtv@mythtv:~$ su
Password: root@mythtv:/home/mythtv# cd /usr/bin root@mythtv:/usr/bin# cat > irnoise <copy this into the ssh window> ircat mythtv | while read NAME; do case .$NAME. in Return|Space) SOUND=select.wav ;; *) SOUND=default.wav ;; esac #echo .$NAME: $SOUND. aplay -q .$SOUNDS./.$SOUND. done <press ctrl-C> root@mythtv:/usr/bin# chmod a+x irnoise root@mythtv:/home/mythtv# exit mythtv@mythtv:~$ mkdir sounds mythtv@mythtv:~$ cd sounds/ mythtv@mythtv:~/sounds$ wget http://webs.lanset.com/wa8lmf/miscinfo/MiscWAVs.zip --12:50:49-- http://webs.lanset.com/wa8lmf/miscinfo/MiscWAVs.zip => `MiscWAVs.zip' Resolving webs.lanset.com... 208.187.165.5 Connecting to webs.lanset.com[208.187.165.5]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 51,622 [application/x-zip-compressed] 100%[====================================>] 51,622 49.89K/s 12:50:50 (49.74 KB/s) - `MiscWAVs.zip' saved [51622/51622] mythtv@mythtv:~/sounds$ unzip MiscWAVs.zip Archive: MiscWAVs.zip Assorted very short (less than .5 second) sound effects for use with Windows system events, or other staus or breakpoint type applications. inflating: WHOOSH.WAV inflating: AHOOGA.WAV inflating: ANVIL.WAV inflating: BEEP.WAV inflating: BONK.WAV inflating: BONK2.wav inflating: BTN_DWN.WAV inflating: CLICK.WAV inflating: CLICKloud.WAV inflating: CLICKsoft.WAV inflating: CLOCKCHM.WAV inflating: CorkPOP.WAV inflating: DING.wav inflating: LASER.WAV inflating: MetallicCLICK.wav inflating: PHASER.WAV inflating: SQEAK.WAV inflating: START.WAV inflating: THUD.WAV inflating: AHOOGAx2.WAV mythtv@mythtv:~/sounds$ /usr/bin/irnoise |
Author: | ille [ Mon Dec 05, 2005 3:31 pm ] |
Post subject: | |
The post above did not work for me, first i missed the first two lines in /usr/bin/irnoise Code: #!/bin/bash export SOUNDS=~mythtv/sounds Then I see that the wav files used inte the script need to be resampled with a tool called sox. Code: #apt-get install sox resample Code: mythtv@mythtv:~/sounds$ sox THUD.WAV -t wav -c 1 -s -w -r 48000 default.wav resample mythtv@mythtv:~/sounds$ sox BTN_DWN.WAV -t wav -c 1 -s -w -r 48000 -v 2 select.wav resample The path name did not work for me so I changed /usr/bin/irnoise aplay -q .$SOUNDS./.$SOUND. to aplay -q $SOUNDS/$SOUND Start the tool again Code: mythtv@mythtv:~/sounds$ /usr/bin/irnoise
Now I hear a firm sound "donk" when I hit a key on the remote ![]() If you want to have this finalized, the irnoise script need to be started on boot. |
Author: | grante [ Tue Dec 06, 2005 11:30 am ] |
Post subject: | Re: Mythtv button sounds |
bigbri9 wrote: I found this online, thought it was pretty neat.
http://outflux.net/blog/archives/2005/1 ... on-sounds/ Brilliant! I've got to give this a try. One of my pet peeves has always been that the UI gives you no indication it's seen a key press. For some operations that take a long time (e.g. deleting a file), it's really difficult to know what's going on. I'd prever a visual indication from the application itself, but this will help. Now, if I only had a better mixer to combine the sound card output and the PVR-350 output.... |
Author: | bigbri9 [ Wed Dec 07, 2005 10:03 pm ] |
Post subject: | |
Ok, after lots of tweaking I am finally satisfied with my UI sounds. If you've ever heard the song "Watermelon Man" by Herbie Hancock, I'm using the first 12 notes for all of my sounds. Pretty cool if you ask me. Here's my script: Code: #!/bin/sh
export SOUNDS=/myth/sounds/watermelon I=1 ircat mythtv | while read NAME; do case "$NAME" in *) #echo "$I" SOUND="$I".wav if [ "$I" -eq 12 ] then #echo is 12 I=1 else #echo not 12 I=$(($I+1)) fi ;; esac #echo "$NAME: $SOUND" aplay -q "$SOUNDS"/"$SOUND" done If anyone wants this set up, e-mail me and I can send you my 12 wav files. Enjoy. -Brian |
Author: | hari_seldon99 [ Sat Dec 10, 2005 2:02 am ] |
Post subject: | |
I dunno how much overhead this has, but the script seems to introduce a lag in the shading of the icons as I select one in mythfrontend. Maybe my box (specs in sig) is too slow for this. Never had problems with overhead before tho, & I've transcoded recordings while recording thru 2 tuners and commflagging 2 shows all simultaneously w/out noticeable lags of any kind. |
Author: | bigbri9 [ Sat Dec 10, 2005 3:01 am ] |
Post subject: | |
I've got a AMD Athlon XP 2000+ and 512 of Ram, so that may be why I haven't seen any noticable lagging. That and I didn't really know what I am doing, it's mostly a guess and check method I'm using on my myth. ![]() -Brian |
Author: | hari_seldon99 [ Sat Dec 10, 2005 4:48 am ] |
Post subject: | |
I'll dance at your wedding ![]() I wonder if the issue is with cpu or RAM. Running "free -m" when the machine is in repose shows 243 out of 247 megs used + 108 megs in cache (I'm not running any ramdisks or anything in my mythtv box), and I've run fairly cpu intensive processes (like commflagging) without noticeable lags in playback. So, if it IS a memory problem, it's rather odd because the running binaries in the script have 100+ megs to play in, and playing one simple sound shouldn't take up such a high load. One thing. I get a bunch of wierd messages when I run the script and select anything in mythfrontend: ALSA lib timer_hw.c:269:(snd_timer_hw_open) extended read is not supported (SNDRV_TIMER_IOCTL_TREAD) Wonder if that has something to do with it. |
Author: | hari_seldon99 [ Sat Dec 10, 2005 4:57 am ] |
Post subject: | |
Well it's definitely due to multiple occurrences of that error message. I ran the sounds through artsd (where the error occurred only once) and it works fine. I just had to replace "aplay -p" by artsplay and made sure artsd ran in the background. |
Author: | wanttoknow [ Wed Dec 14, 2005 11:37 am ] |
Post subject: | |
Much better sounds!!! Check them out! http://www.mcfarlandstone.com/Sounds.rar |
Author: | bigbri9 [ Wed Dec 14, 2005 11:57 am ] |
Post subject: | |
tivo sounds, nice. |
Author: | wanttoknow [ Wed Dec 14, 2005 2:48 pm ] |
Post subject: | |
yeah I couldnt resist they are great sounds!! ohh and if anyone is interested I have a script that controls what button is pressed to what sounds. Just like the TIVO. Its not completly finished but by tomarrow it should be. |
Author: | Willo [ Sat Dec 17, 2005 1:20 am ] |
Post subject: | |
How do I get the script to run on boot? I added it to bootmisc.sh, but realized it has to be run as mythtv user. |
Author: | hari_seldon99 [ Sat Dec 17, 2005 1:33 am ] |
Post subject: | |
Willo wrote: How do I get the script to run on boot? I added it to bootmisc.sh, but realized it has to be run as mythtv user.
Put it in ~/.fluxbox/apps file |
Author: | ndietz [ Sat Dec 24, 2005 11:11 pm ] |
Post subject: | |
Sounds would be sweet!! I have tried to follow through the url and this post, but am having trouble as I am not as familiar with Linux as it seems many of you are. Planning to get a RHCE book over the break . . . ![]() Anyway, think anyone can help make a tutorial post of how to install this script for a newb? That would be great. Maybe it is simple, and I am just missing something. I was trying to follow the post by ille but don't know what he is talking about when he posts the following : ######################################### The post above did not work for me, first i missed the first two lines in /usr/bin/irnoise Code: #!/bin/bash export SOUNDS=~mythtv/sounds ########################################### again, might be a dumb question as I am not as familiar with Linux as I would like to be. I think I am really just asking for an updated script like ille posted Thanks |
Page 1 of 3 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |