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

Prebuffering ?

I hooked up a web cam through Chaneru using HLS.
Works OK but there is about a minute and 20 second delay !
Is there any way to reduce the amount of prebuffering in Roku and go more realtime ?
0 Kudos
5 REPLIES 5
renojim
Community Streaming Expert

Re: Prebuffering ?

How long are your segments? I understand at least three segments will be buffered before play starts.

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
greubel
Visitor

Re: Prebuffering ?

I tried different segments sizes with the same result, a minute and a half delay. Also I hit a problem with Roku not closing the pre-buffering on small clips. If a small clip's segments end before Roku finishes with the pre-buffering, it just sits there with the progress indicator at 95%. Never reads the index file to get the fact that it's closed.
0 Kudos
RokuKevin
Visitor

Re: Prebuffering ?

Do you have a publicly accessible url of the small clip that never plays?? I'd like to take a look at that.

Thanks,

--Kevin
0 Kudos
greubel
Visitor

Re: Prebuffering ?

Kevin, I'm unable to locate that sequence. I've been trying for the last two days to reproduce it, but no luck.
I did run across a different problem with rebuffering. I am transcoding and streaming a 1280x720 AVI file.
It seems that no matter what I set the segment duration to, it always fails around segment 4 and rebuffers.
Fails both on 1509 and 1529. But does not occur with the .ts files static.
The first rebuffer actually starts the whole movie over which is a problem for 10 sec segments.
You have to rewatch the first 30 seconds of it again.


10 seconds - 7 segments size is between 7 and 9 meg and rebuffers at .ts 4
8 seconds - 7 segments size is between 5 and 7 meg and rebuffers at .ts 4
6 seconds - 9 segments size is between 4 and 5 meg and rebuffers at .ts 4
4 seconds - 12 segments size is between 2 and 4 meg and rebuffers at .ts 4 11
2 seconds - 22 segments size is between 1.5 and 2 meg and rebuffers at .ts 5 10 19
1 seconds - 42 segments size is between .6 and 1 meg and rebuffers at .ts 5 10 22 33

Live Stream with transcode
12:47:28 "HEAD /Roku/Pictures/2010-07-13/056.AVI HTTP/1.1" 301 0
12:47:28 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 125
12:47:29 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000001.ts HTTP/1.1" 200 1046596
12:47:30 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 158
12:47:31 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000002.ts HTTP/1.1" 200 1088708
12:47:32 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000003.ts HTTP/1.1" 200 1074608
12:47:33 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 191
12:47:34 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000004.ts HTTP/1.1" 200 958048
12:47:35 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 224
12:47:36 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000005.ts HTTP/1.1" 200 120000 <-------- was reset
12:47:37 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000005.ts HTTP/1.1" 200 984744
12:47:38 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 290
12:47:39 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000006.ts HTTP/1.1" 200 1009372
12:47:40 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000007.ts HTTP/1.1" 200 1022908
12:47:40 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 323
12:47:41 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000008.ts HTTP/1.1" 200 1028172
12:47:43 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 356
12:47:44 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000009.ts HTTP/1.1" 200 1053928
12:47:45 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 389
12:47:46 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000010.ts HTTP/1.1" 200 1062952
12:47:48 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 422
12:47:50 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 488
12:47:51 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000010.ts HTTP/1.1" 200 1062952 <-------- reloaded but was good
12:47:53 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000011.ts HTTP/1.1" 200 1185716
12:47:53 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 521
12:47:54 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000012.ts HTTP/1.1" 200 1021592
12:47:55 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000013.ts HTTP/1.1" 200 1132700
12:47:55 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 554
12:47:56 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000014.ts HTTP/1.1" 200 1116344
12:47:57 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000015.ts HTTP/1.1" 200 982676
12:47:58 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 587
12:47:59 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000016.ts HTTP/1.1" 200 936428
12:48:00 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 653
12:48:01 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000017.ts HTTP/1.1" 200 907852
12:48:02 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000018.ts HTTP/1.1" 200 869312
12:48:03 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 686
12:48:04 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000019.ts HTTP/1.1" 200 930976
12:48:05 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 719
12:48:06 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000020.ts HTTP/1.1" 200 990948
12:48:08 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 752
12:48:09 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000021.ts HTTP/1.1" 200 906348
12:48:10 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 818
12:48:11 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000022.ts HTTP/1.1" 200 920260
12:48:12 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000022.ts HTTP/1.1" 200 920260 <-------- reloaded but was good
12:48:13 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 851
12:48:14 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000023.ts HTTP/1.1" 200 739028
12:48:15 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000024.ts HTTP/1.1" 200 1098484
12:48:15 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 884
12:48:16 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000025.ts HTTP/1.1" 200 929096
12:48:18 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 917
12:48:19 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000026.ts HTTP/1.1" 200 1026292
12:48:20 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 950
12:48:22 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000027.ts HTTP/1.1" 200 1500428
12:48:23 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 983
12:48:24 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000028.ts HTTP/1.1" 200 956544
12:48:25 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1016
12:48:26 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000029.ts HTTP/1.1" 200 1016704
12:48:28 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1082
12:48:29 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000030.ts HTTP/1.1" 200 1001852
12:48:30 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000031.ts HTTP/1.1" 200 920448
12:48:30 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1115
12:48:31 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000032.ts HTTP/1.1" 200 963876
12:48:33 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1148
12:48:34 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000033.ts HTTP/1.1" 200 987752
12:48:35 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000033.ts HTTP/1.1" 200 987752 <-------- reloaded but was good
12:48:35 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1181
12:48:37 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000034.ts HTTP/1.1" 200 1021592
12:48:38 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1214
12:48:39 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000035.ts HTTP/1.1" 200 1035316
12:48:40 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1247
12:48:42 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000036.ts HTTP/1.1" 200 1319384
12:48:43 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1280
12:48:44 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000037.ts HTTP/1.1" 200 1458316
12:48:45 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1.m3u8 HTTP/1.1" 200 1313
12:48:46 "GET /C:\Users/Jim/My%20Roku/Live%20Stream/stream1-00000038.ts HTTP/1.1" 200 706316

