From patchwork Tue Mar 1 19:09:01 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "C.Y.M" X-Patchwork-Id: 11793 Received: from dialup-4.246.249.96.dial1.sanjose1.level3.net ([4.246.249.96] helo=nofear.bounceme.net) by www.linuxtv.org with esmtp (Exim 4.34) id 1D6Ciq-0003dX-5L for vdr@linuxtv.org; Tue, 01 Mar 2005 20:07:59 +0100 Received: from [10.1.1.66] (hades [10.1.1.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by nofear.bounceme.net (Postfix) with ESMTP id 30B6273526 for ; Tue, 1 Mar 2005 11:06:25 -0800 (PST) Message-ID: <4224BDCD.50100@syphir.sytes.net> Date: Tue, 01 Mar 2005 11:09:01 -0800 From: "C.Y.M" Organization: CooLNeT User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vdr X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Subject: [vdr] Is there a current Mplayer.sh for apid selection? X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syphir@syphir.sytes.net, Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 19:07:59 -0000 Status: O X-Status: X-Keywords: X-UID: 423 Since Mplayer 0.9.8, there was a new option to select the audio pid during play back. There were a few patches floating around and the one attached to this email is what I am currently using against the current version of mplayer.sh. But, I am having a problem with this patch as it sometimes selects the secondary audio track (which is usually in a different language) and I am unable to get mplayer to use the primary apid. I have attached this patch as reference, but there is something still wrong with the audio selection. Does anyone have a working solution? Best Regards, --- mplayer.sh.orig 2004-11-29 18:23:23.000000000 -0800 +++ mplayer.sh 2004-11-29 18:27:00.000000000 -0800 @@ -178,7 +178,7 @@ if test -z "$VO"; then errorcfg VO; exit; else debugvar VO "$VO"; fi if test -z "$AO"; then errorcfg AO; exit; else debugvar AO "$AO"; fi - AOUT="-ao $AO" + AOUT="-ao $AO $AID" if test -z $CACHE; then echolog "*** Option CACHE not set in config file - calling mplayer without Cache!" @@ -481,7 +481,14 @@ declare ORIG_FPS NEW_FPS ORIG_ASPECT VIDEO_FORMAT AUDIO_CODEC declare CMDLINE AOUT REMOTE USERDEF SUFFIX declare FILE="$1" -declare SLAVE="$2" +while shift; do + if [ "$1" = "SLAVE" ]; then + declare SLAVE="$1" + elif [ "$1" = "AID" ]; then + declare AID="-aid $2" + shift + fi +done declare -a XResPAL[0] declare -a XResNTSC[0] declare FDSTR=""