Giter Club home page Giter Club logo

Comments (10)

pkkid avatar pkkid commented on May 5, 2024

I'm curious about this request. How are you using this url? I assumed it would only be useful with a proper plea client.

from python-plexapi.

simonwjackson avatar simonwjackson commented on May 5, 2024

The response of the URL is a video stream that you can simply pass to VLC, MPV or many other video players. It works quite well.

from python-plexapi.

simonwjackson avatar simonwjackson commented on May 5, 2024

@mjs7231 Looking into it a bit further, the stream is: h264, aac

I'm guessing this is because X-Plex-Platform is set to Chrome

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

NOTE: With commit 43e99e9 you can now specify the headers including X-Plex-Platform via an ini file.

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

I can't get this to stream in VLC, not sure what I'm doing wrong here. :(

from python-plexapi.

simonwjackson avatar simonwjackson commented on May 5, 2024

@mjs7231 Can you paste the URL? (feel free to scrub the IP) 😃

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

Here is the command I am trying to run.

>> vlc "http://localhost:32400/video/:/transcode/universal/start?maxVideoBitrate=128&X-Plex-Platform=Chrome&copyts=1&offset=0&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F%2Flibrary%2Fmetadata%2F4431&mediaIndex=0&videoResolution=1280x720"
[0x7f881c001098] access_http access error: error: HTTP/1.1 400 Bad Request
[0x7f881c001098] access_http access error: error: HTTP/1.1 400 Bad Request
[0x7f881c001098] access_mms access error: error: HTTP/1.1 400 Bad Request
[0x7f883800ac88] main input error: open of `http://localhost:32400/video/:/transcode/universal/start?maxVideoBitrate=128&X-Plex-Platform=Chrome&copyts=1&offset=0&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F%2Flibrary%2Fmetadata%2F4431&mediaIndex=0&videoResolution=1280x720' failed

EDIT: HEYA! -- I got it with this URL. turns out it was also including the /library/metadata part twice.

vlc "http://localhost:32400/video/:/transcode/universal/start?maxVideoBitrate=128&X-Plex-Platform=Chrome&copyts=1&offset=0&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F4431&mediaIndex=0&videoResolution=1280x720"

from python-plexapi.

pkkid avatar pkkid commented on May 5, 2024

I added this without using a separate StreamURL object. The function Video.getStreamURL was added using your code as the example, thanks!

commit 527b0ee
Author: Michael Shepanski [email protected]
Date: Thu Jun 4 00:00:37 2015 -0400
Add Video.getStreamURL()

from python-plexapi.

ZePaiva avatar ZePaiva commented on May 5, 2024

Is this method still available on Movie objects or has it passed to otther type of objects?

If it's still available on Movie objects what is the code to get it?
I'm using this sample but it's throwing AttributeError:

server=PlexServer( ( HOST+':'+str(PORT) ), PLEX_TOKEN)
mov=server.library.section('Movies').get('mov1')
print(mov.getStreamUrl())

from python-plexapi.

blacktwin avatar blacktwin commented on May 5, 2024

@ZePaiva Method is still working. Please provide more information like the entire error. Also create a new issue or use the Python-PlexAPI Discord.

from python-plexapi.

Related Issues (20)

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.