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: 
salman23
Visitor

Trickplay not working in video screen

Hi,
I am using video screen.I need to implement trickplay feature into that.But after enabling it , still it is not working.

Code :
 port = CreateObject("roMessagePort")
screen = CreateObject("roVideoScreen")
screen.SetPositionNotificationPeriod(3)
metaData={
'Content
}
screen.EnableTrickPlay(true)
screen.SetContent(metaData)
screen.Show()


Anyone know how to solve this problem?
0 Kudos
4 REPLIES 4
destruk
Binge Watcher

Re: Trickplay not working in video screen

By default it is enabled - so there isn't any reason to specify that unless you want to disable it - and using the feature locks your channel to run on devices with firmware 5.2 or higher.
Unless you want to disable it you should remove the line so it will still work on older devices.

It's probably not working because you don't have the sdbifurl/hdbifurl metadata used by trickplay.
SDBifUrl-String-URL for SD Trick Modes-http://www.myco.com/bif/sd1932.bif
HDBifUrl-String-URL for HD Trick Modes-http://www.myco.com/bif/hd1932.bif

http://sdkdocs.roku.com/display/sdkdoc/ ... cification
0 Kudos
salman23
Visitor

Re: Trickplay not working in video screen

"destruk" wrote:
By default it is enabled - so there isn't any reason to specify that unless you want to disable it - and using the feature locks your channel to run on devices with firmware 5.2 or higher.
Unless you want to disable it you should remove the line so it will still work on older devices.

It's probably not working because you don't have the sdbifurl/hdbifurl metadata used by trickplay.
SDBifUrl-String-URL for SD Trick Modes-http://www.myco.com/bif/sd1932.bif
HDBifUrl-String-URL for HD Trick Modes-http://www.myco.com/bif/hd1932.bif

http://sdkdocs.roku.com/display/sdkdoc/ ... cification


Thanks a bunch @destruk.But is there any way to generate bif images.I mean converters like that..?
0 Kudos
destruk
Binge Watcher

Re: Trickplay not working in video screen

http://sdkdocs.roku.com/display/sdkdoc/ ... leCreation

Roku recommends using ffmpeg. I prefer to use VirtualDub with an mpeg plugin to extract the images - as it's more accurate on timing.
...the stated ffmpeg command for generating graphics does kind of work - I suppose it depends on your source video file. Most of the time for me it generates 3 of the same image and then an image from ~8 seconds, followed by 19 seconds, followed by 27 seconds, etc - it is fast, can be batched to do hundreds of videos, etc etc - but it is truly sloppy in the results, requiring files to be renamed after it's done, and so on. I tried builds of ffmpeg going back from the latest and 'greatest' to versions in 2008 and all exhibit this problem.
The way I resolved it was using VirtualDub and a plugin to allow loading MP4 files. The 'ffmpeg input driver' mentioned here - http://www.donsalva.com/2011/07/03/how- ... virtualdub
allows that. So you can load your mp4 into virutaldub, go to video/framerate and select "decimate by". If your video is 25fps then decimate by would be 250. If 23.976 then 240 would be 'close enough' - 29.976 would be 300...
Then go to Video/Filters and add 'resize' to set your image dimensions (320x240) , and then file/export image sequence.
It starts the numbering at 0, you can set the number of leading 0's, defaults to JPG and you can set quality, and it's faster than ffmpeg (at least it seems faster to me). Then you can run the standard biftool, python, ruby script or whatever you use for the images and it turns out accurate results.
0 Kudos
salman23
Visitor

Re: Trickplay not working in video screen

thanks a lot destruk.That was a nice piece of information.
0 Kudos