Log in

View Full Version : Blu-ray to .MP4 with Subtitles from Blu-ray


setarip_old
11th June 2013, 22:27
Just tried my hand at converting the Blu-ray version of "A Good Day to Die Harder" to one of the BD Rebuilder .MP4 settings (IPad 1280x720, I believe.)

The conversion was fast, the quality was wonderful - but although I had selected All subtitles, there were none to be found in the .MP4.

Oddly (to me at least), there were .SUP files in the "WORKFILES" folder. These files corresponded in number and quantity with the PSG subtitles in the original Blu-ray.

What do I have to do to have BD Rebuilder include (and display) the applicable subtitles when it converts a Blu-ray to an .MP4?

This is rather important in the case of "A Good Day to Die Harder", due to the rather substantial use of Russian dialog.

Thank you.

gonca
12th June 2013, 00:44
I gave it a couple of tries and couldn't make it include the subtitles. What you could do, until Jdobbs responds, is use MKV output and then remux to MP4.

Kurtnoise
12th June 2013, 13:22
No, you have to hardcode them to the video if you want to use this kind of subtitles with this container for the moment...or change the format like srt to mux them with other streams.

Ghitulescu
12th June 2013, 15:03
MP4 should allow for subtitles, as graphics or text. Whether a particular software understands subtitles, or needs external subtitles like in the MKV case, is a question everyone has to experiment himself.

Kurtnoise
12th June 2013, 15:37
MP4 should allow for subtitles, as graphics or text. Whether a particular software understands subtitles, or needs external subtitles like in the MKV case, is a question everyone has to experiment himself.
did you read what I said ?

For Apple devices, you have to use text streams or burn them into the video if you want to keep graphics subtitles like vobsub or pgs.

Ghitulescu
12th June 2013, 16:49
I read that he used the ipad preset, not that he intended to play it on an ipad.
And you didn't say that MP4 on/for apple, but MP4 (ie in general), must contain burnt-in subtitles.

setarip_old
12th June 2013, 18:01
Ghitulescu interpreted my post correctly as far as, "I read that he used the ipad preset, not that he intended to play it on an ipad."

As far as I'm concerned, ANY .MP4 preset or setting that will permit the proper display of subtitles is fine for my purposes.

jdobbs
12th June 2013, 18:14
All MP4 formats are not the same. That's why they are distinguished as iPod/iPad and normal Mp4. Apple, for example, uses an entirely different technique for chapters than a standard MP4 file.

As for subtitles... are there players that support SUP subtitles in an MP4?

setarip_old
12th June 2013, 18:32
@jdobbs

Hi!

You say, All MP4 formats are not the same. That's why they are distinguished as iPod/iPad and normal Mp4. Apple, for example, uses an entirely different technique for chapters than a standard MP4 file. So is there not one such selection I can use to make an .MP4 that will play on several different hardwares, such as a PC, an iPod/iPad, Mac, etc. - or would selecting "Normal .MP4" result in a file that would at least play audio and video properly on all types of hardware (Even if it doesn't allow for chaptering or subtitles)?

jdobbs
12th June 2013, 19:08
@jdobbs

Hi!

You say, So is there not one such selection I can use to make an .MP4 that will play on several different hardwares, such as a PC, an iPod/iPad, Mac, etc. - or would selecting "Normal .MP4" result in a file that would at least play audio and video properly on all types of hardware (Even if it doesn't allow for chaptering or subtitles)? If you have a choice... choose standard MP4. It is the standard. If you have a newer iPad/iPhone it will play it back fine with the exception of chaptering (older iPods/iPads/iPhones are limited -- some won't even accept bframes, others limit the resolution). Apple has a tendency to set their own rules rather than stick with standards.

setarip_old
12th June 2013, 19:15
@jdobbs

(Not referring to subtitles or chapters in this post) Just to be certain I understand you correctly - If I choose "Standard .MP4", will the resultant file be playable on my PCs as well as MAC, iPad/iPod and other hardware that doesn't come to mind at the moment?

Thank you.

jdobbs
12th June 2013, 19:22
@jdobbs

(Not referring to subtitles in this post) Just to be certain I understand you correctly - If I choose "Standard .MP4", will the resultant file be playable on my PCs as well as MAC, iPad/iPod and other hardware that doesn't come to mind at the moment?

Thank you. Bottom line: Not necessarily. If you have an iPad 2 or above, an iPhone 4s or above -- then you are probably ok as long as you don't choose open GOPs. If you have an original iPad, or an older iPhone -- it may not work. For example, if you have 1920x1080 output, older iPods, iPads, and iPhones won't accept it.

Choosing MP4 will usually result in better quality at a lower bitrate requirement than one of the iPod/iPad/iPhone presets. That's because the iPod, iPad, & iPhone selections don't support some encoding bells-and-whistles. That's not true of the newer presets I've added called "iPhone 4s+/iPad 2+". The only real difference between those and standard MP4 is the chaptering (added in the next release of BD-RB).

Please don't blame me. It is Apple who decided to make this complicated.

Kurtnoise
13th June 2013, 09:44
As for subtitles... are there players that support SUP subtitles in an MP4?

