View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Feb 15, 2008 8:30 am 
Offline
Joined: Sun Feb 26, 2006 11:34 pm
Posts: 83
Location: Toronto, ON, Canada
Hi,

I have been having the tinny audio problem that is described in http://mysettopbox.tv/phpBB2/viewtopic. ... highlight= and the fix proposed works fine if the channel is changed after going to Live TV.

However, the usability for my wife is lacking, and I was wondering if I could call the ivtvctl --set-audio-input 1 -d /dev/video* from the mainmenu.xml menu when 'Watch TV" is selected?

Any thoughts?

Victor


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 15, 2008 6:38 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Huhn? If you set up a delayed settings script as the channel changer as described in that thread it should just happen.

The channel changer gets invoked whenever you start a new recording. For live TV that means whenever you start it from the menu or change the channel...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 15, 2008 11:48 pm 
Offline
Joined: Sun Feb 26, 2006 11:34 pm
Posts: 83
Location: Toronto, ON, Canada
tjc wrote:
Huhn? If you set up a delayed settings script as the channel changer as described in that thread it should just happen.

The channel changer gets invoked whenever you start a new recording. For live TV that means whenever you start it from the menu or change the channel...


If it is supposed to just happen then there is something wrong with my implementation:

What I did was add the line:
/usr/local/bin/v4l2-ctl --set audio-input 1 -d /dev/video1

into my change_chan*.sh scripts.

Now, when the Watch TV is selected about 50% of the time the sound is still bad, until I change the channel, or return to the main menu and the reselect Watch TV. Sometimes I just change it to the channel it is on. This works evey time.

The problem is, I would prefer that my wife could just select Watch TV without the prospect of needing to change channel or going back to the main menu and selecting Watch TV again.

If you're saying that it should invoke the change_chan*.sh script when Watch TV is selected, then maybe I need to do something different in my use of /usr/local/bin/v4l2-ctl --set audio-input 1 -d /dev/video1

Cheers
Victor


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 16, 2008 9:04 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
It seems like you rather spectacularly missed the point of the delayed settings stuff.

When you change the channel using an external tuner script MythTV waits until it returns "success" and then proceeds to apply other settings like volume, color adjustments, selecting the audio input, ...

To have the last word on the matter you have to hide behind the furniture and whack it over the head when it's not looking. In this case that means that you need to fork a child process which lurks in the background and applies the card settings after MythTV has it's go. In cheesy ascii graphics the process lifetimes look like this:
Code:
MythTV BE Daemon \____f__________w_______________________/
Channel Changer        \____f____/
Delayed Settings             \_d ___________/0
Time -------->

The time after the w is what the detached child process for delayed settings is waiting for. The "trick" is that the delayed settings script is detached from the parent changer script so that it can finish and report success to the grandparent MythTV.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu