DREAMBOX - Page 335 - Forum
Srijeda, 07.12.16
Dobro dosli: Gost | RSS
Novi Postovi  *   Pretrazi Postove  *   Clanovi  *   Pravila Forum-a  *   RSS
Page 335 of 655«12333334335336337654655»
Forum moderator: smin, borivoje, nolte, Dilber 
Forum » TV I RADIO » Internet radio i TV » DREAMBOX ((DreamBox WebControl-Open Webif))
DREAMBOX
bingobongo Post broj: 5011 - Utorak, 25.11.14, 00:37
Pukovnik
Poruka: 1125
Status:
Quote tussde ()
Quote
call "C:\test1\wget.exe" -q -O - "http://XX.XXX.XXX.XX/web/epgservice?sRef=1:0:1:1076:7E5:2:11A0000:0:0:0" >>epg.txt
type epg.txt | FINDSTR "e2eventtitle" >>epg2.txt
type epg.txt | FINDSTR "e2eventdescriptionextended" >>epg2.txt
type epg2.txt | cut -d "<" -f 2 >>epg3.txt
type epg3.txt | cut -d ">" -f 2 >>epg4.txt
call "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -command "& {get-content epg4.txt -totalcount 1}" >>epg5.txt
call "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -command "& {get-content epg4.txt -totalcount 3| Select-Object -Last 1}" >>epg5.txt
set /p EPG=<epg5.txt
call "C:\Program Files\VideoLAN\VLC\vlc.exe" --sub-filter marq --marq-marquee="%EPG%" --marq-size=30 --marq-position=10 --marq-timeout=30000 --aspect-ratio=16:9 "http://XX.XXX.XXX.XX:8001/1:0:1:1076:7E5:2:11A0000:0:0:0"
del epg*.txt
exit

With this code vlc stream starts and only "event-title" appears on the bottom part (no event description though !)

I took a look at epg5.txt and actually it had egp info (1st row) and event description (taken from the 3rd row of epg4.txt using "get-content epg4.txt -totalcount 3| Select-Object -Last 1") just below.

Where am i wrong ?


You can't take the description event from epg4.txt because it had been previously filtered by DEFSTR to display only the series of title events.

You'll need to call again DEFSTR to filter and display the event description.

But things are a little more complicated because the event description is usually a very long string and needs to be handled with a few more functions...

So I have re-written the code, which now works fine.
Event title + event description will appear on the top of VLC screen:

Code
wget -q -O - "http://XX.XXX.XXX.XX/web/epgservice?sRef=[stream address]" >> epg.txt
type epg.txt | FINDSTR "e2eventtitle" >>epg2.txt
type epg.txt | FINDSTR "e2eventdescriptionextended" >>info.txt
type epg2.txt | cut -d "<" -f 2 >>epg3.txt
type epg3.txt | cut -d ">" -f 2 >>epg4.txt
type info.txt | cut -d "<" -f 2 >>info2.txt
type info2.txt | cut -d ">" -f 2 >>info3.txt
powershell -command "& {get-content epg4.txt -totalcount 1}" >>epg5.txt
powershell -command "& {get-content info3.txt -totalcount 1}" >>info4.txt
set /p EPG=<epg5.txt
set /p INFO=<info4.txt
set a=0

:Sub
set /a b=%a%+1
set /a a=%b%
more +%b% info4.txt >>piece.txt
set /p ADD=<piece.txt
call :filesize "piece.txt"
:filesize
set size=%~z1
if "%size%"=="0" del piece.txt & goto END
set INFON=%INFO%%ADD%
set INFO=%INFON%
del piece.txt
goto Sub

:END
call %VLCA% --sub-filter marq --marq-marquee="%EPG% - %INFO%" --marq-size=20 --marq-position=4 --marq-timeout=30000 --fullscreen --aspect-ratio=16:9 "http://XX.XXX.XXX.XX:8001/[stream address]"
del epg*.txt
del info*.txt   
if exist piece.txt del piece.txt
exit


Enjoy!


