kama200 / tv

0 stars 0 forks source link

tv #1

Open kama200 opened 7 years ago

kama200 commented 7 years ago

@echo off :TOP mode con:cols=82 lines=52 if defined ProgramFiles(x86) ( FOR /F "tokens=1 delims=[" %%A IN ('VER') DO ECHO %%A^(64-bits^) >nul set vlc=c:\progra~2\videolan\vlc\vlc >nul ) else ( FOR /F "tokens=1 delims=[" %%A IN ('VER') DO ECHO %%A^(32-bits^) >nul set vlc=c:\progra~1\videolan\vlc\vlc >nul ) if exist C:\Progra~1\VideoLAN\VLC (set "vlc=C:\Progra~1\VideoLAN\VLC\vlc") if exist C:\Progra~2\VideoLAN\VLC (set "vlc=C:\Progra~2\VideoLAN\VLC\vlc") if exist C:\Program Files(x86)\VideoLAN\VLC (set "C:\Program Files(x86)\VideoLAN\VLC\vlc" if exist C:\Program Files(x64)\VideoLAN\VLC (set "C:\Program Files(x64)\VideoLAN\VLC\vlc")

COLOR 0A cls echo. echo Data: %date:~0% - Godzina: %time:~0,8% echo. echo kama 200 echo. echo 1. "1" TVP Info echo 2. "2" TVP 2 echo 3. "3" TVN echo 4. "4"TV 4 echo. echo. set /p "ff= Wybierz program:" echo. echo. mode con:cols=35 lines=3 echo. echo Uruchomienie programu echo.

IF "%ff%"=="1" ffmpeg.exe -i http://194.116.252.129:4022/udp/239.239.6.10:1234 -acodec copy -vcodec copy -f mpegts pipe:| "%vlc%" - --network-caching=7000 --meta-title "UDP tvp info" - cls IF "%ff%"=="2" ffmpeg.exe -i http://194.116.252.129:4022/udp/239.239.6.4:1234 -acodec copy -vcodec copy -f mpegts pipe:| "%vlc%" - --network-caching=7000 --meta-title "UDP tvp 2" - cls IF "%ff%"=="3" ffmpeg.exe -i http://194.116.252.129:4022/udp/239.239.6.17:1234 -acodec copy -vcodec copy -f mpegts pipe:| "%vlc%" - --network-caching=7000 --meta-title "UDP tvn" - cls IF "%ff%"=="4" ffmpeg.exe -i http://194.116.252.129:4022/udp/239.239.6.18:1234 -acodec copy -vcodec copy -f mpegts pipe:| "%vlc%" - --network-caching=7000 --meta-title "UDP tv 4" - cls

goto top

kama200 commented 7 years ago

test