Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
greubel
Visitor

HLS 404 errors on .ts file

When transcoding a small file with Serviio which uses FFMPEG, The transfer fails with a 404 status on one of the .TS files.
According to the log a good transfer is:
URL: http://192.168.1.2:8895/resource/385/SE ... nt00009.ts
And then a bad one is:
URL: http://192.168.1.2:8895/res

Either the Log file is wrong or the video player truncated the URL !

Contents of playlist.m3u8

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:11
#EXTINF:10.331611,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00000.ts
#EXTINF:10.016122,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00001.ts
#EXTINF:9.722544,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00002.ts
#EXTINF:10.308933,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00003.ts
#EXTINF:9.922978,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00004.ts
#EXTINF:9.868933,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00005.ts
#EXTINF:10.311700,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00006.ts
#EXTINF:9.973044,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00007.ts
#EXTINF:9.700778,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00008.ts
#EXTINF:10.020411,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00009.ts
#EXTINF:0.275833,
/Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/segment00010.ts
#EXT-X-ENDLIST


Contents of folder /Users/jim/Serviio/Transcode/Serviio/transcoding-temp-385-Roku-ORIGINAL.stf/

playlist.m3u8
segment00000.ts
segment00001.ts
segment00002.ts
segment00003.ts
segment00004.ts
segment00005.ts
segment00006.ts
segment00007.ts
segment00008.ts
segment00009.ts
segment00010.ts


Log file data

16:18:08.295 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/MANIFEST/HLS-0/ORIGINAL.m3u8, URL: http://192.168.1.2:8895/resource/385/MANIFEST/HLS-0/ORIGINAL.m3u8, METHOD: GET
16:18:08.361 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/MEDIA_ITEM/HLS-0/ORIGINAL.m3u8, URL: http://192.168.1.2:8895/resource/385/MEDIA_ITEM/HLS-0/ORIGINAL.m3u8, METHOD: GET
16:18:08.430 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/MEDIA_ITEM/HLS-0/ORIGINAL.m3u8, URL: http://192.168.1.2:8895/resource/385/MEDIA_ITEM/HLS-0/ORIGINAL.m3u8, METHOD: GET
16:18:08.512 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00000.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00000.ts, METHOD: GET
16:18:09.072 VideoScreenEvent msg: Stream started. type:20 index:0
16:18:09.107 Video Started at Pos 0
16:18:09.152 Video Url - http://192.168.1.2:8895/resource/385/MEDIA_ITEM/HLS-0/ORIGINAL.m3u8
16:18:09.174 Video Stream - 1600000 Kbps Measured - 6308 Kbps Underrun:False
16:18:09.303 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00001.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00001.ts, METHOD: GET
16:18:09.529 VideoScreenEvent msg: Download segment info type:31 index:0
16:18:10.374 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00002.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00002.ts, METHOD: GET
16:18:10.479 VideoScreenEvent msg: Download segment info type:31 index:1
16:18:10.555 VideoScreenEvent msg: HLS segment info type:27 index:0
16:18:10.633 VideoScreenEvent msg: type:6 index:0
16:18:11.268 VideoScreenEvent msg: Download segment info type:31 index:2
16:18:11.303 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00003.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00003.ts, METHOD: GET
16:18:11.347 VideoScreenEvent msg: type:6 index:1
16:18:11.358 Video Position - 1
16:18:12.179 VideoScreenEvent msg: Download segment info type:31 index:3
16:18:12.226 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00004.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00004.ts, METHOD: GET
16:18:12.346 VideoScreenEvent msg: type:6 index:2
16:18:12.352 Video Position - 2
16:18:13.002 VideoScreenEvent msg: Download segment info type:31 index:4
16:18:13.040 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00005.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00005.ts, METHOD: GET
16:18:13.356 VideoScreenEvent msg: type:6 index:3
16:18:13.362 Video Position - 3
16:18:13.787 VideoScreenEvent msg: Download segment info type:31 index:5
16:18:13.841 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00006.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00006.ts, METHOD: GET
16:18:14.341 VideoScreenEvent msg: type:6 index:4
16:18:14.370 Video Position - 4
16:18:14.694 VideoScreenEvent msg: Download segment info type:31 index:6
16:18:14.722 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00007.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00007.ts, METHOD: GET
16:18:15.364 VideoScreenEvent msg: type:6 index:5
16:18:15.389 Video Position - 5
16:18:15.593 VideoScreenEvent msg: Download segment info type:31 index:7
16:18:15.641 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00008.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00008.ts, METHOD: GET
16:18:16.355 VideoScreenEvent msg: type:6 index:6
16:18:16.370 Video Position - 6
16:18:16.659 VideoScreenEvent msg: Download segment info type:31 index:8
16:18:16.696 * LOG - STATUS: ok, TARGETIP: 192.168.1.2, HTTPCODE: 200, ORIGURL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00009.ts, URL: http://192.168.1.2:8895/resource/385/SEGMENT/transcoding-temp-385-Roku-ORIGINAL.stf/segment00009.ts, METHOD: GET
16:18:17.369 VideoScreenEvent msg: type:6 index:7
16:18:17.386 Video Position - 7
16:18:17.647 VideoScreenEvent msg: Download segment info type:31 index:9
16:18:17.695 * LOG - STATUS: httperror, TARGETIP: 192.168.1.2, HTTPCODE: 404, ORIGURL: http://192.168.1.2:8895/res, URL: http://192.168.1.2:8895/res, METHOD: GET
16:18:18.007 VideoScreenEvent msg: Download segment info type:31 index:10
16:18:18.044 * LOG - STATUS: httperror, TARGETIP: 192.168.1.2, HTTPCODE: 404, ORIGURL: http://192.168.1.2:8895/res, URL: http://192.168.1.2:8895/res, METHOD: GET
16:18:18.328 VideoScreenEvent msg: type:6 index:8
16:18:18.332 Video Position - 8
16:18:18.474 VideoScreenEvent msg: Download segment info type:31 index:10
16:18:18.506 * LOG - STATUS: httperror, TARGETIP: 192.168.1.2, HTTPCODE: 404, ORIGURL: http://192.168.1.2:8895/res, URL: http://192.168.1.2:8895/res, METHOD: GET
16:18:18.545 VideoScreenEvent msg: Download segment info type:31 index:10
16:18:18.590 VideoScreenEvent msg: An unexpected problem (but not server timeout or HTTP error) has been detected. type:9 index:-3
16:18:18.594 Video Failed An unexpected problem (but not server timeout or HTTP error) has been detected. Err:-3 Aux:0
16:18:18.610 Video Url - http://192.168.1.2:8895/resource/385/MEDIA_ITEM/HLS-0/ORIGINAL.m3u8
16:18:18.614 Video Stream - 1600000 Kbps Measured - 6308 Kbps

0 Kudos
1 REPLY 1
greubel
Visitor

Re: HLS 404 errors on .ts file

Forget this !

Just found that Serviio is converting the URLs in the m3u8 file and it appears to be truncating the end of the file when it transfers to Roku.
0 Kudos