Coder Social home page Coder Social logo

walkero-gr / aiostreams Goto Github PK

View Code? Open in Web Editor NEW
13.0 5.0 6.0 653 KB

All In One streams is a pack of Python scripts for streaming video from various platforms. The target Operating Systems are AmigaOS 4, AmigaOS 3, MorphOS and AROS, but they work on other systems just fine.

License: BSD 2-Clause "Simplified" License

Python 75.32% C 24.68%
python stream-video streams amigaos4 amigaos3 morphos aros

aiostreams's Introduction

Codacy Badge Build Status ko-fi

aiostreams

"All In One streams" (aiostreams) is a pack of scripts, written in Python, that can be used to stream and watch videos from different online networks, like Twitch.tv, YouTube and Vimeo.com.

All the scripts need to be used from the shell, as well as from any web browser that supports the execution of scripts. It is straightforward to configure a link context menu and open the URL with the script. And if "Autoplay" is enabled, then the video will start automatically using the configured default players.

Some of these networks have a search API, and you can use them to find available streams and videos, without the need to visit the website. This is a fast way to find what you want, without waiting for a huge amount of Javascript to be executed on your machine. Especially useful when your computer doesn't have the necessary horsepower to support those websites.

All the scripts are developed and fully tested under AmigaOS 4.1 FE and MorphOS 3.x. The scripts work just fine under Linux and macOS X, but those systems are not the target of this project. Other solutions do a better job.

As a companion to these scripts, I created the website https://aiostreams.amiga-projects.net which can be a fast way to discover Twitch and YouTube videos. It is really fast and can be used on older browsers that do not support Javascript and CSS. This is a proxy website. No data is stored in any database, there is no tracking and no authentication is required.

Supported networks:

A full list of requirements per OS:

AmigaOS 4.1

  • AmigaOS 4.1 FE upd1
  • Python 2.5 and above
  • Pythonssl
  • The Python modules: urllib, urllib2, sys, re, string, random. Usually they are part of the python Installation
  • ffplay, mplayer, emotion for the live and recorded video playback or something equivalent
  • Internet access

MorphOS 3.x

  • MorphOS 3.10 and above
  • Python 2.5 and above
  • Suitable video player that can support video streaming
  • Internet access

Help me persuade my wife that what I am doing matters

ko-fi

Docker for development

Docker is not necessary for using these scripts. It just provides a good development environment for other systems. To run the script in a docker container with Python 2.7 installed, use the following on different shells, from the script folder.

docker run -it --rm --name aiostreams -v "$PWD":/usr/src/myapp -w /usr/src/myapp python:2
docker exec -it aiostreams bash
python twitch.py

aiostreams's People

Contributors

arisamiga avatar walkero-gr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

aiostreams's Issues

twitch fails to show/play stream

#KDH1:Comm/aiostreams/twitch.py -u https://www.twitch.tv/videos/2005030791
aiostreams vv1.7.6 (2022-12-04) - Developed by George Sokianos

Traceback (most recent call last):
File "KDH1:Comm/aiostreams/twitch.py", line 302, in
main(sys.argv[1:])
File "KDH1:Comm/aiostreams/twitch.py", line 279, in main
videoInfo = aioapi.getVideoInfo(video['id'], video['type'])
File "KDH1:Comm/aiostreams/twitch.py", line 126, in getVideoInfo
return json.loads(responseData)
File "Utilidades:Comm/aiostreams/simplejson/init.py", line 518, in loads
return _default_decoder.decode(s)
File "Utilidades:Comm/aiostreams/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "Utilidades:Comm/aiostreams/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
File "Utilidades:Comm/aiostreams/simplejson/scanner.py", line 79, in scan_once
return _scan_once(string, idx)
File "Utilidades:Comm/aiostreams/simplejson/scanner.py", line 70, in _scan_once
raise JSONDecodeError(errmsg, string, idx)
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

https://aiostreams.amiga-projects.net/ ... /channel/429381908/videos

https://www.amigans.net/modules/newbb/viewtopic.php?post_id=145387#forumpost145387

Can't play yt videos

If I try to play a yt video, I get this error msg:

c:python2.5 youtube.py -u "https://www.youtube.com/watch?v=UrGS_6_HglU"
aiostreams v1.6.2 (2020-07-27) - Developed by George Sokianos

Traceback (most recent call last):
File "youtube.py", line 385, in
main(sys.argv[1:])
File "youtube.py", line 327, in main
print response['playabilityStatus']['reason']
UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 16: ordinal not in range(128)

I'm using MorphOS.

HTTP Error 410: Gone

hi.

when trying to load smth from youtube e.g.:
aiostreams/youtube.py -u https://www.youtube.com/watch?v=XuWkpg3vpv4

i only get the output:
HTTP Error 410: Gone
There is info available about this video!

i'm running a beta os4 system. and it used to work.
did youtube change smth?

searching for a video with "-sv" works fine.

thanks and regards
michael

Doesnt work

It can be me, but I do not get it running. It says invalid syntax. Any help?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.