Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
54 user(s) are online (43 user(s) are browsing Forums)

Members: 1
Guests: 53

orgin, more...
Support us!
Recent OS4 Files
OS4Depot.net



(1) 2 3 4 5 »


Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
I am working on a nice script that helps you stream videos and channels from twtch.tv on AmigaOS 4, just by using the channel/video URL.

This can also be used from the browser, although the website doesn't render OK in any of our available browsers. Extended usage of Javascript, I guess.

You will be able to select on the fly video quality, or you can use a weighted list with preferred resolution qualities, where first found first served.

Have a look at the following screenshot.

Resized Image


More networks will follow like Mixer, Vimeo and others.

Currently I am adding some final touches and documentation and it will be released soon. I am looking forward to listen your comments/requests.

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Joined:
2006/11/29 8:09
From Lyon, France
Posts: 1005
I would like such an application, for sure.

It would be great if Emotion could be used for playing (MPlayer would be fine too).

Nice work !

_________________
--
AmigaONE X1000 1,8Ghz, 2GB, Sapphire Radeon HD 7700, with Amiga OS 4.1 FE
http://www.amiga-ng.org
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Joined:
2009/12/31 17:27
From Westerwald
Posts: 81
Looking good. Thank you in advance.

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Joined:
2006/12/5 20:27
From Doncaster, uk
Posts: 76
Watching twitch is one of the things I still use my windows pc for so this would be very useful.
Thanks for making it, look forward to trying it.


_________________
AmigaOne X5000
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
Hello again to everyone.
The first release of aiostreams is at the Uploads queue of OS4Depot. Currently only Twitch.tv is supported, but more will come. Looking forward to read your experience with it and your ideas.

In the archive there is an amigaguide where you can find how it is used. If you have any question don't hesitate to contact me.

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Joined:
2006/11/29 8:09
From Lyon, France
Posts: 1005
Thanks but I get this error whatever I try to do : <urlopen error unknown url type: https>


_________________
--
AmigaONE X1000 1,8Ghz, 2GB, Sapphire Radeon HD 7700, with Amiga OS 4.1 FE
http://www.amiga-ng.org
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
@K-L

Sorry to hear that you have issues with that.

Would you like to tell me which version of AmigaOS you have? What is the command you used?

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Joined:
2006/11/29 8:09
From Lyon, France
Posts: 1005
@walkero

Thanks.

I'm using the latest amigaOS 4.1 FE release (with the latest update, NOT beta).

I tried to search for a game :

14.Données:Video/aiostreams> twitch.py -s "Dota 2"
twitch.py v1.0 - Created by George Sokianos

<urlopen error unknown url type: https>
Channel name Viewers Type Language Channel URL Game name - Channel status
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Traceback (most recent call last):
File "twitch.py", line 337, in <module>
main(sys.argv[1:])
File "twitch.py", line 315, in main
for stream in streamList['streams']:
TypeError: 'NoneType' object is unsubscriptable


I then tried a channel :

14.Données:Video/aiostreams> twitch.py -u https://www.twitch.tv/solary
twitch.py v1.0 - Created by George Sokianos

<urlopen error unknown url type: https>


_________________
--
AmigaONE X1000 1,8Ghz, 2GB, Sapphire Radeon HD 7700, with Amiga OS 4.1 FE
http://www.amiga-ng.org
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Quite a regular
Joined:
2008/4/10 13:57
From Northern Ireland
Posts: 901
@K-L

Thanks Walkero, unfortunately, I have exactly the same issue as K-L. AmigaOS4.1FE.

Edit, fixed:

Update your pythonssl from os4depot
Check that your mplayer Appdir entry is correct. I use Mplayer-altivec so had to edit the the aiostream cfg.py file accordingly.


_________________
AmigaOne X1000.
Radeon R9 270X

http://www.tinylife.org.uk/
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
@ddni
Oh, yeah. I think pythonssl is necessary. It seems I have that in my system because some other software requested it, and I forgot about it completely. Thanks for mentioning it. I will add it to the documentation.

@K-L
Try the above and please inform me if it works for you.

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Joined:
2006/11/29 8:09
From Lyon, France
Posts: 1005
Thanks ! Working !

