Skip to content

Instantly share code, notes, and snippets.

@hl2guide
Created August 12, 2016 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hl2guide/cc1451a058276f04485ba48fb98c4e58 to your computer and use it in GitHub Desktop.
Save hl2guide/cc1451a058276f04485ba48fb98c4e58 to your computer and use it in GitHub Desktop.
Stream Launcher for Livestreamer 1.12.2 (twitch, crunchy roll or youtube) This file helps with starting a stream (such as twitch.tv) in a video player (MPC-HC) using Livestreamer. Allows for playing twitch, crunchy roll or youtube videos in a video player.
:: Stream Launcher for Livestreamer 1.12.2 (twitch, crunchy roll or youtube)
:: This file helps with starting a stream (such as twitch.tv) in a video player (MPC-HC) using Livestreamer.
:: Allows for playing twitch, crunchy roll or youtube videos in a video player.
:: Script Version: 1.0
:: Last Updated: 12-08-2016
:: Author: Deanoman
:: Requires MPC-HC and Livestreamer.
:: Sources:
:: Site - http://docs.livestreamer.io
:: Download - http://docs.livestreamer.io/install.html#windows-binaries
:: Command Line Reference - http://docs.livestreamer.io/cli.html
:: MPC-HC Video Player - https://mpc-hc.org
:: Lines starting with :: are comments
::
:: Save this file as "launch_stream.bat" then edit step 1, 2. Then set A, B, or C.
@ECHO off
:: 1) The location of Livestreamer EXE
SET livestreamerEXE="H:\Important\Batch Scripts\Commands\livestreamer\livestreamer.exe"
:: 2) The location of Video Player (64-bit or 32-bit)
:: SET playerlocation="C:\Program Files\VideoLAN\VLC\vlc.exe"
SET playerlocation="C:\Program Files\MPC-HC\mpc-hc64.exe"
:: A) Twitch Source Stream:
SET streamURL="twitch.tv/geekandsundry"
:: B) Crunchy Roll Source Stream:
:: SET streamURL="crunchyroll.com/one-piece/episode-705-the-moment-of-resolution-corazons-farewell-smile-681813"
:: C) Youtube Source Stream:
:: SET streamURL="youtube.com/watch?v=AWUZDPrfOcI"
:: ===QUALITY LEVELS===
:: A) Twitch [twitch.tv]: best, high, medium, low, mobile or audio (in descending order)
SET streamQuality=best
:: B) Crunchy Roll [crunchyroll.com]: ultra, high, mid or low (in descending order)
:: SET streamQuality=ultra
:: C) Youtube [youtube.com]: 720p, 360p, 240p, 144p, audio_mp4, audio_webm (in descending order)
:: SET streamQuality=720p
:: Run Livestreamer and open stream to video player
%livestreamerEXE% --player=%playerlocation% %streamURL% %streamQuality%
:: Please note: Minimize the command window that appears and leave it running.
PAUSE
EXIT
@ECHO on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment