Jump to content

Roku Selecting Audio and Subtitle Tracks


leebo

Recommended Posts

Please test with the new version and let me know how it goes for you

I updated to the latest beta (it shows Version 3.0.5168.16132). Played a few of my BR/Handbrake conversions to mkv. Still no subtitle displaying.

I played from the web client (right click the system trey icon, select browse library). I assume if they don't display from there, there is no point to check on my Roku?

Link to comment
Share on other sites

Ok for some reason the subs canvas isn't resizing. I know we fixed this. Can you link me to a clean debug server log of that same item.

Thanks

Link to comment
Share on other sites

Well that isn't from roku but I assume the result is the same on roku (ie you don't see the subs)

 

 

Lee can you make a new folder somewhere on your system and open a cmd prompt in it and run the following c/l

C:\Users\Lee\AppData\Roaming\MediaBrowser-Server\ffmpeg\20140105\ffmpeg.exe -ss 599 -fflags genpts -i file:"O:\Handbrake Conversions\Jack Reacher\Jack Reacher.mkv" -ss 1 -map 0:0 -map 0:1 -vcodec libvpx -force_key_frames expr:if(isnan(prev_forced_t),gte(t,.1),gte(t,prev_forced_t+5)) -speed 16 -quality good -profile:v 0 -slices 8 -crf 10 -b:v 1372000 -r 23.976 -vsync vfr -filter_complex "[0:4]format=yuva444p,scale=1920:816,lut=u=128:v=128:y=gammaval(.3)[sub] ; [0:0] [sub] overlay,scale=min(iw\,1280):-1" -map_metadata -1 -threads 2 -acodec libvorbis -ac 2 -ab 128000 -af "adelay=1,aresample=async=1" -t 300 "test.webm"

watch the file in vlc or something similar.

 

If you don't see subs in the file. (hopefully the section I randomly chose has some talking in it and therefore subs if not adjust the 599 value at the start of the c/l).

 

Please run.

ffmpeg.exe -ss 600 -fflags genpts -i file:"O:\Handbrake Conversions\Jack Reacher\Jack Reacher.mkv" -codec copy -t 300 "test4tikuf.mkv"

And upload the file > test4tikuf.mkv to your dropbox and pm me the link thanks.

Link to comment
Share on other sites

Ok I am not sure what is happening with your setup but ..

 

 

530db87c1e02f_subs.jpg

 

 

All i can suggest is perhaps handbrake is doing something ffmpeg doesn't like.

 

Try running it through ffmpeg and testing the full movie.

ffmpeg.exe  -fflags genpts -i file:"O:\Handbrake Conversions\Jack Reacher\Jack Reacher.mkv" -codec copy  "O:\Handbrake Conversions\Jack Reacher\Jack Reacher-new.mkv"
Link to comment
Share on other sites

DigitalFool

Since there is a thread on Roku subtitles...

 

I actually just got a Roku 3 and have been playing around with it - in my MB configuration on my HTPC I have a separate .SRT sub file. That works fine on my HTPC, however the Roku doesn't see it. Do I have to remux that sub in?

Link to comment
Share on other sites

Correct the quality stays exactly as is. it just rewrites the timestamps and the mkv container.

Edited by Tikuf
Link to comment
Share on other sites

 

Ok I am not sure what is happening with your setup but ..

 

 

530db87c1e02f_subs.jpg

 

 

All i can suggest is perhaps handbrake is doing something ffmpeg doesn't like.

 

Try running it through ffmpeg and testing the full movie.

ffmpeg.exe  -fflags genpts -i file:"O:\Handbrake Conversions\Jack Reacher\Jack Reacher.mkv" -codec copy  "O:\Handbrake Conversions\Jack Reacher\Jack Reacher-new.mkv"

OK, I'm a bit confused.

 

The frame grab suggests that the subs from the file I linked do show up when you play it? Did you use the web client?

If so, isn't your system using ffmpeg too? Why then would the subs show up on yours?

 