Poruku je uredio: bingobongo - Utorak, 25.11.14, 00:40
bingobongo Post broj: 5012 - Utorak, 25.11.14, 00:51
Pukovnik
Poruka: 1125
Status:
elsanto1 Post broj: 5013 - Utorak, 25.11.14, 02:52
Vodnik
Poruka: 202
Status:
ok
vvaz24 Post broj: 5014 - Utorak, 25.11.14, 12:55
Zastavnik
Poruka: 63
Status:
Why there is no japanese Drambox or webinf?
rapons89 Post broj: 5015 - Utorak, 25.11.14, 14:30
Zastavnik
Poruka: 69
Status:
because maybe it's not used in that country.
it's also difficult to find ips due to huge iprange to scan. (my opinion)
polat20 Post broj: 5016 - Utorak, 25.11.14, 14:50
Vojnik
Poruka: 9
Status:
Digitürk . Lig tv . Türksat Open Webif lütfen !


Poruku je uredio: polat20 - Utorak, 25.11.14, 16:51
bingobongo Post broj: 5017 - Utorak, 25.11.14, 15:36
Pukovnik
Poruka: 1125
Status:


Good ones: all of them point to working/active ips (that's what really matters in my opinion).

The only exception is the German one, which is unusable for having web interface and streaming server locked (Openwebif http and streaming authentification plugins enabled).


Poruku je uredio: bingobongo - Utorak, 25.11.14, 15:55
tussde Post broj: 5018 - Utorak, 25.11.14, 16:22
Vojnik
Poruka: 25
Status:
Quote bingobongo ()
You can't take the description event from epg4.txt because it had been previously filtered by DEFSTR to display only the series of title events.

You'll need to call again DEFSTR to filter and display the event description.

But things are a little more complicated because the event description is usually a very long string and needs to be handled with a few more functions...

So I have re-written the code, which now works fine.
Event title + event description will appear on the top of VLC screen:

Code
wget -q -O - "http://XX.XXX.XXX.XX/web/epgservice?sRef=[stream address]" >> epg.txt
type epg.txt | FINDSTR "e2eventtitle" >>epg2.txt
type epg.txt | FINDSTR "e2eventdescriptionextended" >>info.txt
type epg2.txt | cut -d "<" -f 2 >>epg3.txt
type epg3.txt | cut -d ">" -f 2 >>epg4.txt
type info.txt | cut -d "<" -f 2 >>info2.txt
type info2.txt | cut -d ">" -f 2 >>info3.txt
powershell -command "& {get-content epg4.txt -totalcount 1}" >>epg5.txt
powershell -command "& {get-content info3.txt -totalcount 1}" >>info4.txt
set /p EPG=<epg5.txt
set /p INFO=<info4.txt
set a=0

:Sub
set /a b=%a%+1
set /a a=%b%
more +%b% info4.txt >>piece.txt
set /p ADD=<piece.txt
call :filesize "piece.txt"
:filesize
set size=%~z1
if "%size%"=="0" del piece.txt & goto END
set INFON=%INFO%%ADD%
set INFO=%INFON%
del piece.txt
goto Sub

:END
call %VLCA% --sub-filter marq --marq-marquee="%EPG% - %INFO%" --marq-size=20 --marq-position=4 --marq-timeout=30000 --fullscreen --aspect-ratio=16:9 "http://XX.XXX.XXX.XX:8001/[stream address]"
del epg*.txt
del info*.txt
if exist piece.txt del piece.txt
exit

Enjoy!


Thank you very much bingobongo ! Now everything works fine with your code !

Just few things:

1-

In your code you wrote for example "powershell -command" or "call %VLCA%" ; i had no success in running the bat script with this type of "language" !
To make it work I had instead to specify the folder :
I mean "call C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" instead of "powershell -command" and "call C:\Program Files\VideoLAN\VLC\vlc.exe" instead of "call %VLCA%" ! Why ?

2-

To display text on vlc you used the "marq subfilter" and from what i've understood what is shown is

"%EPG% - %INFO%".

I think you know c language and the function "printf": if i write Hello /nworld the outcome is :

Hello
world

Do you know if is there any similar thing in dos language so i can get

%EPG%
%INFO%

on the screen ?

However thanks for your advices you gave me so far !


Poruku je uredio: tussde - Utorak, 25.11.14, 16:23
rapons89 Post broj: 5019 - Utorak, 25.11.14, 18:57
Zastavnik
Poruka: 69
Status:
i see in the most of ip posted that the watcher click on the channel to view....so he locks the channels
otherwise for me it's better to toggle standby mode .so also other people in this forum can watch what they want.
my opinion
rapons89 Post broj: 5020 - Utorak, 25.11.14, 18:58
Zastavnik
Poruka: 69
Status:
however thanks fot the last ips posted wink
bingobongo Post broj: 5021 - Utorak, 25.11.14, 19:10
Pukovnik
Poruka: 1125
Status:
Quote tussde ()
1-

In your code you wrote for example "powershell -command" or "call %VLCA%" ; i had no success in running the bat script with this type of "language" !
To make it work I had instead to specify the folder :
I mean "call C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" instead of "powershell -command" and "call C:\Program Files\VideoLAN\VLC\vlc.exe" instead of "call %VLCA%" ! Why ?


It's name I had given to the variable, sorry. Obviously with VLCA I just meant the path where the executable file of VLC is located.

Quote
Do you know if is there any similar thing in dos language so i can get

%EPG%
%INFO%

on the screen ?

However thanks for your advices you gave me so far !


Actually I know a few methods to print a part of the text on a new line, but these methods don't seem to work inside the quote marks of the VLC parameter marq-marquee.

If I find any workarounds, I'll let you know


Poruku je uredio: bingobongo - Utorak, 25.11.14, 19:13
bingobongo Post broj: 5022 - Srijeda, 26.11.14, 00:21
Pukovnik
Poruka: 1125
Status:
Quote tussde ()
Do you know if is there any similar thing in dos language so i can get

%EPG%
%INFO%

on the screen ?

However thanks for your advices you gave me so far !


With the echo command, it is quite easy (for example, you can just insert ^, with the result that the word following ^ will be printed on the new line.

The problem is that VLC commandline options don't support multiline strings. In fact, if you try to insert a multiline string as a parameter, VLC will close without starting streams.

Therefore, I tried to "emulate" a new line string by adding spaces after the epg event (the number of which will change dinamically depending on the characters length of the title event).

Although the string will be still a single line, when displayed on VLC it will look as if formed by two lines:

EVENT: event title
INFO: info title

To get this, feel free to change the subroutine END as it follows:

Code
:END
setlocal enabledelayedexpansion

for %%a in (epg5.txt) do set /a length=%%~za
set /a length -=2
set /a SPC=100-%length%
SET "mychar= "
FOR /l %%i IN (2,1,%SPC%) DO CALL set "mychar=%%mychar%%%mychar%"

call %VLC% --sub-filter marq --marq-marquee="EVENT: %EPG%%mychar%INFO: %INFO%" --marq-size=20 --marq-position=4 --marq-timeout=30000 --fullscreen --aspect-ratio=16:9 "http://XX.XXX.XXX.XX:8001/[stream address]"    
del epg*.txt    
del info*.txt    
if exist piece.txt del piece.txt    
exit


I hope it helps


Poruku je uredio: bingobongo - Srijeda, 26.11.14, 00:43
KinkyKing Post broj: 5023 - Srijeda, 26.11.14, 13:03
Zastavnik
Poruka: 63
Status:
Is there no admin here who cleans al the spam shit here???
ferrari777777777 Post broj: 5024 - Srijeda, 26.11.14, 15:34
Vojnik
Poruka: 18
Status:
95.155.255.19 Nordic.

P.S. Sky Sports SD/HD UK & NTV Plus SD/HD Russia. Please.


Poruku je uredio: ferrari777777777 - Srijeda, 26.11.14, 15:35
tussde Post broj: 5025 - Srijeda, 26.11.14, 16:09
Vojnik
Poruka: 25
Status:
Quote bingobongo ()
With the echo command, it is quite easy (for example, you can just insert ^, with the result that the word following ^ will be printed on the new line.

The problem is that VLC commandline options don't support multiline strings. In fact, if you try to insert a multiline string as a parameter, VLC will close without starting streams.

Therefore, I tried to "emulate" a new line string by adding spaces after the epg event (the number of which will change dinamically depending on the characters length of the title event).

Although the string will be still a single line, when displayed on VLC it will look as if formed by two lines:

EVENT: event title
INFO: info title

To get this, feel free to change the subroutine END as it follows:

Code
:END
setlocal enabledelayedexpansion

for %%a in (epg5.txt) do set /a length=%%~za
set /a length -=2
set /a SPC=100-%length%
SET "mychar= "
FOR /l %%i IN (2,1,%SPC%) DO CALL set "mychar=%%mychar%%%mychar%"

call %VLC% --sub-filter marq --marq-marquee="EVENT: %EPG%%mychar%INFO: %INFO%" --marq-size=20 --marq-position=4 --marq-timeout=30000 --fullscreen --aspect-ratio=16:9 "http://XX.XXX.XXX.XX:8001/[stream address]"
del epg*.txt
del info*.txt
if exist piece.txt del piece.txt
exit

I hope it helps


Hi !

The new "subroutine END" works but EVENT and INFO are never displayed properly: i mean sometimes i have

EVENT: (event description)
(some spaces) INFO:(info description)

sometimes i have event and info on the same row with the info description starting on the new row:

EVENT: (event description) (spaces)INFO:
(info description)

I really wanted to have this kind of "structure" (with "I" of info just under "E" of event)

Quote
EVENT: (event description)
INFO: (info description)


but I understand that too many things must be considered (due to vlc lack of multilines display) so even using a dynamic number of spaces the final result is acceptable but not as i expected.

Anyway, i want to thank you bingobongo for your tremendous effort !


Poruku je uredio: tussde - Srijeda, 26.11.14, 16:16
Forum » TV I RADIO » Internet radio i TV » DREAMBOX ((DreamBox WebControl-Open Webif))
Page 335 of 655«12333334335336337654655»
Search:

Forum Chat Samo registrovani clanovi imaju pristup CHAT BOX-u
Gledanje Pay TV kanala bez valjane pretplate je ilegalno, sve datoteke/informacije ovdje su samo za obrazovne svrhe.
Watching Pay TV channels without a valid subscription is illegal , all files/information here are only for educational purposes only.
-"TOP 25 FORUMASA"-

Converter M3U Playlists Provjerite protok Playlist

Sultanovic Forum - All The Best

Molimo vas da iskljucite blokator reklama za nas Forum!

Молимо Вас да искључите блокатор реклама за нас форум!

Ве молиме исклучете го блокатор за нас форум!

Please turn off the ad blocker for our Forum!

Bitte schalten Sie den Werbeblocker für unsere Forum!

S'il vous plaît désactiver le bloqueur de publicité pour notre Forum!

Bize Forumlar için reklam engelleyici kapatın lütfen!

Ju lutemi të kthehet off bllokues ad për ne Forume!

Пожалуйста, отключите блокировка рекламы для нас Форумы!

Моля, изключете блокиране на реклами за нас Forums!

Si prega di disattivare il blocco annuncio per il nostro Forum!

Por favor, apague el bloqueador de anuncios para nosotros los foros!

Por favor, desligue o bloqueador de anúncios para nós Fóruns!

Schakel de ad-blocker voor ons forum!

Harap matikan pemblokir iklan bagi kita Forum!

Vă rugăm să opriți de blocare anunțuri pentru noi Forum!

Proszę wyłączyć blokowanie reklam dla nas forum!

!.يرجى إيقاف تشغيل مانع الإعلانات بالنسبة لنا في المنتدى

請關閉廣告阻滯劑對我們論壇!