Roku Media Player, Non-channel, Home-streamed, BIF file Trick Play
Roku Model: 3931RW Roku Express+
SW ver: 13.1.4, build 1510-AE
Roku Media Player (RMP) ver: 5.5, build 13
Twonky DLNA Server ver: 8.5.2-20210413
WMP DLNA Server ver: Win 11 22H2
I would like to play previews while FF/REW in RMP; but I'm having trouble getting the "trick play" (hereafter called "scan preview") to work. There are so many variables and unknowns for me to figure it out alone. Your help is greatly appreciated.
Does RMP even have a scan preview functionality? I see many references where people "have gotten it to work" (e.g., here), without providing steps on what they did to do so.
If RMP does have scan preview, does it require the creation of a BIF file? There are plethora of references in the forums about how to create one, the time delay issues, etc., but nearly all of them refer to channel devs and not, specifically, a home user using RMP.
I am a regular user of ffmpeg and have successfully created and verified my thumbs from a video. I created my BIF file using the following steps:
- 1. I created an imgs folder containing snapshots from sample.mkv using the following command (gleaned/altered from an example in StackExchange to fix the time delay issue):
ffmpeg -loglevel error -hwaccel cuvid -hwaccel_output_format cuda -c:v h264_cuvid -i "sample.mkv" -filter:v "scale_cuda=w=320:h=180,thumbnail_cuda=2,hwdownload,format=nv12,select=bitor(gte(t-prev_selected_t\,10)\,isnan(prev_selected_t))" -vsync 0 -color_range 2 imgs\%08d.jpg
I fixed the dimension to HD, as per the biftool man page because this sample is HD and I only watch in HD. This is one thing I did not try, is to change to SD or other thumb dims.
- 2. I generated a bif file, or I "think" I did, using the following command (gleaned from the dev forum):
biftool -t 10000 imgs
The name of the generated BIF file is "imgs.bif". It is a binary file, so I cannot really parse it; but it is big enough to assume that the thumbs are embedded.
I moved the sample.mkv and imgs.bif to my DLNA servers for both Twonky and WMP. When I try to scan preview sample.mkv in RMP, served by either my Twonky DLNA or WMP, it does not show a preview in REW/pause/FF. The man page for the biftool was no help.
Other things I have tried:
- I tried renaming the imgs.bif to sample.bif to match the movie name (like the SRTs and Poster images have to be in RMP).
- I tried moving the imgs thumb directory to the same path as the movie/bif file. I doubt this was necessary; but did it in case the BIF file is pointing to the directory.
- I re-generated using "sample" as the image folder name, to match the movie name.
It's hard to find information/tutorials on how to get this working, so I am not even sure it's a legitimate RMP function for a non-channel, home-streamed video. I would just like to have the feature implemented for my home library.
Thank you in advance for your response.
The problem is probably the DLNA server. RMP only knows there's a BIF file out there if the server reports it and I'm not even sure that DLNA servers support such a thing or not. Putting movie.mkv and movie.bif on a USB drive and plugging it into a Roku device that supports one would certainly get you trick play images. I know atc98092 uses Serviio, but I don't know if he uses BIF files. I'd be willing to bet that Plex supports them, but that's just a guess and it probably requires running their server and not any old DLNA server. Emby may be another option, but I know even less about that than Plex and I know very little about Plex. 🙂
Thanks, it looks like Jellyfin might fix my RMP issue; but it's as cumbersome as Emby to install on my NAS (WD My Cloud). The only instructions I found were dated (i.e., are for OS3, I'm on OS5).
I think renojim is correct. I cannot find anything about BIF for either WMP or Twonky. At this point, I am reasonably sure they don't support serving them.
Plex creates and serves its own BIF files, which would save me the time of doing it myself; but I am not wanting to move to Plex.
I believe it's a closed issue for me, as I am not ready to risk bricking my NAS by trying to manually install another DLNA. As I said before, this issue is not that important to me. It was more of an intellectual exercise. Since it looks like there is too much risk for not enough reward, I am accepting renojim's response.
Thanks.