Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
160 user(s) are online (148 user(s) are browsing Forums)

Members: 0
Guests: 160

more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 5 6 7 (8)
Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


See User information
Hi,

I looked into writing scripts in python, to rewrite the little arexx script previously made, in python format, and add some enhancements also.
If you want to give it a try, you can download it >here<.
It contains 2 py files (on is used for url recognition), and a drawer with small pngs pictures to display in the notification server.
Extract its content and copy the 2 scripts and the "icones" drawer in AIOStreams root one.
Set the context menu of your browser to call the script as:
Python {AIOStreams path}/AIOS_Browser_extension.py %l

Regards,
Petrol.


Edited by Petrol on 2023/12/27 22:32:47
Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Quite a regular
Quite a regular


See User information
@Petrol
Thanks, it works perfectly
this script increases the functionality of the application I would say perfectly.

It would be nice to include these features with youTube etc.

Thanks again for your script I really appreciate it very much.

here the video of the test:
https://www.youtube.com/watch?v=t-bCIwis39Y


Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Quite a regular
Quite a regular


See User information
Sorry you can choose the resolution also for example with youtube just simply select them in the configuration file vqw.py

Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Site Builder


See User information
That's awesome Petrol. Keep up the good work. I will have a look on it soon as well.
Thanks for doing this.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


See User information
Thank you for the kind words.

I also noticed during testing that skaitv script didn't have -q quality arguments, that make my script to fail, while different qualities are listed in the vwq script.

So I commented out the lines with the requester and added another condition before launching the script without the -q argument:

elif website == 'skaitv':
    
vqualitylist ' | '.join(str(n) for n in vqw.skaiVQW)
#    response = asl.MessageBox("Quality choice", "Please select a video quality: ", vqualitylist)
#    vquality = str(vqw.skaiVQW[response-1])

...

if 
website == 'other':
    
os.system('APPDIR:Mplayer -cache 8092 ' url)
elif website == 'skaitv':
    
os.system('C:Python ' AIOSpath '/' website '.py ' '-shh -u ' url)
else:
    
os.system('C:Python ' AIOSpath '/' website '.py ' '-shh -u ' url ' -q ' vquality)


I also tried the skaitv script alone with a video url and with the -l only, but it gave me a url open error.

<urlopen error (1, 'error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure')>

Regards,

Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Site Builder


See User information
@petrol
Yeah, they changed recently the SSL and this one doesn't work with our AmiSSL and python. I still need to fix it as soon as possible.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Quite a regular
Quite a regular


See User information
I watched the "Skateman" video to understand how radio.py works
here the video of "Skateman":
https://www.youtube.com/watch?v=3PUNalxfz0s

i tried and it works but i can't bind AmigaAMP to the stream.
Which aiostreams file is the file to be configured for AmigaAMP ? .
Thanks for any suggestions.


Edited by white on 2021/3/29 13:25:16
Edited by white on 2021/3/29 13:25:54
Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Quite a regular
Quite a regular


See User information
Resolved

Thanks @Skateman
you have to add in cfg.py for example
aPlayer = "APPDIR: Work: AmigaAMP3 / AmigaAMP3"
aPlayerArgs = ""

now it works perfectly.
Thanks again

Thanks also to "walkero" for its latest version

Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Quite a regular
Quite a regular


See User information
I am aware that I am fully OT and I apologize for that.

I wanted to ask a question for the aiostreams scripts dedicated to "morphos"

i did a short test with qemu to try morphos:
https://www.youtube.com/watch?v=iTEZaN2z_zA

currently aiostreams can work with morphos or rather python-ssl exist I was curious to see how videos could work.
thanks and sorry again for the OT question

@walkero
I think you can answer this more than anyone else.
Thanks again for your patience

Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Site Builder


See User information
@white
Unfortunately, for MorphOS the available python 2.x doesn't support SSL or it is broken, or it requires weird way to configure it, that I haven't found yet. The problem is that the requests aiostreams does to the twitch api require https and SSL. If that doesn't work, then aiostreams cannot establish a connection.

What I am thinking to do is to use my own API server at aiostreams.amiga-projects.net, which will support plain http requests, but it will request the data from twitch using SSL.

Since those requests do not include any personal information, the risk for the end user is close to zero. The only thing that might be shared is the public IP. I will make it as an option in aiostreams cfg.py, for the security maniacs.

This way will overcome all the issues the scripts have with python ssl support, both on OS4 and MorphOS.

Now, if MorphOS new ffplay port supports SSL, then people will be able to watch the videos, otherwise I am afraid that this will not work.

Hope I answered your question. If not, feel free to tell me so.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Just popping in


See User information
Now, if MorphOS new ffplay port supports SSL, then people will be able to watch the videos, otherwise I am afraid that this will not work.

@walkero New ffplay (4.4) support OpenSSL but warning ffplay is using software rendering (working but slow)


Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Quite a regular
Quite a regular


See User information
@walkero
Thanks for the reply,
and I still apologize for the OT.

I just did a test to see if mplayer was able to play a very light .mp4 video.
but even if the mplayer timer goes on the screen remains black.
I probably can't play videos with qemu.

Thanks again and sorry for the OT it was just a simple curiosity for ( morphos - wayfarer - aio )
I guess youtube videos don't show for the same reason.

Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Site Builder


See User information
@beworld
That's awesome. For twitch usually streams support smaller resolutions, i.e. 320p or 600p, but not always. It depends if the streamer selected the necessary configs. Some of them stream only on 1080p.

Do you plan to add composite to make it work faster?

@white
YouTube is a pain. But I believe that on MorphOS is exactly the same reason.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Site Builder


See User information
@beworld
Forgot to thank you for the ffplay port on MorphOS. I was asking for that for a long time. Great work...

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Quite a regular
Quite a regular


See User information
@walkero
Thank you very much for the reply.

I used ffplay (ffmpeg) for morphos and it works perfectly.
Should i now be able to configure "AIO"?
Are the settings the same as version 4.1?
Thanks and sorry again for the OT and a simple curiosity towards morphos.

here the little test:
https://www.youtube.com/watch?v=dfSITRBEFOs

Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Just can't stay away


See User information
i tried to use aiostreams on amigaos 4 but when i try to run any scripts from shell it says that the file is not executable.. i have installed all the required file and if I type python from the shell it enters into Python.. What am I doing wrong?

Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Just can't stay away


See User information
@nubechecorre

Just set attrtibute S (and E if not already) to them:
c:protect _python_file.py +se

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


See User information
you can't run script directly from shell without saying it which language it is :D
Try > python <name of the script you want to use .py> <args (each script use most of the same arguments, see the readme)>

Petrol.

Go to top
Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Just can't stay away


See User information
@jabirulo

thanks, now it works!

Go to top

  Register To Post
« 1 ... 5 6 7 (8)

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project