Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
200 user(s) are online (125 user(s) are browsing Forums)

Members: 0
Guests: 200

more...

Headlines

Forum Index


Board index » All Posts (Petrol)




Re: Odyssey 1.23 progress
Just popping in
Just popping in


Hi,

It seems to be in that path:
Odyssey/odyssey-r155188-1.23_SDK/SDK/local/common/include/webp/decode.h

Go to top


Re: Odyssey 1.23 progress
Just popping in
Just popping in


@samo79

Seems that it loads the picture from a stored database or something like that.
Url start with data:image/jpeg;base6 ... and contains more than 16000 characters!

Go to top


Re: Odyssey 1.23 progress
Just popping in
Just popping in


@kas1e

Well done ;)!

Go to top


Re: Odyssey 1.23 progress
Just popping in
Just popping in


@Kas1e

Do picture channels need to be swapped after all in the webp decoder engine?
In the png decoder code f.e., there's no line where it looks for the endianess like in webp.
Maybe it is done elsewhere in the component in chage of the render. Cairo format seems to be "ARGB" form the decoder sources.
Regards,

Go to top


Re: wget a little help
Just popping in
Just popping in


Did you try to add at the end of the script, a line that calls your installer ?
Is installer the default tool type of your install script ?

So C:Installer myinstallscript should do the trick

Regards,
Petrol.


Go to top


Re: wget a little help
Just popping in
Just popping in


@white

Lha x "$i" is the command for e »x »tract, x is an arg to lha here ,the archive $i in the loop created by the foreach ... end. I put the " "  around $i because sometimes, archives could contain space characters.

I think you could just use before the « end »:
C:Delete "$i"
Which means delete the lha file that been extracted just before.

For more informations about AmigaDOS commands, have a look at its wiki here :
https://wiki.amigaos.net/wiki/AmigaOS_ ... migaDOS_Command_Reference

Regards,
Petrol


Edited by Petrol on 2020/2/19 18:20:53
Go to top


Re: wget a little help
Just popping in
Just popping in


You're welcome, I'm glad that I could help you!
Happy scripting! ;)

Regards,
Petrol.

Go to top


Re: wget a little help
Just popping in
Just popping in


I looked on the net and it semés you need to add --content-dispositionto your wget command
Try :
Wget --content-disposition -i files.txt

Regards
Petrol

Go to top


Re: wget a little help
Just popping in
Just popping in


You could try like this:

Create a new text file and copy your code inside:
C:wget -list
Foreach 
i in #?.lha
C:lha x "$i"
End


Save it to ram:
Do a right clic on its icon and choose "Information"
Tick the script box
In the icon tab, in default tool, replace the textviewer by "C:IconX"
Save your icon information (Click save)

Now if you double click on your script icon, it will run the script and not the textviewer.

It will launch the wget programm first and download the files from your list.
Once the files downloaded, it will look for each lha files and extracts them (i represents the lha file).

Regards,
Petrol.

Go to top


Re: wget a little help
Just popping in
Just popping in


@white

AmigaOS include in C the "foreach" command you can use like this f.e. if this is your question:

Foreach i in #?.lha
C:lha x "$i"
End


Regards,
Petrol

Go to top


Re: Heart of Darkness : a one of best cinematic platform video game now and for AmigaOS4 !
Just popping in
Just popping in


Hi,

Thank you for the port!
I don't think you need to install it on a PC first, on my side I extracted the files needed from the main .exe file using UnArc ;)

Regards,

Go to top


Re: AmiUpdate 2.46?
Just popping in
Just popping in


Hi,

I've done the french translation using the last ct and cd files from the site, but some fields (and info bubbles) in preferences program seems to be hard coded. Is anybody else using foreign language have the same thing with preferences program.

Resized Image

Regards,

Go to top


Re: Arexx question
Just popping in
Just popping in


@daveyw

I'm not at home and can't check if this works, but what is the result if you define the variable like this :

dlurl 'c:requeststring title "URL Downloader" body "Enter URL to download" to t:dlurl'
dlfile 'c:requestfile savemode title "Enter download filename" noicons >nil:'


Regards,
Petrol

Go to top


Re: RadeonHD 3.x bug (?): more than ~256mb of used GPU (second chunk) memory cause a heavy lockup/crash.
Just popping in
Just popping in


Well done guys :)

Go to top


