LinHES Forums
http://forum.linhes.org/

Dual Language / SAP Selection
http://forum.linhes.org/viewtopic.php?f=6&t=4064
Page 1 of 1

Author:  alien [ Mon Apr 04, 2005 12:58 pm ]
Post subject:  Dual Language / SAP Selection

Right now, when a show is played in dual language (instead of stereo, 2 languages are broadcast in mono), mythtv select channel 1. Unfortunately, in my area, original soundtracks tend to be on channel 2.

I did some searches and found http://www.geocities.com/szermatt/bilingual.html. It appears that the ivtv patch is in since I can do a ivtvctl -Z to check the current setting. However, I can't find the mythtv settings. When I am not recording, it is set to "stereo" which means record both channels. I.e. ivtv is set up the way I want it. However, myth record seems to be changing the setting to Lang1 when bilingual shows are on. I can't find a Language setting in my record profiles.

Does anyone know how to change the myth behaviour to always record both channels?

I am really hoping someone can embarrass me by pointing out an obvious setting that I have missed...

Allen

Author:  alien [ Wed Apr 06, 2005 1:37 am ]
Post subject: 

I found a work-around. But first, a couple of questions:
    This should probably be done with an option in /etc/modules/ivtv. However, I can't find any documentation on valid options. Anyone know where to find them?
    Has anyone managed to burn a DVD with two mono tracks instead of one stereo? When I get time I might look into this, but any pointers to save some time would help.
Before you start, you might want to look at http://v4l2spec.bytesex.org/spec/vidioc-g-tuner.html. In particular, table 6. I expect the "Undefined" combinations will behave differently based on your card, so you may end up doing some trial and error.

The command to change the audio is:
Code:
ivtvctl -z n
where valid values for n can be seen with "ivtvctl -Z". From my experience:
    n=1 : Stereo. This is value that my card is set for initially. However, calling ivtvctl with 1 (which should have done nothing) changed the behaviour. During a bilingual broadcast, both channels are now recorded. This is what I use.
    n=0 : mono
    n=1 : When stereo, record stereo. When bilingual, record left channel.
    n=2 : When stereo, record stereo. When bilingual, record right channel.

Where to put it? Well, bootmisc.sh runs too soon, so I put it in as a startup in ~mythtv/.fluxbox/apps.
Another hint: In the General settings, there is an option to mute left/right separately. If you set this, you can use mute to toggle between channels.

Allen

Author:  saruman [ Sat Apr 09, 2005 11:56 am ]
Post subject: 

Or you can do a quick hack in the ivtv source code:

Code:
root@mythtv:~/ivtv-0.2.0-rc3/driver # diff msp3400.c.orig msp3400.c
1748c1748
<                 msp->source=3; /* defaults to 'stereo or A', see msp34xxg_set_source */
---
>                 msp->source=4; /* defaults to 'stereo or B', see msp34xxg_set_source */


This will cause the B-channel to be used as default when a dual soundtrack is present.[/code]

Author:  LaGaffe [ Sun Apr 10, 2005 3:30 am ]
Post subject: 

Great tip! Thanks...

I had it working on R4, but forgot to put it back working after updating to R5

WAF has increased by 50% with this :)

Stefan

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/