# transcoding issue

**URL:** <https://forums.plex.tv/t/transcoding-issue/74403>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [August 20, 2014, 7:31pm UTC](https://forums.plex.tv/t/transcoding-issue/74403 "2014-08-20T19:31:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![awvc1\_hotmail.com](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@awvc1\_hotmail.com](https://forums.plex.tv/u/awvc1_hotmail.com)\
**Post date:** [August 20, 2014, 7:31pm UTC](https://forums.plex.tv/t/transcoding-issue/74403/1 "2014-08-20T19:31:01Z")

</div>

I'm trying to initiate a transcoding session based on what I've read from forum articles. I notice the zip file of javascript code is no longer available, so I don't know if this is still valid, but can somebody give me some advice please?

&nbsp;

I have generated a url , hmac256 hashed it with the secret key previously published, and based 64 encoded it. &nbsp;My problem seems to come when I submit this my server errors with an http 400 (bad request) error.

&nbsp;

the server log is as below:

&nbsp;

Aug 20, 2014 12:26:05 [0x808616000] DEBUG - Request: GET /video/:/transcode/segmented/start.m3u8?identifier=com.plexapp.plugins.library&ratingKey=8947&offset=0&quality=5&url=http%253A%252F%252F127.0.0.1%252Flibrary%252Fmetadata%252F8947&3g=0&httpCookies=&userAgent=@1408562765&X-Plex-Access-Key=KQMIY6GATPC63AIMC4R2&X-Plex-Access-Time=1408562765&X-Plex-Access-Code=u+4XH/qJe8mf6EKH+dOpPnK3+dAQcjIfchDv3GwDLLw= [81.108.89.166:37527] (3 live)

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* identifier =\> com.plexapp.plugins.library

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* ratingKey =\> 8947

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* offset =\> 0

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* quality =\> 5

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* url =\> http%3A%2F%2F127.0.0.1%2Flibrary%2Fmetadata%2F8947

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* 3g =\> 0

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* httpCookies =\>&nbsp;

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* userAgent =\> @1408562765

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* X-Plex-Access-Key =\> KQMIY6GATPC63AIMC4R2

Aug 20, 2014 12:26:05 [0x808616000] DEBUG -&nbsp; \* X-Plex-Access-Time =\> 1408562765

Aug 20, 2014 12:26:05 [0x808616000] ERROR - Had trouble breaking X-Plex-Access-Code=u+4XH/qJe8mf6EKH+dOpPnK3+dAQcjIfchDv3GwDLLw=

Aug 20, 2014 12:26:05 [0x808616000] ERROR - ERROR: Parsing request failed.

&nbsp;

I have verified my code produces hmacsha256 hashes ok, and I think it converts to base64 ok - any test inputs anyone could recommend for me to try this would definetly help if they have any though.

&nbsp;

Does it look like its just my hashing at fault, or is my URL wrong? I'm really stuck and I'd really appreciate any advice anyone can offer please?

&nbsp;

many thanks in advance.

---

<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 21, 2019, 2:47am UTC](https://forums.plex.tv/t/transcoding-issue/74403/2 "2019-12-21T02:47:33Z")

</div>

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