Re: GL4ES: another OpenGL over OpenGLES2 emulation - some tech. info and porting progress
Just popping in
Just popping in


Ho Roman,

Is your code correct?
Fog_c : why use a sqrt on a squared number ( Sqrt of x*x)? And not x directly ? Or should it be something else?

Regards.

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


@white

You're still trying to parse to Emotion player an URL that did'nt point to a video file. Copy this script:

/* REXX Play_video_menu */ 
options results 
parse arg url  
url
=strip(strip(url),'B','"'

/*Test url*/ 
SELECT 
    WHEN 
(substr(url,1,23) = "https://www.youtube.com") THEN website = "Youtube"
    
WHEN (substr(url,1,16) = "https://youtu.be"THEN website "Youtube"
    WHEN (substr(url,1,21) = "https://www.twitch.tv") THEN website = "Twitch"
    
WHEN (substr(url,1,19) = "https://m.twitch.tv"THEN website "Twitch"
    WHEN (substr(url,1,17) = "https://mixer.com") THEN website = "Mixer" 
    WHEN (substr(url,1,17) = "https://vimeo.com") THEN website = "Vimeo" 
    WHEN (substr(url,1,27) = "https://www.dailymotion.com") THEN website = "Dailymotion" 
    WHEN (substr(url,1,20) = "http://www.skaitv.gr") THEN website = "Skaitv"
    
WHEN (substr(url,1,16) = "https://dlive.tv"THEN website "Dlivetv"
    OTHERWISE website = "Other" 
END 

/*Notify Result*/ 
address RINGHIO 'REGISTERAPP APP=NOTIFYTEST' 
SELECT 
    WHEN website 
= "Youtube" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Youtube.png" TITLE="Youtube Video" IMGVALIGN=1 Now playing!' 
    WHEN website = "Twitch" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Twitch.png" TITLE="Twitch Video" IMGVALIGN=1 Now playing!' 
    WHEN website = "Mixer" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Mixer.png" TITLE="Mixer Video" IMGVALIGN=1 Now playing!' 
    WHEN website = "Vimeo" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Vimeo.png" TITLE="Vimeo Video" IMGVALIGN=1 Now playing!' 
    WHEN website = "Dailymotion" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Dailymotion.png" TITLE="Dailymotion Video" IMGVALIGN=1 Now playing!' 
    WHEN website = "Skaitv" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Skaitv.png" TITLE="SkaiTV Video" IMGVALIGN=1 Now playing!'
    
WHEN website = "Dlivetv" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Dlivetv.png" TITLE="DliveTV Video" IMGVALIGN=1 Now playing!' 
    OTHERWISE address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Other.png" TITLE="Direct Video" IMGVALIGN=1 Now playing!' 
END 

'UNREGISTER APP=NOTIFYTEST' 

/*Lauch script*/ 

SELECT 
    WHEN website 
= "Youtube" THEN address command '[PATH OF THE SCRIPT]YT.rexx' url 'ssl html odyssey autoplay silent' 
    WHEN website = "Twitch" THEN address command 'C:Python [PATH OF THE SCRIPT]twitch.py -shh -u ' url 
    WHEN website 
= "Mixer" THEN address command 'C:python [PATH OF THE SCRIPT]mixer.py -shh -u ' url 
    WHEN website 
= "Vimeo" THEN address command 'C:python [PATH OF THE SCRIPT]vimeo.py -shh -u ' url 
    WHEN website 
= "Dailymotion" THEN address command 'C:python [PATH OF THE SCRIPT]dailymotion.py -shh -u ' url 
    WHEN website 
= "Skaitv" THEN address command 'C:python [PATH OF THE SCRIPT]skaitv.py -shh -u ' url
    WHEN website 
"Dlivetv" THEN address command 'C:python [PATH OF THE SCRIPT]Dlive.py -shh -u ' url
    OTHERWISE address command 
'C:mplayer -cache 8192 ' url 
END


Also Edit the script and replace [PATH OF THE SCRIPT] with the correct path of yours (ram:script/ for example) with out the bracket.
Mine look like this one :
WHEN website "Dlivetv" THEN address command 'C:python Work:Internet/Odyssey/Plugins/Dlive.py -shh -u ' url


Same thing for the Ringhio icons for the different streams. Mines are small png picture placed in a icones drawer. My path looks like this:
Work:Internet/Odyssey/Plugins/Icones/Youtube.png for youtube icons.

Regards,

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


It happens to me too. Same error about SSL3 thing.

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


@walkero

Thank you!

@white

I've added the direct video mode to play only video with full path (from my ftp hard drive fe).

In your video you spoof as a mobile device and url is slightly different.
In my script, I've added these two lines in the url test :

WHEN (substr(url,1,19) = "https://m.twitch.tv"THEN website "Twitch"
WHEN (substr(url,1,16) = "https://youtu.be"THEN website "Youtube"

the second one was to be abble to read shotened link from youtube like yours in the previous post.

There's also a cfg.py script with aiostream archive to set players.

Regards,

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


@white

Hi,

To avoid multiple entry to the Contextual Odyssey menu, I've write a little arrex script like this one (I'm not an arexx expert ) :

/* REXX Play_video_menu */
options results
parse arg url 
url
=strip(strip(url),'B','"')

/*Test url*/
SELECT
    WHEN 
(substr(url,1,23) = "https://www.youtube.com"THEN website "Youtube"
    
WHEN (substr(url,1,21) = "https://www.twitch.tv"THEN website "Twitch"
    
WHEN (substr(url,1,17) = "https://mixer.com"THEN website "Mixer"
    
WHEN (substr(url,1,17) = "https://vimeo.com"THEN website "Vimeo"
    
WHEN (substr(url,1,27) = "https://www.dailymotion.com"THEN website "Dailymotion"
    
WHEN (substr(url,1,20) = "http://www.skaitv.gr"THEN website "Skaitv"
    
OTHERWISE website "Other"
END

/*Notify Result*/
address RINGHIO 'REGISTERAPP APP=NOTIFYTEST'
SELECT
    WHEN website 
"Youtube" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Youtube.png" TITLE="Youtube Video" IMGVALIGN=1 Now playing!'
    
WHEN website "Twitch" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Twitch.png" TITLE="Twitch Video" IMGVALIGN=1 Now playing!'
    
WHEN website "Mixer" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Mixer.png" TITLE="Mixer Video" IMGVALIGN=1 Now playing!'
    
WHEN website "Vimeo" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Vimeo.png" TITLE="Vimeo Video" IMGVALIGN=1 Now playing!'
    
WHEN website "Dailymotion" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Dailymotion.png" TITLE="Dailymotion Video" IMGVALIGN=1 Now playing!'
    
WHEN website "Skaitv" THEN address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Skaitv.png" TITLE="SkaiTV Video" IMGVALIGN=1 Now playing!'
    
OTHERWISE address RINGHIO 'RINGHIO APP=NOTIFYTEST SCREEN="FRONT" PRI=9 IMG="[PATH OF THE ICON]Other.png" TITLE="Direct Video" IMGVALIGN=1 Now playing!'
END

'UNREGISTER APP=NOTIFYTEST'

/*Lauch script*/

SELECT
    WHEN website 
"Youtube" THEN address command '[PATH OF THE SCRIPT]YT.rexx' url 'ssl html odyssey autoplay silent'
    
WHEN website "Twitch" THEN address command 'C:Python [PATH OF THE SCRIPT]twitch.py -shh -u ' url
    WHEN website 
"Mixer" THEN address command 'C:python [PATH OF THE SCRIPT]mixer.py -shh -u ' url
    WHEN website 
"Vimeo" THEN address command 'C:python [PATH OF THE SCRIPT]vimeo.py -shh -u ' url
    WHEN website 
"Dailymotion" THEN address command 'C:python [PATH OF THE SCRIPT]dailymotion.py -shh -u ' url
    WHEN website 
"Skaitv" THEN address command 'C:python [PATH OF THE SCRIPT]skaitv.py -shh -u ' url
    OTHERWISE address command 
'C:mplayer -cache 8192 ' url
END


The scripts run in silent mode to avoid multiple output windows opened in the background, and a notification permits me to know if the action works on the link I clicked .

In Oddyssey, I've created a new menu entry like this :
Category : Link
Label : Play Video ...
Action: RX [PATH OF THE SCRIPT]My_script.rexx %l

I'm not a big fans of all that streaming sites, but to test the script, I use the "spoof as" function of oddyssey to try to display them.

Regards,
Petrol

Go to top


Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


Thank you, works nicely.

I've hadded them to Oddyssey contextual menu, to play videos directly from their websites.

Regards,
Petrol

Go to top



TopTop
« 1 ... 3 4 5 (6) 7 8 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project