HLS SDK 2.9 Example customvideoplayer

I am using the 2.9 SDK Examples and was trying the HLS using the customvideoplayer example.

I was searching HLS in the forum and still stumped. I am on a Roku2 XS 4.1 1275.
I can get HLS to stream ok from start to end if I do not touch the remote FF or RW, but if I press the Right button to go Forward the TV shows 33%…to 99% and stays there and does not continue playing on a 23 minute video and the TV shows 99%. I used Sorenson Squeeze 7 and have all the parameters ok I believe, but my HLS stream never continues after fast forward or reverse near middle or end of clip. Any word on this? I just modified the main.brs and added my url to the example.
The Main.brs has this in my code except the -------- on my website.
Any ideas?

In my main.brs

this.player = CreateObject(“roVideoPlayer”)
this.player.SetMessagePort(this.port)
this.player.SetLoop(true)
this.player.SetPositionNotificationPeriod(1)
this.player.SetDestinationRect(this.layout.left)
this.player.SetContentList([{
Stream: { url: “http://www.--------.org/Rokudev/Live/testvid_DaleHLS/testvid_DaleHLS.m3u8” }
StreamFormat: “hls”
}])
this.player.Play()

return this
End Sub

Output from 192.168.1.11 8085

------ Running ------
11, 0: startup progress
11, 66: startup progress
11, 132: startup progress
0, 0:
11, 198: startup progress
11, 264: startup progress
11, 330: startup progress
20, 0: Stream started.
11, 330: startup progress
Remote button pressed: 3
7, 3:
11, 999: startup progress
11, 999: startup progress
11, 1000: startup progress
11, 0: start of play
27, 0: HLS segment info
6, 1:
6, 2:
6, 3:
6, 4:
6, 5:
6, 6:
6, 7:
6, 8:
27, 9000: HLS segment info
6, 9:
6, 10:
6, 11:
6, 12:
6, 13:
6, 14:
6, 15:
6, 16:
6, 17:
27, 18000: HLS segment info
6, 18:
6, 19:
6, 20:
6, 21:
6, 22:
Remote button pressed: 5
7, 5:
11, 0: startup progress
20, 27: Stream started.
11, 330: startup progress
11, 464: startup progress
11, 999: startup progress
11, 999: startup progress
9,-3: An unexpected problem (but not server timeout or HTTP error) has been detected.
16, 0: Playback completed.
11, 0: end of playlist
9,-3: An unexpected problem (but not server timeout or HTTP error) has been detected.
16, 0: Playback completed.
11, 0: end of playlist
9,-3: An unexpected problem (but not server timeout or HTTP error) has been detected.
16, 0: Playback completed.
11, 0: end of playlist

You’re probably not doing anything wrong. They’ve been tweaking the 4.1 firmware for a while now and you should probably just wait for an update. You might want to get into the 4.1 2600 beta group: viewtopic.php?f=34&t=44219

-JT

Thanks for the info. I will look into it.

I now have 4.1 2663 on my XS and I can only get my video to FFW once and it plays ok, but 1 more time FFW it shows the 99% and stays there and the debug shows the same entry near the end of my last debug post. I even put a sleep (3000) after the this.player.Play() and no luck either.
Any one else having the issue?
My stream url is this
Stream: { url: “http://www.donggala.org/Rokudev/Live/VTS_02_1_DaleHLS/VTS_02_1_DaleHLS.m3u8” }

this.player.Play()

sleep(3000)

return this
End Sub

I don’t know if it’s the problem, but the last segment has a length of 2147483648:
#EXTINF:2147483648,

-JT

Odd, maybe the Sorenson Squeeze 7 program is an issue. I will see what I can find. Thanks for the info.
Oh yeah how did you find the large number?

Dale

I followed the URI in the first m3u8 file to get to the actual list of segments and just took a look at it to see if there was anything obviously wrong.

-JT

I corrected the .m3u8 file and changed the large number to 9 as all others show. Still an issue with FFW and stops:

In the Example customvideoplayer from the 2.9 SDK all I did was change the hls or http link to the video. As I am on a windows system all I have to create the hls .ts files is Sorenson. Can you try the SDK code and place my link to the video to see what results you get? Better yet, I will place my source in .zip at http://www.donggala.org/Rokudev navigate there in a browser and save link as..to get the zip. I did remove the sleep(3000) in main.brs

27, 27000: HLS segment info
6, 27:
6, 28:
6, 29:
6, 30:
6, 31:
Remote button pressed: 5
7, 5:
11, 0: startup progress
20, 32: Stream started.
11, 330: startup progress
11, 999: startup progress
11, 999: startup progress
9,-3: An unexpected problem (but not server timeout or HTTP error) has been detected.
16, 0: Playback completed.
11, 0: end of playlist
9,-3: An unexpected problem (but not server timeout or HTTP error) has been detected.
16, 0: Playback completed.
11, 0: end of playlist
9,-3: An unexpected problem (but not server timeout or HTTP error) has been detected.
16, 0: Playback completed.
11, 0: end of playlist

Thanks,

The next possibility for a problem is that your segments have a frame rate of 25fps. Officially, only 29.97 and 23.976 are supported. Again, I don’t know if that’s the problem, but if you can have your converter use one of the supported frame rates it would be a good thing to try.

-JT

I am converting a new set today with 4 rates and made sure that it says 29.97 on each. I will post if successful or not. Thanks.

I give up for now. Maybe it is because I placed my video on my website versus Amazon or a Wowza Streaming Server. I can play the Big Buck Bunny no problem. Do I really need a streaming server versus placing the content on my website for HLS? I can do VOD no problem from my website. Ahhh

I tried downloading your segments that were 25fps and playing them from my server and I got the same results with the “unexpected error” after fast-forwarding. If you’d like me to try the 29.97fps segments let me know.

-JT

Ok, I will make more content as I deleted it. And will place the source there too. I will make 1 sample with 1 rate to keep it simple. I am finding out that Sorenson Squeeze 7 is the problem. I set to 29.97 and when it was complete I saw 50fps in my codec info while playing with vlc. Looks like this software has bugs in it. I don’t have linux, so I will see what I can find for HLS encoding in Win XP.