Commandline Plugin 1.2

plugin (c) by dvbviewer.com

made by lars@dvbviewer.com

 

CLI to create timers in DVBViewer Pro, GE und Recordingservice.

 

Terms of Use

By using the Commandline Plugin you agree to the following terms of use:

 

The Commandline Plugin is provided as a free additional software exclusively for purchasers of DVBViewer Pro . It is only available via download from http://www.dvbviewer.com . Any other kind of distribution or usage violates the copyright of the authors and is prohibited.

 

Please note: The Commandline Plugin is not part of the official DVBViewer release. Improvements and updates are provided as far as possible. Any claims to support, updates, changes or bug fixes are explicitly excluded for The Commandline Plugin, though. You use it at your own risk.

 

 

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OF THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 

However, feel free to post suggestions or bug reports in the DVBViewer Forum: http://www.dvbviewer.info/forum/

 

Installation:

Extract the archive into the DVBViewer program folder.

 

Parameters:

-d

The Title of the timer. Must be enclosed in “ (double quotes).

 

-c

The channelID. Must be enclosed in “ (double quotes).

Can be calculated this way:

 

Audio PID * 65536 + Service PID|Kanalname

 

The Audio PID and ServicePID (SID) can be found in the DVBViewer channel list editor or you can copy the ID by selecting the channel in questing and rightclick with the mouse, select copy ID to clipboard. Then you can paste the ID where you need it.

 

-e

The date. Format: dd.mm.yy or dd.mm.yyyy.

 

-s

The start time. Format: hh:mm (24h).

 

-p

The end time. Format: hh:mm (24h).

 

-a

Action after a recording, allowed values:

0 = No action

1 = Shutdown PC

2 = Send PC to Standby

3 = Send PC to Hibernate

4 = Close DVBViewer  //not for the Recording Service

5 = Start playlist   //not for the Recording Service

6 = DVBViewer-Standby  //not for the Recording Service

 

-t

Timer action, allowed values:

0 = Record

1 = Tune only

2 = Audiorecorder PlugIn  //not for the Recording Service

3 = Videorecorder PlugIn  //not for the Recording Service

 

-v

Deactivates Audio Video for recording, depreciated.

0 = No

1 = Yes

 

-r

Deletes a timer. No further params.

Important!

Criteria are channelID is identical or a subset, date, start and end time are equal.

 

-xp (Recording service only)

 Priority of the timer (0: lowest -100 highest)

 

-xa (Recording service only)

After recording process task. Must be enclosed in “ (double quotes).

 

-xf (Recording service only)

Recording format

0 = mp2

1 = mpeg

2 = TS

 

-xd (Recording service only)

Recording folder. Must be enclosed in “ (double quotes).

Important ! The folder must exists in the recording folder list of the Recording Service.

 

-xt (Recording service only)

Record all audio streams. No further params.

 

-xx (Recording service only)

Record teletext. No further params.

Important ! This option need the TS recording format.

 

-xu (Recording service only)

Record DVBSubtitles. No further params.

Important ! This option need the TS recording format.

 

-xsvc (Recording service only)

With this command line switch you can send a timer over the network to the recording service. Must be enclosed in “ (double quotes).

It has to be constructed the following way (for all data the WEB Interface of the Recording service is the source):

[[User]:[Password]@][IP or Server name][:Port]

 

Examples:

“D:\Programme\dvbviewer3\dvbv_tvg.exe” -d "Just some timer” -c “1082142452|RTL2” -e 15.4.2009 -s 20:15 -p 22:00 -a 1 -xf 1 -xu

 

Record to mpeg2 (“-xf 1”), with DVBsubtitles (“-xu”) and shut down the PC after it ("-a 1"). The DVBViewer ignores the record format and dvbsubtitles switch.

 

 

“D:\Programme\dvbviewer3\dvbv_tvg.exe” -c “1082142452|RTL2” -e 15.4.2009 -s 20:15 -p 22:00 -r

 

Does delete the timer.

 

 

If you start the application without parameters you get a help window listing all possible command switches.

 

How the destination application is determinated

  1. Check if „-xsvc“ is present and if yes, check if the service can be reached.

  2. Running instance of the DVBViewer Pro. Just remember the DVBViewer is a COM server, only if the running instance is the registered server it is accessed.

  3. Running (local) recording service.

  4. Check for setup.xml in the user data folder. If present it is assumed a offline DVBViewer Pro is present.

  5. Check for setup.ini in the user data folder. If present it is assumed a DVBViewer GE Installation. A running instance of the GE is automatically taken into account.