Vodcatcher-plugin

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
K (Playlist Support hinzufügen)
K (Playlist Support hinzufügen)
Zeile 53: Zeile 53:
 
===Tipps===
 
===Tipps===
 
====Playlist Support hinzufügen====
 
====Playlist Support hinzufügen====
Folgender Patch, ist auf die mplayer.sh anzuwenden.
+
Nach dieser Zeile.
  
 
<pre>
 
<pre>
--- mplayer.sh.org 2007-02-11 16:34:07.000000000 +0100
+
if ! test -r "$FILE"; then echolog "*** ERROR: Make sure $FILE exists and is readable - otherwise it cannot be played ;-)"; exit; fi
+++ mplayer.sh 2008-03-22 08:49:30.000000000 +0100
+
</pre>
@@ -59,7 +59,7 @@
+
 
# - added config line for AC3 out via DVB card (thanks to Christian Jacobsen)
+
Folgendes in die mplayer.sh eintragen.
# - added a new config option to choose the video out device;
+
 
#   intended for dx3 users
+
<pre>
-# - added config options for subtitles (thanks to Martin �kerstr�m)
+
# playlist support
+# - added config options for subtitles (thanks to Martin �kerstr�m)
+
case "$FILE" in
# - fixed a bug when SLOW_CPU is set to "false" instead of being
+
  *.pls | *.m3u | *.asx)
#   just commented out
+
    first=`grep -v -m1 "^#" $FILE`
# - minor code clean-up
+
    FILE="$first"
@@ -496,8 +496,20 @@
+
    debugvar Playlist: FILE "$FILE"
+
esac
echolog "*** Starting mplayer.sh Version $VERSION"
+
+
+# Check if file a Playlist and set neccassary parameter
+
+case "$FILE" in
+
*.pls | *.m3u)
+
+    PLS="true"
+
+    PLSFILE="$FILE"
+
+    first=`grep -v -m1 "^#" $FILE`
+
+    FILE="$first"
+
+  ;;
+
+  *)
+
+    FILE="$FILE"
+
+  ;;
+
+esac
+
+
+
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
+
+
# Check if config file exists!
+
declare CFGFIL="${0}.conf"
+
 
</pre>
 
</pre>
  

Version vom 23. März 2008, 15:22 Uhr

Inhaltsverzeichnis

Beschreibung

Autor: Tobias Grimm

Mit diesem Plugin können Internet-Videos wiedergegeben oder aufgenommen werden. Der Name leitet sich von Vodcasting ab, der seinerseits von Podcasting abstammt.

Ähnlich wie beim Podcatcher-Plugin für Podcasting wird auch im Vodcatcher in einer Konfigurationsdatei (vodcatchersources.conf) eine oder mehrere URL angegeben. Diese URL verweisen auf eine Datei ("Feed"), die alle vorhandenen Videos einer Website angibt. So sind beispielsweise unter http://videocast.srtwist.net/ alle Videos des ZDF und deren Adresse aufgelistet.

Das Vodcatcher-Plugin liest aus der Konfigurationdate alle Inhalts-URL aus und listet die dadrin verzeichneten Videos auf. Der VDR-Anwender wählt ein Video aus, worauf der Vodcatcher die Adresse des Videos dem mplayer-plugin zu Abspielen übergibt. Alternativ ist auch die Aufnahme der Feeds möglich.

Bilder

Liste der Feeds
Liste der Themen
Liste der Videos

Softwareanforderungen


Konfiguration

Im Pluginverzeichnis muß eine Datei namens vodcatchersources.conf vorhanden sein. Dort sind die URL der Feeds anzugeben. Beispielinhalt:

 # sources for vdr-vodcatcher

 # Die Sendung mit der Maus
 FEED_URL=http://podcast.wdr.de/maus.xml

 # ZDF-Kram
 FEED_URL=http://videocast.srtwist.net/

 # Galacticast
 FEED_URL=http://feeds.feedburner.com/galacticast

 # Quarks & Co
 FEED_URL=http://podcast.wdr.de/quarks.xml

 # Computer Club 2
 FEED_URL=http://www.cczwei.de/rss_tvissues.php

Tipps

Playlist Support hinzufügen

Nach dieser Zeile.

if ! test -r "$FILE"; then echolog "*** ERROR: Make sure $FILE exists and is readable - otherwise it cannot be played ;-)"; exit; fi

Folgendes in die mplayer.sh eintragen.

# playlist support
case "$FILE" in
  *.pls | *.m3u | *.asx)
    first=`grep -v -m1 "^#" $FILE`
    FILE="$first"
    debugvar Playlist: FILE "$FILE"
esac


Links

  1. Homepage des Plugins
  2. Vodcatcher Helper
  3. Shell Script (mplayer.sh)
In anderen Sprachen