# Transcode API with myPlex Token

**URL:** <https://forums.plex.tv/t/transcode-api-with-myplex-token/17036>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [April 26, 2012, 1:46pm UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036 "2012-04-26T13:46:50Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericmatthys](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericmatthys/32/82085_2.png) [@ericmatthys](https://forums.plex.tv/u/ericmatthys)\
**Post date:** [April 26, 2012, 1:46pm UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/1 "2012-04-26T13:46:50Z")

</div>

I tried appending all the X-Plex- params as url params instead of including them in the headers and it worked!  
  
  
  
I’m not sure how to delete this post. Sorry.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [April 27, 2012, 9:11am UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/2 "2012-04-27T09:11:05Z")

</div>

No worries, glad you figured it out, I was just about to reply 🙂

---

<div class="post-metadata">

**Author:** ![ericmatthys](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericmatthys/32/82085_2.png) [@ericmatthys](https://forums.plex.tv/u/ericmatthys)\
**Post date:** [May 3, 2012, 11:31pm UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/3 "2012-05-03T23:31:10Z")

</div>

> [@](#):
>
> No worries, glad you figured it out, I was just about to reply :)

  
  
Can you provide me with some details on other formats that the transcoder supports? I have been using the sample js file (http://plexapp.tv/bookmarklet/main.js), but I am interested what else it can do besides m3u8 and how you achieve that.  
  
If there is some documentation for that kind of thing, you can just point me to it. I couldn't find much though.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [May 4, 2012, 9:34am UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/4 "2012-05-04T09:34:25Z")

</div>

There isn’t documentation for it. The best bet is actually to use a DLNA client and see how it hits the generic transcoder on the server.

---

<div class="post-metadata">

**Author:** ![ericmatthys](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ericmatthys/32/82085_2.png) [@ericmatthys](https://forums.plex.tv/u/ericmatthys)\
**Post date:** [May 4, 2012, 2:00pm UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/5 "2012-05-04T14:00:40Z")

</div>

Sounds good. Thanks elan.

---

<div class="post-metadata">

**Author:** ![redplex](https://avatars.discourse-cdn.com/v4/letter/r/5f9b8f/32.png) [@redplex](https://forums.plex.tv/u/redplex)\
**Post date:** [May 31, 2012, 2:52pm UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/6 "2012-05-31T14:52:32Z")

</div>

I almost wish the OP had left his original post before he solved his issue. im not sure im putting this in the right place but the older thread on this topic looks well old an dead.  
  
I have used the javascript as an example, but i am always getting 403s.   
  
I have a few questions:  
  
A: i’m totally lost on the retention rules of the session and access tokens… do they expire? when?  
  
B: the session token is obtained from the /video/:/transcode/start.m3u8 point when one is not provided?   
  
C: where can i obtain the current pub/priv key set? is there any place i can retrieve this from PMS itself or online so i can maintain my software?  
  
  
  
My Application:  
  
I am working on a personal iPad side project (not intended for resale) that acts as an interface to various software on my server system (dropbox, jdownloader, plex, etc) right now im working on the Plex module and i would really like transcoding to work smoothly.

---

<div class="post-metadata">

**Author:** ![elan](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/elan/32/5_2.png) [@elan](https://forums.plex.tv/u/elan)\
**Post date:** [May 31, 2012, 7:39pm UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/7 "2012-05-31T19:39:47Z")

</div>

> [@](#):
>
> A: i'm totally lost on the retention rules of the session and access tokens... do they expire? when?

  
  
You should compute a new signature for every new session (obviously, as the signature depends on the URL).  
  
The session identifier should be per-device, and ensures that only one session per client is active.  
  

> [@](#):
>
> B: the session token is obtained from the /video/:/transcode/start.m3u8 point when one is not provided?

  
  
I recommend providing a session=XXX parameter with a per-device token. That is best practice.  
  

> [@](#):
>
> C: where can i obtain the current pub/priv key set? is there any place i can retrieve this from PMS itself or online so i can maintain my software?

  
  
The ones in the Christmas post are still valid as demo keys.

---

<div class="post-metadata">

**Author:** ![hradec](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/hradec/32/100272_2.png) [@hradec](https://forums.plex.tv/u/hradec)\
**Post date:** [June 29, 2012, 8:53pm UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/8 "2012-06-29T20:53:31Z")

</div>

> [@](#):
>
> Sounds good. Thanks elan.

  
  
Hey ericmatthys, did you figure this out? Could you post your finds here? I'm really interested on transcoding to FLV/MP4...   
  
thanks!  
-H

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 9:52pm UTC](https://forums.plex.tv/t/transcode-api-with-myplex-token/17036/9 "2019-12-20T21:52:17Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