Also, it seems unlikely that I am the only person using Handbrake to make MKV's from Blurays, and using MB3 and a Roku. Yet I haven't seen anyone else mention this issue.

 

In any case, I'll try making a copy with your CL and playing it on my Roku later today.

Link to comment
Share on other sites

Yes it is the web client. Yes my system is using ffmpeg. The only reason I can think of is that the copy copy c/l changed something in the file that handbrake has written.

 

Let me know how you go.

Link to comment
Share on other sites

FrostByte

Subs are still not working for me either though I use DVDFab to rip my discs. When I select the subtitle and start the movie the progress bar doesn't even move anymore and then just quits and dumps me back out.

Link to comment
Share on other sites

I played the test clip I previously sent through the MB3 web client, and the subs did display. Do you still want me to go through the process of copying the entire movie with your ffmpeg cl?

 

There was only one sub language in that file, I assume your cl only copied one sub?

Link to comment
Share on other sites

The c/l i gave you copies all the streams and re writes the mkv. There is something that handrake and ffmpeg are doing differently. I dont know what it is yet. But as a temp fix you could run that movie through ffmpeg see if it fixes it. (it will only take a minute or 2.)

Edited by Tikuf
  • Like 1
Link to comment
Share on other sites

The c/l i gave you copies all the streams and re writes the mkv. There is something that handrake and ffmpeg are doing differently. I dont know what it is yet. But as a temp fix you could run that movie through ffmpeg see if it fixes it. (it will only take a minute or 2.)

Great. Thanks.

 

I will try that. If it works, I guess I will add that to my process until you figure it out. If it only takes a few minutes I can assume it is not re-encoding and changing the picture quality.

At least I can resume converting my rips. Thanks again!

Link to comment
Share on other sites

I posted an update earlier (or so I thought), but it apparently never got posted. I got the idea to use Handbrake to convert only a small portion of a movie after you had me use ffmpeg to do the same thing yesterday. My thinking was that maybe the subs displayed due to something different in the short clip, rather than due to something ffmpeg did differently. Apparently I was right. The new, short Handbrake clip displayed the subs just fine!

 

But then I converted the entire movie, and subs do not display. Since my earlier conversions (a few months ago), I have replaced my cpu, MB, and RAM, and re-installed Windows. I had hoped maybe one of those changes was somehow responsible for the subs displaying in the test clip.

 

Anyway, so for some reason, subs work when only a part of a movie is converted, even when the short clip is created using HB. What do you make of that? Is something happening at the beginning of a movie that screws MB up? Something to do with how MB decides how or where to display subs?

 

 

Edit: So I made another short clip conversion, this time from the beginning of the movie to the 5 min point, and subs do not display. Seems like something is happening when a movie is converted from the beginning that affects the way MB handles subs.

Edited by leebo
Link to comment
Share on other sites

No all mine display fine.

 

Did you try to convert the whole movie with ffmpeg?

What displays fine? Sub's? But you're not converting with Handbrake, are you?

 

Anyway, I converted two different movies using ffmpeg. Neither one displays subs when using the web client. I pasted your cl and just changed the file name and location. I noticed that the ffmpeg copies only have the first sub track (checked with VLC). I'm not sure why that is.

 

During opening credits, sub's that are at the top of the frame do display, but those displayed in the original mkv anyway.

 

So far, the only thing that works is to cut the first couple of mins from a movie. If I do that, sub's seem to display fine. I'm going to do an entire movie that way to confirm it works through the whole movie.

 

But, then I'm missing the first part of a movie, so that's no solution.

 

Sent from my generic not my computer device.

Link to comment
Share on other sites

I instead decided to just make a longer clip rather than copy an entire movie. I edited the cl you gave me to produce a ten minute clip, beginning 103 seconds into the film.

 

ffmpeg.exe -ss 103 -fflags genpts -i file:"O:\Handbrake Conversions\Last Vegas\Last Vegas.mkv" -codec copy -t 600 "test subs Last Vegas.mkv"

 

