Ažurirane teme   ·    Nove poruke   ·    članovi   ·    Pravila foruma   ·    Traži   ·    RSS
Archive - read only
DREAMBOX - 1
tussdeDatum: Utorak, 25.11.2014, 17:22 | Poruka broj: # 4841

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 uredio tussde - Utorak, 25.11.2014, 17:23
rapons89Datum: Utorak, 25.11.2014, 19:57 | Poruka broj: # 4842

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
rapons89Datum: Utorak, 25.11.2014, 19:58 | Poruka broj: # 4843

Poruka: 69
Status:

however thanks fot the last ips posted wink
bingobongoDatum: Utorak, 25.11.2014, 20:10 | Poruka broj: # 4844

Poruka: 1154
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 uredio bingobongo - Utorak, 25.11.2014, 20:13
bingobongoDatum: Srijeda, 26.11.2014, 01:21 | Poruka broj: # 4845

Poruka: 1154
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 uredio bingobongo - Srijeda, 26.11.2014, 01:43
KinkyKingDatum: Srijeda, 26.11.2014, 14:03 | Poruka broj: # 4846

Poruka: 63
Status:

Is there no admin here who cleans al the spam shit here???
ferrari777777777Datum: Srijeda, 26.11.2014, 16:34 | Poruka broj: # 4847

Poruka: 18
Status:

95.155.255.19 Nordic.

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

Poruku uredio ferrari777777777 - Srijeda, 26.11.2014, 16:35
tussdeDatum: Srijeda, 26.11.2014, 17:09 | Poruka broj: # 4848

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 uredio tussde - Srijeda, 26.11.2014, 17:16
bingobongoDatum: Srijeda, 26.11.2014, 17:21 | Poruka broj: # 4849

Poruka: 1154
Status:

Quote tussde ()
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.


I think the way marq-marquee displays the string on VLC is tricky, because the maximum number of characters contained in the displayed line changes every time.
I'll try to see if VLC has any options to handle the text alignment of the marquee, because this would surely fix the issue.
If not, I'm afraid we can't do much for that.

Also, you may consider to increase the value of SPC (from 100 to 105, for example):

set /a SPC=105-%length%

Poruku uredio bingobongo - Srijeda, 26.11.2014, 17:29
bingobongoDatum: Srijeda, 26.11.2014, 17:38 | Poruka broj: # 4850

Poruka: 1154
Status:

Quote rbg ()
Portugal.
PLEASE




Notice: Xtrend et5000 with one tuner.

Xtrend decoders are expensive, but... they work so well!
I haven't found one Xtrend not working so far. Even Xtrend ips with one tuner are active in most cases.

Poruku uredio bingobongo - Srijeda, 26.11.2014, 17:41
bingobongoDatum: Srijeda, 26.11.2014, 17:47 | Poruka broj: # 4851

Poruka: 1154
Status:



Notice: Xtrend et5000 with one tuner

And.... for the joy of someone..... Dutch ip with Turkey-Turksat!!!! xD

(only Turkish active channels)
cirbolyaDatum: Srijeda, 26.11.2014, 19:44 | Poruka broj: # 4852

Poruka: 23
Status:

Welcome every dear forum members!
cirbolyaDatum: Srijeda, 26.11.2014, 20:02 | Poruka broj: # 4853

Poruka: 23
Status:

bingobongo!

Please Hungarian, Webcontrol and/or Open webif ip adress.

Thanks in advance.

Best regards.
elsanto1Datum: Srijeda, 26.11.2014, 20:12 | Poruka broj: # 4854

Poruka: 249
Status:

mu bueno
Sultan-MirzaDatum: Srijeda, 26.11.2014, 20:20 | Poruka broj: # 4855

Poruka: 16351
Status:

Available to users only
bingobongoDatum: Srijeda, 26.11.2014, 20:23 | Poruka broj: # 4856

Poruka: 1154
Status:

Quote bingobongo ()
I'll try to see if VLC has any options to handle the text alignment of the marquee, because this would surely fix the issue.
If not, I'm afraid we can't do much for that.


Forget what I wrote before... I've just realized that actually it's not a matter of text alignment, but it's the screen resolution to change depending on the channel you are watching.

Enigma 2, in fact, uses three screen resolutions that vary depending on the channel you're viewing:

1920 x 1080 (HD)

544 x 576 (SD)

704 X 576 (SD)

The change of VLC resolution produces a change in the number of line characters. And not only: even marquee characters get proportionally resized (size characters gets smaller with HD screen, while becomes larger with SD).

I think for this kind of issues I can do something... but I need time, of course wink

Poruku uredio bingobongo - Četvrtak, 27.11.2014, 14:32
bingobongoDatum: Srijeda, 26.11.2014, 20:31 | Poruka broj: # 4857

Poruka: 1154
Status:

Quote sailelias2013 ()
sailelias2013 Post broj # 5249 - Ponedjeljak, 24.11.2014, 21:32:22
Vojnik

Poruka: 2
Nagrada: 2  +
Reputacija: -1  ±
Status:


sailesias2013, may I know why you keep reducing my reputation?

Any explanations are welcome. Thanks in advance wink

Poruku uredio bingobongo - Srijeda, 26.11.2014, 20:32
pokutDatum: Srijeda, 26.11.2014, 21:25 | Poruka broj: # 4858

Poruka: 38
Status:

Quote muhammedisa21
Thank you bingobongo


he will whine once the dreambox won't survive

Poruku uredio pokut - Četvrtak, 27.11.2014, 01:50
e01114693634Datum: Srijeda, 26.11.2014, 22:56 | Poruka broj: # 4859

Poruka: 49
Status:

Open Webif
http://goo.gl/TAlyvF
http://goo.gl/eWpVK7
http://goo.gl/3ItUHJ
BerserkerDatum: Četvrtak, 27.11.2014, 00:43 | Poruka broj: # 4860

Poruka: 12
Status:

http://46-236-97-164.customer.t3.se
Search:
Top 30 Forumasa