Same .ts files built from previous stream but static. No problem !
12:57:30 "HEAD /Roku/Live/stream1.m3u8 HTTP/1.1" 200 184
12:57:30 "GET /Roku/Live/stream1.m3u8 HTTP/1.1" 200 1461
12:57:32 "GET /Roku/Live/stream1-00000001.ts HTTP/1.1" 200 1046596
12:57:33 "GET /Roku/Live/stream1-00000002.ts HTTP/1.1" 200 1088708
12:57:34 "GET /Roku/Live/stream1-00000003.ts HTTP/1.1" 200 1074608
12:57:35 "GET /Roku/Live/stream1-00000004.ts HTTP/1.1" 200 958048
12:57:36 "GET /Roku/Live/stream1-00000005.ts HTTP/1.1" 200 984744
12:57:37 "GET /Roku/Live/stream1-00000006.ts HTTP/1.1" 200 1009372
12:57:39 "GET /Roku/Live/stream1-00000007.ts HTTP/1.1" 200 1022908
12:57:40 "GET /Roku/Live/stream1-00000008.ts HTTP/1.1" 200 1028172
12:57:41 "GET /Roku/Live/stream1-00000009.ts HTTP/1.1" 200 1053928
12:57:42 "GET /Roku/Live/stream1-00000010.ts HTTP/1.1" 200 1062952
12:57:43 "GET /Roku/Live/stream1-00000011.ts HTTP/1.1" 200 1185716
12:57:44 "GET /Roku/Live/stream1-00000012.ts HTTP/1.1" 200 1021592
12:57:46 "GET /Roku/Live/stream1-00000013.ts HTTP/1.1" 200 1132700
12:57:47 "GET /Roku/Live/stream1-00000014.ts HTTP/1.1" 200 1116344
12:57:48 "GET /Roku/Live/stream1-00000015.ts HTTP/1.1" 200 982676
12:57:49 "GET /Roku/Live/stream1-00000016.ts HTTP/1.1" 200 936428
12:57:50 "GET /Roku/Live/stream1-00000017.ts HTTP/1.1" 200 907852
12:57:51 "GET /Roku/Live/stream1-00000018.ts HTTP/1.1" 200 869312
12:57:52 "GET /Roku/Live/stream1-00000019.ts HTTP/1.1" 200 930976
12:57:53 "GET /Roku/Live/stream1-00000020.ts HTTP/1.1" 200 990948
12:57:54 "GET /Roku/Live/stream1-00000021.ts HTTP/1.1" 200 906348
12:57:55 "GET /Roku/Live/stream1-00000022.ts HTTP/1.1" 200 920260
12:57:56 "GET /Roku/Live/stream1-00000023.ts HTTP/1.1" 200 739028
12:57:57 "GET /Roku/Live/stream1-00000024.ts HTTP/1.1" 200 1098484
12:57:58 "GET /Roku/Live/stream1-00000025.ts HTTP/1.1" 200 929096
12:58:00 "GET /Roku/Live/stream1-00000026.ts HTTP/1.1" 200 1026292
12:58:01 "GET /Roku/Live/stream1-00000027.ts HTTP/1.1" 200 1500428
12:58:02 "GET /Roku/Live/stream1-00000028.ts HTTP/1.1" 200 956544
12:58:03 "GET /Roku/Live/stream1-00000029.ts HTTP/1.1" 200 1016704
12:58:05 "GET /Roku/Live/stream1-00000030.ts HTTP/1.1" 200 1001852
12:58:06 "GET /Roku/Live/stream1-00000031.ts HTTP/1.1" 200 920448
12:58:07 "GET /Roku/Live/stream1-00000032.ts HTTP/1.1" 200 963876
12:58:08 "GET /Roku/Live/stream1-00000033.ts HTTP/1.1" 200 987752
12:58:09 "GET /Roku/Live/stream1-00000034.ts HTTP/1.1" 200 1021592
12:58:10 "GET /Roku/Live/stream1-00000035.ts HTTP/1.1" 200 1035316
12:58:12 "GET /Roku/Live/stream1-00000036.ts HTTP/1.1" 200 1319384
12:58:13 "GET /Roku/Live/stream1-00000037.ts HTTP/1.1" 200 1458316
12:58:14 "GET /Roku/Live/stream1-00000038.ts HTTP/1.1" 200 706316
0 Kudos
RokuKevin
Visitor

Re: Prebuffering ?

Do you have a stream url I could look at?

Thanks,

--Kevin
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.