Using the web client, the subs display throughout the entire clip. I made another clip, starting at 101 seconds into the movie, and subs DID NOT display. I made several other clips, starting at various times into the movie, but those two (101 secs and 103 secs) seemed to be the cut off point between where subs worked and did not work.

 

I don't understand anything about how MB3 works, but it's obvious to me that something at or near the beginning of my mkv's messes up MB as relates to subs. I thought maybe it was something at the point where subs first appear, but that point at 103 secs where subs work is several seconds b4 the very first sub, so I guess that's not it.

 

Again, your cl only appears to copy the first sub, so I can't test multiple subs.

 

 

Edit: I just did the same test on another movie. Similar results. If I cut the beginning of the movie, just b4 the first subs, MB is able to display them. In this case (Jack Reacher), a clip starting at 490 secs into the movie resulted in no subs being displayed (there is no dialogue for the first 8:10). A new clip, starting at 497 secs into the movie, resulted in subs being displayed. Hope this helps.

Edited by leebo
Link to comment
Share on other sites

Yes, I'm sorry. I'm not expecting instant service. I was just trying to see if there was anything I could try on my end. I have lots of Bluray movies I would like to convert, and they take forever, but I'm not converting anything in case you discover that I need to change something in my settings and I would have to re-convert everything.

 

I'm dealing mostly with BR so there are no VOB's. It's typically the main movie file unless it's split up into multiple files.

 

As I said above, it's strange in that if I exclude the very beginning of the movie file, up to about one or two seconds b4 any dialogue, MB is able to display the subs. If I include anything sooner then about two seconds b4 any dialogue when making the mkv (I'm talking about at the very beginning of the movie), then MB is not able to display subs. So obviously something is happening at that point that affects MB's ability to display PGS subs. 

 

Let's say dialogue begins 90 seconds into a movie.

 

If my mkv starts at the 89 second mark (cutting out the first 89 seconds of the movie), then MB can display the subs.

 

If my mkv starts  86 seconds into the movie (cutting out the first 86 seconds) then MB CANNOT display the subs - even though it knows they are there! That is why if I encode an mkv from a BR cutting out the first 5mins, 10 mins, etc., subs will display (because the encode started AFTER the first dialogue of the movie. Starting my encode at any point after the first dialogue in the movie is fine, as far as subs. But then I'm missing the very beginning of any movie, obviously.

Link to comment
Share on other sites

Can I use mkvtoolnix to extract subs from the BR, add them to the mkv movies folder, and will MB Server read and display those over the movie? So although it won't display subs imbedded in the movie, will it display subs if they're in the same folder?

Link to comment
Share on other sites

gcw07

Tikuf will have to answer that one, but I believe external subs is currently working for the server. Now remember it will have to transcode the video when you have subs at the moment because we burn subs into the video itself.

Link to comment
Share on other sites

Tikuf

The subs you will find are pgs subs and we don't look for external pgs subs (they are not text based). It would be a very unusual situation to have pgs subs outside a container.

Link to comment
Share on other sites

Tikuf

It all depends on the timestamps in the file there are several different ones.

pts - presentation time stamps gives you where you are in the movie

dts - decode timestamps tell the player when to start decoding a particular part usually a second or two ahead of the pts.

 

With bd rips (or dvd)these time stamps can get muddled up as the files are stitched together by your encoder (not saying this is the issue yet).

 

But that said sometimes a file is grabbed with timestamps that don't match (sometimes the studio logo or a dts snippet) this can muck up the pgs files as the time stamps are different from the movie file depending on how the encoder is joining them all up.

 

I will look at it further but that will be my starting point. A little way down the track i will probably drill you for your handbrake setting to see if i can repo.

Link to comment
Share on other sites

I wonder if using a different version of Handbrake would make a difference? Maybe they have a beta version (though my version is something like 0.98, which seems like it would mean beta).

 

Sent from my generic not my computer device.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...