Forum Discussion

onevoisses's avatar
onevoisses
Visitor
14 years ago

Parts of a code I cannot Understand.It works though

here is my appMain.brs file

1 bitrates = [0]
2
3 'Swap the commented values below to play different video clips...
4 'srt = "file://pkg:/source/craigventer.srt" 'doNot Work
5 srt =""
6 ' Big Buck Bunny test stream from Wowza
7 'urls = ["http://ec2-174-129-153-104.compute-1.amazonaws.com:1935/vod/smil:BigBuckBunny.smil/playlist.m3u8"] 'No Work
8 'urls = ["http://184.xxx.xxx.xx9/vod/smil:BigBuckBunny.smil/playlist.m3u8"] 'This External works
9 urls = ["http://myserver:1935/vod/mp4:sample.mp4/playlist.m3u8"] 'My Server Works
10 qualities = ["SD"]
11 streamformat = "hls"
12 'streamformat = "mp4" 'this doesnot work
13 title = "Big Buck Bunny"

Here are the Questions

line 4 srt="file......" donot work and so I had to use srt="" (see line 5).I would like to fix this since it puts a caption on the bottom of the movie (see my debug log also) ?

line 7 the original url of the amazon bucket that comes with the examples do not work,I found the url in line 8 which works and enable me me to better debug my problem.Should the examples be updated for these url?

line 9,11 & 12 I found that I had to use "hls" as the stream format yet this is a vod(video on demand stream) of an mp4 file which is place in the content directory.What impact will this have on a live stream? is it that for all streams format from third party servers to the Roku DVP have to be "hls"?

Now for the stupid question of the day "what does the "smil" stands for in {urls = ["http://184.xxx.xxx.xx9/vod/smil:BigBuckBunny.smil/playlist.m3u8"]} and is it used for streaming live?"


Here is my debuglog
onevoisses@onevoisses:~$ telnet xxx.xxx.xxx.xxx 8085
Trying xxx.xxx.xxx.xxx...
Connected to xxx.xxx.xxx.xxx.
Escape character is '^]'.
0 [homescreen]
roAssociativeArray refcnt= 1 addr=0x5c1b6ad0
roString refcnt= 1 addr=0x5c1dfdb8 [homescreen]
------ Running ------
Type args = roAssociativeArray
Type args.url = Invalid
showSpringboardScreen
Button pressed: 1 0
Displaying video:
srt = file://pkg:/source/craigventer.srt
Unknown event: 20 msg: Stream started.
Unknown event: 16 msg: Playback completed.
Closing video screen
Button pressed: 1 0
Displaying video:
srt = file://pkg:/source/craigventer.srt
Unknown event: 20 msg: Stream started.
Unknown event: 16 msg: Playback completed.
Closing video screen
Screen closed
Leaked bsc instances:
roAssociativeArray refcnt= 1 addr=0x5ccfa668
roString refcnt= 1 addr=0x547901d0 [auto-run-dev]
------ Running ------
Type args = roAssociativeArray
Type args.url = Invalid
showSpringboardScreen
Button pressed: 1 0
Displaying video:
srt = file://pkg:/source/craigventer.srt
Unknown event: 20 msg: Stream started.
Unknown event: 15 msg: Playback interrupted by user.
Closing video screen
Screen closed
Leaked bsc instances:
roAssociativeArray refcnt= 1 addr=0x5cc79b60
roString refcnt= 1 addr=0x5474c060 [auto-run-dev]
------ Running ------
Type args = roAssociativeArray
Type args.url = Invalid
showSpringboardScreen
Button pressed: 1 0
Displaying video:
srt = file://pkg:/source/craigventer.srt
play failed: An unexpected problem (but not server timeout or HTTP error) has been detected.
Closing video screen
Button pressed: 1 0
Displaying video:
srt = file://pkg:/source/craigventer.srt
play failed: An unexpected problem (but not server timeout or HTTP error) has been detected.
Closing video screen
*** ERROR compiling /pkg:/source/appMain.brs:
Syntax Error. (compile error &h02) in ...M8IdZ/pkg:/source/appMain.brs(176)
Screen closed
*** ERROR compiling /pkg:/source/appMain.brs:
Syntax Error. (compile error &h02) in ...qcLFB/pkg:/source/appMain.brs(176)
Leaked bsc instances:
roAssociativeArray refcnt= 1 addr=0x5d0e1d18
roString refcnt= 1 addr=0x547245d0 [auto-run-dev]
------ Running ------
Type args = roAssociativeArray
Type args.url = Invalid
showSpringboardScreen
Button pressed: 1 0
Displaying video:
srt = file://pkg:/source/craigventer.srt
Unknown event: 20 msg: Stream started.
Unknown event: 11 msg: Content contains no playable tracks.
play failed:
Closing video screen
Button pressed: 1 0
Displaying video:
srt = file://pkg:/source/craigventer.srt
Unknown event: 20 msg: Stream started.
Unknown event: 11 msg: Content contains no playable tracks.
play failed:
Closing video screen
Button pressed: 1 0
Displaying video:
srt = file://pkg:/source/craigventer.srt
Unknown event: 20 msg: Stream started.
Unknown event: 11 msg: Content contains no playable tracks.
play failed:
Closing video screen
Screen closed
Leaked bsc instances:
roAssociativeArray refcnt= 1 addr=0x5ccf9dd0
roString refcnt= 1 addr=0x5c2a63d0 [auto-run-dev]
------ Running ------
Type args = roAssociativeArray
Type args.url = Invalid
showSpringboardScreen
Button pressed: 1 0
Displaying video:
srt =
Unknown event: 20 msg: Stream started.
Unknown event: 11 msg: Content contains no playable tracks.
play failed:
Closing video screen
Screen closed
Leaked bsc instances:
roAssociativeArray refcnt= 1 addr=0x5c21adb8
roString refcnt= 1 addr=0x54727c80 [auto-run-dev]
------ Running ------
Type args = roAssociativeArray
Type args.url = Invalid
showSpringboardScreen
Button pressed: 1 0
Displaying video:
srt =
Unknown event: 20 msg: Stream started.
Unknown event: 16 msg: Playback completed.
Closing video screen
Screen closed
Leaked bsc instances:
roAssociativeArray refcnt= 1 addr=0x5c274db0
roString refcnt= 1 addr=0x5472b110 [auto-run-dev]
------ Running ------
Type args = roAssociativeArray
Type args.url = Invalid
showSpringboardScreen
Button pressed: 1 0
Displaying video:
srt =
Unknown event: 20 msg: Stream started.
Unknown event: 16 msg: Playback completed.

Closing video screen


my server console logs is attached
Please note that with the parameters above this works but is it the correct way.?

No more coffee Let me go shuteye country for a Vacation of 5hrs.

13 Replies