bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2011
07:20 AM
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
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
12 REPLIES 12
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2011
02:03 PM
Re: HLS SDK 2.9 Example customvideoplayer
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
-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.
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.
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2011
07:02 PM
Re: HLS SDK 2.9 Example customvideoplayer
Thanks for the info. I will look into it.
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2011
04:07 PM
Re: HLS SDK 2.9 Example customvideoplayer
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
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
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2011
06:16 PM
Re: HLS SDK 2.9 Example customvideoplayer
I don't know if it's the problem, but the last segment has a length of 2147483648:
#EXTINF:2147483648,
-JT
#EXTINF:2147483648,
-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.
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.
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2011
07:23 PM
Re: HLS SDK 2.9 Example customvideoplayer
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
Oh yeah how did you find the large number?
Dale
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2011
11:29 PM
Re: HLS SDK 2.9 Example customvideoplayer
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
-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.
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.
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2011
07:08 AM
Re: HLS SDK 2.9 Example customvideoplayer
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,
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,
renojim
Community Streaming Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2011
01:14 AM
Re: HLS SDK 2.9 Example customvideoplayer
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
-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.
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.
bandal
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2011
08:28 AM
Re: HLS SDK 2.9 Example customvideoplayer
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.