GithubHelp home page GithubHelp logo

johnciubuc / streamlinkerino Goto Github PK

View Code? Open in Web Editor NEW
34.0 4.0 2.0 5.62 MB

Twitch.tv client using only StreamLink, MPV, and Chatterino

C++ 74.82% QMake 2.59% CMake 2.26% Dockerfile 20.34%
twitch streamlink mpv chatterino linux player stream integration cpp qt5

streamlinkerino's Introduction

Official Chatterino Implementation

Integration of this application into a first-class chatterino feature is currently in process. Pull request can be viewed here

Testing Branch

Testing branch does not require chatterino to be patched, but it does have a considerable delay (5-10s) on switching streams due to chatterino json writing frequency.

Pre-Release Windows Port

dewcked is working on a windows port version of this project. Repository can be viewed here: https://github.com/dewcked/StreamLinkerino/releases

streamlinkerino

Ever wanted to use StreamLink + MPV + Chatterino all in one application? Look no further, as this project has your solution!

streamlinkerino embeds MPV (using StreamLink as its base) and Chatterino into one application. If you patch Chatterino (Git Link) with the supplied patch file, the MPV stream will auto-update if you switch channels in Chatterino!

Why does this application exist

This project was created for the following reasons:

  1. Avoiding usage of the twitch web application
    • It is unfortunately laggy and resource heavy
    • Embedded stream ads can not be avoided
    • Twitch Player is feature poor (compared to other players)
    • Several bug with streams not loading when using third party extensions like FFZ/BTTV
  2. Avoiding Electron / JS applications
    • Alternatives such as StreamLink Twitch GUI do exist, but you still have to deal with the resource heaviness of electron-based apps and the website itself
  3. Performance
    • The base app and chatterino is C++/Qt. The Player is MPV and StreamLink is used for an ad-free stream experience.
    • The result is a light weight, high performance twitch client

Features

  1. High performance, low memory, and responsive

  2. No mid-roll ads (Thanks streamlink!)

  3. MPV player features:

    • Pause
    • Rewind
    • Fast forward
    • And more!
  4. Streamlink and Chatterino Integration

  5. Seamless stream switching (Chatterino patch required)

Building

Building streamlinkerino

Contributed by dewcked from Release #22:

  1. Install docker and git
  2. git clone https://github.com/JohnCiubuc/streamlinkerino.git --recurse-submodules
  3. git submodule update --recursive --remote
  4. cd streamlinkerino
  5. Pull docker image from Here.
  • Linux) docker run -it --rm -v $(pwd):/src/ --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined reivilo1234/qt-linux-cmake:qt5.15.1 bash
  • Windows) docker run -it --rm -v %CD%:/src/ --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined reivilo1234/qt-linux-cmake:qt5.15.1 bash
  1. mkdir build && cd build
  2. cmake ../src && make

Patching Chatterino

  1. Copy chatterino.patch from the streamlinkerino Patch directory, into chatterino's submodule project directory (same location as chatterino.pro)
  2. patch -p0 < chatterino.patch
  3. Create build folder mkdir build && cd build
  4. Go into build directory
  5. qmake .. && make

TODO:

1. Detect if streamlink is installed, and if not, prompt user

2. Detect if chatterino is installed, and if not, prompt user

3. On switching streams, setup two mpv clients -- one playing current stream and the other loading new stream. When new stream finishes loading, swap to the new client

  1. Currently can only change stream based on chatterino. Add option to change stream ignoring chatterino (or if chatterino isn't patched)

  2. Resize chatterino window

6. Create a settings dialog to specify streamlink/chatterino location and settings

7. Link the settings button in chatterino (if patched) with the settings dialogue in streamlinkerino

  1. Auto apply patch and build chatterino together with streamlinkerino via CMakeLists

Screenshots

ss1

(Older Version)

(Current Version)

streamlinkerino's People

Contributors

dependabot[bot] avatar johnciubuc avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

Forkers

shampee dewcked

streamlinkerino's Issues

Stream doesnt start

Really cool project and it is exactly what I was looking for.
I built the testing branch without the docker step on arch (installed unpatched chatterino2 via AUR). When I start streamlinkerino, it opens another chatterino window and doesn't display the stream. Do I need to manually start it somehow?

Need to link latest streamlink submodule due to Twitch API replacement.

Thank you for this project โค๏ธ

Project could be broken due to streamlink API replacement resulted by twitch API replacement.

This pull request from streamlink adapted Twitch's GraphQL API. To say simple, Helix, new Twitch's official API that replaces Kraken, forces devs to send user's auth token to use it. So streamlink replaced that API to Twitch's GraphQL API.

I checked latest streamlink-twitch-gui release now uses Helix API (need users login to Twitch), so this project is still one possible alternative to it for whom doesn't want to login. (I don't know if the streamlink-twitch-gui dev will add option for GraphQL).

Fast workaround should be git submodule update --recursive --remote(from StackOverflow) before building steps. I checked build is successful with latest streamlink.

If you add guide in README for updating submodules I would appreciate.

Release

Hey is there any chance you could upload a pre-compiled release?
I can't compile it.

Upstream Chatterino Feature

I stumbled on this repo looking for a nice GUI client to watch with twitch and thought it would be better to just upstream it into chatterino as a first class feature. I created a simple demo, but still have quite a bit to work on. Just wanted to make you aware of it and if you have any expertise / suggestions I would greatly appreciate it!

PR on the main repo:
Chatterino/chatterino2#2805

Chatterino submodule link returns 404 error

hi, sorry to bother you, from the activity on the project it seems like something mostly for your own personal use. fully understand if you don't want to make changes or update it. i am a relative noob to using git and only have a little bit of scripting/coding experience, so i apologize if this is not the way i should try fix this problem.

issue: when trying to clone the project, the link to the chatterino submodule reaches a 404, because it apparently points to a specific commit that no longer exists. it needs to be changed to point to the current stable branch.

i tried forking the project to fix the problem myself, but as i said, i'm new to git and not very familiar with coding in general. i was unable to edit the modules to point to the correct resource in my fork, so i don't know what i need to do to be able to do that.

thanks for making the project, and i appreciate any help you can offer.

Streamlinkero building step failed

 โœ˜ beats@arch ๎‚ฐ ~/streamlinkerino ๎‚ฐ ๎‚  master ๎‚ฐ sudo docker run -it --rm -v $(pwd):/src/ --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined reivilo1234/qt-linux-cmake:qt5.15.1 bash
root@e89000b459fc:/src# mkdir build && cd build
root@e89000b459fc:/src/build# cmake ../src && make
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found X11: /usr/include   
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Configuring done
CMake Error at CMakeLists.txt:37 (add_executable):
  Cannot find source file:

    MainWindow.ui

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
root@e89000b459fc:/src/build# cmake ../src && make
-- Configuring done
CMake Error at CMakeLists.txt:37 (add_executable):
  Cannot find source file:

    MainWindow.ui

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

I guess this issue might be due to the fact that I don't use a DE or something? I'm not so sure myself I just started using linux and went straight to using a WM

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.