Package: vdr-plugin-mplayer Version: 0.9.15-13 Severity: normal Tags: patch
Hi VDR devs I haven't received a response to my direct posting to the pkg-vdr-dvb-devel list so now I'm trying the official path instead... I've been trying to find a way to play online video streams directly using the vdr mplayer plugin, but haven't found a way to do so without modifying the /usr/share/vdr-plugin-mplayer/mplayer script. If I save the source url in a '.pls' file, the 'readable file' test in the script fails, because the extracted "FILE" is not a local file. However, if I disable the readable check for online sources, it works. As far as I can see, the read check was added specifically in the deb version of the script as a part of a merge between two example scripts. The 'vanilla' version does not include this check and thus works. I've attached a simple patch that works for me. Please feel free to include it directly or in a modified version. An online copy of the patch is available from my last post in the list archive as well: http://lists.alioth.debian.org/pipermail/pkg-vdr-dvb-devel/attachments/20070508/8fbeb271/mplayer.bin Btw, I'm using mplayer from Marillat's repository, but I don't think it's related to this bug. Cheers, Jonas -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-4-686 Locale: LANG=C, LC_CTYPE=da_DK (charmap=ISO-8859-1) Versions of packages vdr-plugin-mplayer depends on: ii eject 2.1.4-3 ejects CDs and operates CD-Changer ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries ii libgcc1 1:4.1.1-21 GCC support library ii libstdc++6 4.1.1-21 The GNU Standard C++ Library v3 ii mplayer 1:1.0-rc1svn20070225-0.3 The Ultimate Movie Player For Linu ii vdr 1.4.7-1ctvdr1 Video Disk Recorder for DVB cards vdr-plugin-mplayer recommends no packages. -- no debconf information
--- /usr/share/vdr-plugin-mplayer/mplayer.orig 2007-05-08 19:48:33.000000000 +0200 +++ /usr/share/vdr-plugin-mplayer/mplayer 2007-05-08 20:11:31.000000000 +0200 @@ -513,6 +513,7 @@ PLS="true" PLSFILE="$FILE" first=`grep -v -m1 "^#" $FILE` + WEBSOURCE=`echo $first|egrep "^(mms|mmst|http|http_proxy|rtp|rtsp|ftp|udp|unsv|smb|mpst|tivo)://"` FILE="$first" ;; *) @@ -522,7 +523,7 @@ if test -z "$FILE"; then echolog "*** USAGE: mplayer.sh <File_to_be_played>"; exit; fi -if ! test -r "$FILE"; then echolog "*** ERROR: Make sure $FILE exists and is readable - otherwise it cannot be played ;-)"; exit; fi +if test -z "$WEBSOURCE" -a ! test -r "$FILE"; then echolog "*** ERROR: Make sure $FILE exists and is readable - otherwise it cannot be played ;-)"; exit; fi # Check if config file exists! declare CFGFIL="/etc/vdr/plugins/vdrmplayer.sh.conf"