Transcode API

Hello,

 

I'm trying to write a Client for my Plex Server and I'd like to know if it's possible to consume the transcoding API or are users tied to the client applications Plex provides (iOS, Android, Windows, etc)?

 

I know that's this old thread: https://forums.plex.tv/topic/22303-plex-transcode-api/

 

But it mentions some private API Key which I have no idea where to find. Following the steps described in that thread using the Public Key as the Private Key gives me 

401 Unauthorized

 

Which I guess was to be expected.

 

Any ideas?

 

Thanks,

Private keys are not needed for the new universal trancoder. Here is a link to my python code which I use to initiate transcoding:

https://github.com/hippojay/plugin.video.plexbmc/blob/helix/resources/lib/plexserver.py#L470

Basically you construct a new URL of the following and complete with the transcoder settings are URL encoded arguments
 

http://:/video/:/transcode/universal/start.m3u8?path=http://127.0.0.1:32400/library/metadata/1234&fastseek=1&protocol=hls&....

This will give you the m3u8 playlist, which you feed into your player of choice.

There are some configurable parameters for the settings, but there is no documentation that I know of. Hopefully my code is self expanitory, but if you feel free to drop me a line.

EDIT: Here is an actual request I've just used to start some transcoding:

http://192.168.1.200:32400/video/:/transcode/universal/start.m3u8?maxVideoBitrate=720&protocol=hls&session=59bacd74-a443-4340-905e-762e04821a0d&offset=0&videoQuality=100&videoResolution=576x320&directStream=1&directPlay=0&audioBoost=0&fastSeek=1&subtitleSize=100&path=http%3A%2F%2F127.0.0.1%3A32400%2Flibrary%2Fmetadata%2F37078

Just a heads up for anyone trying this, the parameter protocol=hls is required for Quicktime. Does anyone know what all of the protocol options are?