Hi Llew (and/or All, and/or None, whatever the case may be!!),
I've now got a windows version of my audio.pls auto editor for Dreambox remote Audio streaming (with VLC) working. It's in the attached Zip folder which contains three files. All three need to be copied to the Windows\system32 folder but vlcplsed.bat must be edited first to suit your situation. Full instructions are in the vlcplsed.bat which I will post below:-
Code:
@echo off
cmdow @ /HID
::Batch File: vlcplsed.bat
::Version: 1.1
::Written by: TD03-5
:: Date: 22/02/2009
:: Dependencies: gsar.exe (General Search And Replace utility [freeware]).
:: : cmdow.exe (Window control utility [freeware]).
:: : vlc.exe (VLC media player from the VideoLAN project [free/open source]).
::Purpose: To change Dreambox local LAN IP
::to Dreambox Internet DNS (or Static Internet IP) in sent audio.pls file
::for remote (over the Internet) audio streaming.
::Originally written as a Linux Shell Script, this is the Windows Batch File version.
::NB: You MUST have VLC Media Player instaled on your computer to use this batch file.
::Also you MUST set up Port Forwarding before you can
::stream or control your Dreambox over the internet.
::Firefox Web Browser is highly recommended for this project.
::There may be problems using Internet Explorer.
::To install:-
::This file comes in a Zip archive (vlcplsed_win.zip) with two other support programs.
:: Download/Save the Zip file to a folder of your choice and extract all three files.
::Open file vlcplsed.bat (this file) with a text editor and:-
::Change 192.168.0.24 to your Dreambox local LAN IP.
::Change dreamdns.homelinux.net to your Dreambox Internet DNS or Static Internet IP.
::After editing save the file, then copy this file (vlcplsed.bat) plus file gsar.exe
::and file cmdow.exe to c:\windows\system32 on your PC or Laptop.
::Next open Windows Explorer (the file manager not Internet Explorer the Web Browser).
::Click Tools, Folder Options, File Types and scroll to PLS
::If PLS exists then Delete it, if it does not exist then that is what we want!
::Log-on to Dreambox remotely via internet (Using Firefox), select a station and click the audio PID.
::When "Open With" appears ensure "Browse" is shown and click OK.
::Change the selection at the bottom of the screen from Program Files to All Files.
::Navigate to c:\windows\system32\vlcplsed.bat and select it.
::Ensure "set as default" is checked and click OK, click OK again to launch it.
::This batch file will run to change the playlist file
::and then call VLC to open the playlist and play the audio stream.
::Presto........remote audio streaming without (manually) editing the "audio.pls" file!
::In future,after clicking the Audio PID in the ENigma Webif
::the "Open With" box should show "pls_auto_file(default)", if so Click OK.
::As before, this batch file will run to auto edit the .pls file
::and then call VLC to start the audio stream.
::I have found that some stations will not stream on port 31343
::This is the port that is sent by the Dreambox in the audio.pls file
::I have modified this script to do a second edit and change the port from 31343 to 31338
::I have found port 31338 seems to work OK on all stations, by trial and error!
::If this port change is not required or causes problems
::then please add REM or
:: to the begining of the Second gsar line.
:start
::The "audio.pls" file is Read Only, so make it Read/Write
attrib -r "%1"
::Run "gsar" to change Dreambox Local LAN IP to Dreambox DNS or static Internet (ISP) IP.
gsar -s"192.168.0.24" -r"dreamdns.homelinux.net" -o "%1"
::Run "gsar" again to change port 31343 to 31338
::If this port change is not requied then please add REM or :: to begining of line below.
gsar -s"31343" -r"31338" -o "%1"
::Run VLC to open the edited "audio.pls" and play the audio stream.
::NB: The EXACT path to vlc.exe on your system must be used here.
"C:\Program Files\VideoLAN\VLC\vlc.exe" "%1"
:: Delete audio.pls
del "%1"
:end
exit
If someone could try it and let me know how they get on, please.
Best wishes, John.