Yes, by using this kind of avisynth script :
FFVideoSource() #put whatever here for your input
SupTitle("subtitles.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="0,120,0,100")


http://www.zachsaw.com/?pg=suptitle_pgs_avisynth_plugin

And then, create your mp4 with your favorite tool.

As said, the subtitles are hardcoded to the video stream though...

Kurtnoise
13th June 2013, 09:46
I read that he used the ipad preset, not that he intended to play it on an ipad.
And you didn't say that MP4 on/for apple, but MP4 (ie in general), must contain burnt-in subtitles.
For me, using an iPad preset is to target to play the file on this kind of devices...:rolleyes:

jdobbs
13th June 2013, 13:17
Yes, by using this kind of avisynth script :
FFVideoSource() #put whatever here for your input
SupTitle("subtitles.sup", forcedOnly=false, swapCbCr=false, relocate=true, relocOffset="0,120,0,100")


http://www.zachsaw.com/?pg=suptitle_pgs_avisynth_plugin

And then, create your mp4 with your favorite tool.

As said, the subtitles are hardcoded to the video stream though... Yeah, I knew you could do that. But it isn't really supporting SUP, as the subtitle is no longer SUP after you hardcode it into the video. I guess I could add that as an option, though.

Chetwood
14th June 2013, 06:09
It's a limitation of the mp4 container, is it not? The only way to add the PGS subs would be to use private streams which then again would require media splitter being able to read this.

Kurtnoise
14th June 2013, 14:52
Just convert the pgs to vobsub format then...why would you add some other discrepancies ?

Chetwood
15th June 2013, 06:08
I wouldn't anyway cause I use MKV but I'm also not sure MP4 officially supports VobSub.

Moviewatcher666
22nd June 2013, 16:08
Just tried my hand at converting the Blu-ray version of "A Good Day to Die Harder" to one of the BD Rebuilder .MP4 settings (IPad 1280x720, I believe.)

The conversion was fast, the quality was wonderful - but although I had selected All subtitles, there were none to be found in the .MP4.

Oddly (to me at least), there were .SUP files in the "WORKFILES" folder. These files corresponded in number and quantity with the PSG subtitles in the original Blu-ray.

What do I have to do to have BD Rebuilder include (and display) the applicable subtitles when it converts a Blu-ray to an .MP4?

This is rather important in the case of "A Good Day to Die Harder", due to the rather substantial use of Russian dialog.

Thank you.

Hey Setarip_old,

I have been converting a lot of my Blu-ray to MP4 digital copies of late. My main criteria was to make 720p with AC3 5.1 in audio track 1 and 2 channel stereo in audio track 2. Anything with subtitles, I would burn into the video track so that i did not need to select it no matter what device I played on (PS3, android tablet, android phone, PC, and in some instances iPad and Apple TV).

I have been using Handbrake svn5414 (nightly build) 64bit version.

I converted A Good Day to Die Hard last night with successful subtitles burned in for the Russian parts.

I used the English subtitle track 6 and selected burn-in and I got all the Russian subtitles where required.

I found that BD-RB does not have the exact format that I have been wanting for MP4 digital copies. Handbrake has been working really well. It also keeps files sizes very reasonable (about 2.2 gig for A Good Day To Die Hard).
Let me know if you want further details about what I am doing. I am happy to share my experiences and settings.

Thanks.

Moviewatcher666

setarip_old
23rd June 2013, 18:46
@jdobbs

Hardcoding subtitles is as easy as adding a single line as a filter with the SupTitle() AVISYNTH filter.
I believe that this would be very useful if it could be added as a DIRECT function of BD-RB (without having to process with third party software such as Handbrake).

jdobbs
23rd June 2013, 23:14
@jdobbs


I believe that this would be very useful if it could be added as a DIRECT function of BD-RB (without having to process with third party software such as Handbrake). Unfortunately while that filter is free and can be download easily -- by it's license it cannot be freely distributed. I'm very careful to make sure I comply with the wishes of other freeware software developers.

You don't need Handbrake to use it, you can use it from within BD-RB as an AVISYNTH filter.

setarip_old
24th June 2013, 05:59
(Here I go showing my utter ignorance again)

Exactly what would I have to download and enter and where (in BD-RB) in BD-RB would I make the entry (entries)? And how would I limit the entry to one specific subtitle track? (Believe it or not, after all these years, I have virtually no knowledge of how to use AviSynth)

jdobbs
24th June 2013, 13:27
(Here I go showing my utter ignorance again)

Exactly what would I have to download and enter and where (in BD-RB) in BD-RB would I make the entry (entries)? And how would I limit the entry to one specific subtitle track? (Believe it or not, after all these years, I have virtually no knowledge of how to use AviSynth) You can download it from this link (http://www.zachsaw.com/?pg=suptitle_pgs_avisynth_plugin)

You can put it anywhere you want, but it is generally in the AVISYNTH plug-in folder. I use "C:\APPS\BD_REBUILDER\TOOLS\Plug-Ins".

You'd first have to choose the subtitle track you want to use, let's say it's "00006.track_4608.sup" and your working folder is "D:\WORKING".

You'd then click on "Use AVS filters..." in the SETUP dialog and enter this:

LoadPlugin("C:\APPS\BD_REBUILDER\TOOLS\Plug-Ins\SupTitle.dll")
SupTitle("D:\WORKING\WORKFILES\00006.track_4608.sup")

There are also options you can use in the suptitle() command line that you will see in the link, you'll probably want to use "relocOffset".

Moviewatcher666
26th June 2013, 22:36
So what's it missing? I'd guess it is actually available -- and if not it can easily be added. Hardcoding subtitles is as easy as adding a single line as a filter with the SupTitle() AVISYNTH filter.

Hi jdobbs,

Here is a link to a posting I did in March. I did not get any responses.

http://forum.doom9.org/showthread.php?p=1620214#post1620214

Thanks.

Moviewatcher666