From patchwork Sun Feb 20 05:56:26 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: 11787 Received: from dialup-4.246.90.239.dial1.sanjose1.level3.net ([4.246.90.239] helo=nofear.bounceme.net) by www.linuxtv.org with esmtp (Exim 4.34) id 1D2n5b-0008Pe-3A for vdr@linuxtv.org; Sun, 20 Feb 2005 10:09:38 +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 2CCD773526 for ; Sat, 19 Feb 2005 21:53:47 -0800 (PST) Message-ID: <4218268A.10001@syphir.sytes.net> Date: Sat, 19 Feb 2005 21:56:26 -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: Klaus Schmidinger's VDR References: In-Reply-To: X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Subject: [vdr] MP3/MPlayer plugin 0.9.11 (development) 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: Sun, 20 Feb 2005 10:58:30 -0000 Status: O X-Status: X-Keywords: X-UID: 210 Stefan Huelswitt wrote: > Hi, > a new release of the MP3/MPlayer plugin is available from my > homepage. Main feature of this release is the inclusion of the > background/cover image patch. > > > > NEWS: > > 20.02.2005: Version 0.9.11 development (vdr 1.2.6/1.3.21) > - Now using propper readdir() to scan directory contents rather than the > external find & sort tools. > - Added cover image display during MP3 replay. See the README on how this has > to be configured. If you was using the old image patch, be aware that there > are now new commandline options and that the layout of the cache directory > has changed. Initial patch made by Eloy, currently maintained by Tobias Grimm > for ctvdr-debian package. > I have created a patch to the default image_convert.sh script to support both ntsc and pal by setting an initial FORMAT variable in the script. Best Regards, N.B. Some of the resolutions *may* still need adjustment. Please let me know. I am especially interested in NTSC displays. Thanks. --- image_convert.sh.example 2005-02-19 21:50:10.000000000 -0800 +++ image_convert.sh 2005-02-19 21:49:46.000000000 -0800 @@ -3,10 +3,22 @@ # requires: ...topnm, pnmscale, pnmcomp, ppmntsc, ppmtoy4m, mpeg2enc # +# Set format to "ntsc" or "pal" +FORMAT=ntsc + +if [ $FORMAT = "ntsc" ]; then # target image width (taking into account visible screen area) -TW=632 +TW=600 # target image height +TH=420 +fi + +if [ $FORMAT = "pal" ]; then +# target image width (taking into account visible screen area) +TW=632 +# target image height TH=512 +fi TMP=/tmp/image_convert.$$.pnm IMG=$1 @@ -53,11 +65,23 @@ # # now run the conversion # + +if [ $FORMAT = "ntsc" ]; then +pnmscale $S $TMP | \ + pnmpad -black -width 704 -height 480 | \ + ppmntsc | \ + ppmtoy4m -v 0 -n 1 -r -F 30000:1001 | \ + mpeg2enc -f 7 -T 90 -F 4 -nn -a 2 -v 0 -o "$MPG" +fi + +if [ $FORMAT = "pal" ]; then pnmscale $S $TMP | \ pnmpad -black -width 704 -height 576 | \ ppmntsc --pal | \ ppmtoy4m -v 0 -n 1 -r -F 25:1 | \ mpeg2enc -f 7 -T 90 -F 3 -np -a 2 -v 0 -o "$MPG" +fi + # # cleanup #