_________________
--
AmigaONE X1000 1,8Ghz, 2GB, Sapphire Radeon HD 7700, with Amiga OS 4.1 FE
http://www.amiga-ng.org
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
The script for Mixer.com is almost ready. This will be included in the next release, soon.

If you haven't try the aiostreams yet, check OS4Depot or my github at https://github.com/walkero-gr/aiostreams/releases

Resized Image


Edited by walkero on 2019/8/25 20:01:33
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Joined:
2006/11/29 8:09
From Lyon, France
Posts: 1005
@Thread

On X1000, I'm using this parameters :

#!python
autoplay = True
verbose = False
vPlayer = "appdir:mplayer-altivec"
vPlayerArgs = "-really-quiet -fixed-vo -forceidx -framedrop -fps 30 -vo comp_yuv2 -ao sdl -autosync 30 -cache 8192"
sPlayer = "APPDIR:ffplay"
sPlayerArgs = "-loglevel quiet -infbuf -skip_frame noref -sync audio"

twitchQualityWeight = [
"480p30",
"720p30",
"360p30",
"160p30",
"720p60",
"chunked",
"audio_only"


Important for ffplay : -sync audio (it avoids sound hick ups).

For Mplayer, it's the best I found to avoid sound hick-ups (there are still some but far less than without these options).

This config applies only for X1000 (and maybe X5000).

I wish I could use Emotion for everything.

@Walkero

Would it be possible to have different parametrers for live streaming and recorded streams ?

MPlayer can cope with 720p30 videos whereas ffplay (which would really benefit of a -compyuv2 option too) can only cope with 480p30 videos.

Multi-edited to improve Mplayer options


Edited by K-L on 2019/8/24 21:10:37
Edited by K-L on 2019/8/24 21:49:16
Edited by K-L on 2019/8/24 22:01:06
_________________
--
AmigaONE X1000 1,8Ghz, 2GB, Sapphire Radeon HD 7700, with Amiga OS 4.1 FE
http://www.amiga-ng.org
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
@K-L

The live streams use the splayer config, and the for the recorded the vplayer config. I use mplayer for the recorded and ffplay for the live streams. You can set them as you wish, but for the live streams you better use ffplay, as I had issues with mplayer.

and one more screenshot from the upcoming v1.1, with Mixer.com support. While I was watching Ninja on Mixer.com, after he left Twitch.tv. He doesn't believe it either. :D

Resized Image

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Joined:
2006/11/29 8:09
From Lyon, France
Posts: 1005
@walkero

Yes, we should forget about Mplayer with your scripts since the -cache option doesn't work for this kind of stream so you end up with lags and sound hickups.

I stick with ffplay (someone should really add comp_yuv2 to it).

_________________
--
AmigaONE X1000 1,8Ghz, 2GB, Sapphire Radeon HD 7700, with Amiga OS 4.1 FE
http://www.amiga-ng.org
   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
That would be great. Let's create a request thread for that.

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
Hello guys,
aiostreams v1.1 is available.I will upload it later today at OS4Depot as well, but if you want to test it, you can download it from https://github.com/walkero-gr/aiostreams/releases

In this release the following changed:
* Mixer.com script added
* Cleared a lot of code in twitch.py script
* Documentation updated

In the cfg.py file the only changes are the twitch and mixer weighted lists for the quality. The rest are the same.

Have fun and please provide your feedback.

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just popping in
Joined:
2008/8/21 0:11
Posts: 69
@walker

nice work! Thanks for building this.

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Site Builder
Joined:
2006/12/2 23:57
From Athens
Posts: 522
@tekmage
You are welcome. Hope it is useful and people are going to use these scripts. I know that I will. :D

   Report Go to top

Re: Streaming twitch.tv on AmigaOS 4.1
Just can't stay away
Joined:
2006/11/29 8:09
From Lyon, France
Posts: 1005
@walkero

Thanks ! Mixer streams seem heavier than Twitch's. My X1000 struggles to cope with 480p Mixer streams.

_________________
--
AmigaONE X1000 1,8Ghz, 2GB, Sapphire Radeon HD 7700, with Amiga OS 4.1 FE
http://www.amiga-ng.org
   Report Go to top


(1) 2 3 4 5 »



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project