Giter Site home page Giter Site logo

playonroku-cli's Introduction

PlayOnRoku-cli

CLI app to quickly cast an mp4 from a url to Roku using PlayOnRoku built in channel app.

Prereq

  • Port 1900 UDP should be open to detect the Roku via SSDP

  • Install pipenv

      pip install pipenv
    
  • Install

      pipenv install
    

Usage

./por.py http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4

Output

curl -d '' 'http://192.168.1.33:8060/input/15985?t=v&u=http%3A%2F%2Fdownload.blender.org%2Fpeach%2Fbigbuckbunny_movies%2FBigBuckBunny_320x180.mp4&videoName=idgaf&k=(null)&videoFormat=mp4'

TODO

  • argparse instead of sys.argv
  • override roku IP using config file and argparse
  • single binary using pyinstaller or similar or convert to go

playonroku-cli's People

Contributors

dependabot[bot] avatar nitrocode avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

jindal1979

playonroku-cli's Issues

Need sample video update

I'm new to this tool. I'm really just trying to work out what kind of url "should work" to throw at port 8060 of my tcl roku tv to make it play an mp4 video, and exactly what kind of formatting the video needs.

curl -d '' 'http://192.168.32.83:8060/input/15985?t=v&u=http%3A%2F%2F192.168.32.40%3A8010%2F20221009-p1of3.mkv&videoName=idgaf&k=(null)&videoFormat=mp4'

causes 'play on Roku' app to launch but then it says "video failed to play".
I figure it's probably because the mkv extension, but what other requirements are there. I see in the code reference to a vimeo url, but that no longer is valid. Can you update with some public videos that you know should work?

I've tried a few from https://download.blender.org/demo/movies/BBB/ without success. actually none of those would play. But I did get an original one-minute-video file from a wyzecam to play....

It doesn't need to download the whole thing first does it? Is there an official howto from roku on using app 15985? i.e. full explanation of how to use t, u, k, videoname, and videoFormat args and any other args available.

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.