With this small script you can easily record programs on your PC when using a T-Home Entertain Port has. The only requirement is an installed vlc player from VideoLan (www.videolan.org)
How:
- following source code in a file named record.bat save
@ echo off SET STATION
=% 1
SET FILENAME =% 2
SET KILL TIME =% 3
SET VLCPATH = "C: \\ Program Files (x86) \\ VideoLAN \\ VLC \\"
SET dstPath = C: \\ Users \\ username \\ Desktop \\
IF% STATION% = = ARDHD SET IP = 239.35.10.1
IF%% == ZDFHD STATION SET IP = 239.35.10.2
IF%% == ARTEHD STATION SET IP = 239.35.10.3
STATION IF%% == ARD SET IP = 239.35.129.11
IF%% == ZDF STATION SET IP = 239.35.86.11
IF %STATION%==ZDFneo SET IP=239.35.150.11
IF %STATION%==KiKa SET IP=239.35.205.12
IF %STATION%==3sat SET IP=239.35.140.11
IF %STATION%==Arte SET IP=239.35.4.11
echo Starting to Record %STATION% (%IP%) for %KILLTIME% seconds
cd %DSTPATH%
tasklist /V>pre_pidlist.txt
cd %VLCPATH%
start vlc rtp://@%IP%:10000 --sout "#duplicate{dst=std{access=file,mux=ts,dst=%DSTPATH%\%FILENAME%.ts}}" --sout-all
cd %DSTPATH%
tasklist /V>post_pidlist.txt
for /F "tokens=2 delims= " %%a in ('fc %DSTPATH%\pre_pidlist.txt %DSTPATH%\post_pidlist.txt^ "Vlc.exe" ') do set pid =%% a del%
dstPath% \\
dstPath pre_pidlist.txt del%% \\ post_pidlist.txt
waitfor vlc / T%% KILL TIME
taskkill / PID% PID%
echo Recording
successfully saved. dstPath%% \\% FILENAME% ts
pause
Viel Spaß beim aufnehmen!
0 comments:
Post a Comment