Jan 30, 2010 can extract PGS subs from mkv

The place to discuss Mac OS X version of MakeMKV
Post Reply
mrbass
Posts: 35
Joined: Tue Dec 15, 2009 3:10 pm

Jan 30, 2010 can extract PGS subs from mkv

Post by mrbass » Tue Feb 02, 2010 1:57 am

http://jonthn.free.fr/MKVtoolnix/
Mac version of MKVtoolnix 3.1.0 has been ported by Jonathan. Thanks!
open terminal and type following...obviously only do for tracks that are subtitles for your paticular movie.

Code: Select all

/Applications/Mkvtoolnix.app/Contents/MacOS/mkvextract tracks /Volumes/movies/movie.mkv 5:5.sup 6:6.sup 7:7.sup 8:8.sup 9:9.sup 10:10.sup 11:11.sup
Now we can extract .sub PGS on the Mac directly from the .mkv ripped with makemkv. Still have to OCR them with windows...but we're almost there to be 100% Mac operation.
Image

Once extract you'll find them in your home directory and in Finder that is Macintosh HD | Users | yourusername
For more info see orginal subs thread

jmerrilljr
Posts: 9
Joined: Wed Dec 23, 2009 10:57 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by jmerrilljr » Wed Feb 03, 2010 12:14 am

I got this to work by deleting "/Volumes" and moving the movie directory to the top level of my hard drive. (I know nothing about Terminal). I would like to use the movie directory in my home folder don't know how to access that directory.

Using this:/Volumes/movies/movie.mkv -- I get a "no such file or directory" error.

Help would be very much appreciated.

John Merrill

mrbass
Posts: 35
Joined: Tue Dec 15, 2009 3:10 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by mrbass » Wed Feb 03, 2010 9:50 pm

I'll come out with makemkv guides soon for Mac..working on them but for terminal commands in the meantime

cd = change directory, it is cAsE sensitive and you can use TAB key to auto complete
cd .. navigate to lower directory
pwd = shows current location
ls = list
to list your contents of your movies instead of buying a $30 disk cataloger app is to
ls -GR1 movies/
this will list all movies without all the date and other details... -G gives it color and R is recursive and 1 keeps all extra cruft off
ls -R1 movies/ > movielist.txt puts your movies to a text file...then just take it into Pages and put 2 column document.
Braveheart.1995.mkv
Casino 1995.mkv
Cliffhanger.1993.mkv
Con Air 1997.mkv
Crimson Tide 1995.mkv


du -h movies/ gives you output of your folder and and subfolders size so you can gauge how big your collection is.
du -h movies/ > moviesize.txt

267G _Movies//Oldies
324G _Movies//Childrens
741G _Movies//Series
333G _Movies//Foreign
79G _Movies//Christmas
595G _Movies//1990s
804G _Movies//2000s
3.1T _Movies/

Anyway like it is listed in the subs thread it appears the BDSup2Sub java app works just fine for taking SUP (PGS subtitles) from bluray once extracted with mkvextract and converting them to DVD subs (idx sub) format. So looks like this is 100% Mac process now. Plus new makemkv version just released allows extraction of only forced subs so it looks like it's very mature now.
Last edited by mrbass on Fri Feb 05, 2010 4:47 pm, edited 1 time in total.

jmerrilljr
Posts: 9
Joined: Wed Dec 23, 2009 10:57 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by jmerrilljr » Wed Feb 03, 2010 11:20 pm

Terrific. I posted a link to this thread on the Plex forums.

Thanks again. :D

nadocrew
Posts: 13
Joined: Sat Dec 26, 2009 2:03 am

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by nadocrew » Fri Feb 05, 2010 9:18 am

great post. I didnt realize BDsup2sub was mac compatible. Good to know I can use all mac programs.

rikitik
Posts: 2
Joined: Mon Feb 15, 2010 8:47 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by rikitik » Mon Feb 15, 2010 8:53 pm

It didn't worked for me. My movie file is on an external firewire drive. Should I move the movie to the main HD? I got the same problem as 'jmerriljr'.
Thanks,
rikitik:-)

rikitik
Posts: 2
Joined: Mon Feb 15, 2010 8:47 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by rikitik » Mon Feb 15, 2010 9:30 pm

mrbass wrote:I'll come out with makemkv guides soon for Mac..working on them but for terminal commands in the meantime

cd = change directory, it is cAsE sensitive and you can use TAB key to auto complete
cd .. navigate to lower directory
pwd = shows current location
ls = list
to list your contents of your movies instead of buying a $30 disk cataloger app is to
ls -GR1 movies/
this will list all movies without all the date and other details... -G gives it color and R is recursive and 1 keeps all extra cruft off
ls -R1 movies/ > movielist.txt puts your movies to a text file...then just take it into Pages and put 2 column document.
Braveheart.1995.mkv
Casino 1995.mkv
Cliffhanger.1993.mkv
Con Air 1997.mkv
Crimson Tide 1995.mkv


du -h movies/ gives you output of your folder and and subfolders size so you can gauge how big your collection is.
du -h movies/ > moviesize.txt

267G _Movies//Oldies
324G _Movies//Childrens
741G _Movies//Series
333G _Movies//Foreign
79G _Movies//Christmas
595G _Movies//1990s
804G _Movies//2000s
3.1T _Movies/

Anyway like it is listed in the subs thread it appears the BDSup2Sub java app works just fine for taking SUP (PGS subtitles) from bluray once extracted with mkvextract and converting them to DVD subs (idx sub) format. So looks like this is 100% Mac process now. Plus new makemkv version just released allows extraction of only forced subs so it looks like it's very mature now.
mrbass,
I am not so familiar with Terminal. What should I add on the command string in Terminal to point the movies files to an external hard drive? Please I need I help... My mind is exploding already...
Thanks
rikitik:-)

mrbass
Posts: 35
Joined: Tue Dec 15, 2009 3:10 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by mrbass » Tue Feb 16, 2010 11:54 pm

type
cd /V
then hit TAB key which will list
cd /Volumes/
hit TAB key again and it'll show you your HD label or any network shares you are connected to in Finder.
type first letter (remember it's case sEnSitive) and hit TAB again to complete.

in my case it is
cd /Volumes/1TB/

tdtran1025
Posts: 25
Joined: Mon Apr 19, 2010 9:30 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by tdtran1025 » Thu Jul 22, 2010 2:32 am

rmbass,
You wrote:
"/Applications/Mkvtoolnix.app/Contents/MacOS/mkvextract tracks /Volumes/movies/movie.mkv 5:5.sup 6:6.sup 7:7.sup 8:8.sup 9:9.sup 10:10.sup 11:11.sup"

I followed the the command line in conjunction with what you posted onscreen. I got all kinds of syntax errors in Terminal. What I don't understand is arguments after the mkvextract command are. Could you expand on this?

mrbass
Posts: 35
Joined: Tue Dec 15, 2009 3:10 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by mrbass » Thu Jul 22, 2010 9:07 pm

"mkvmerge" -o "/Users/maya/Movies/22/title01 (1).mkv" "--language" "1:eng" "--default-track" "1:yes" "--forced-track" "1:no" "--display-dimensions" "1:1920x1080" "--language" "2:eng" "--track-name" "2:3/2+1" "--default-track" "2:yes" "--forced-track" "2:no" "--language" "3:eng" "--default-track" "3:yes" "--forced-track" "3:no" "--language" "5:eng" "--default-track" "5:no" "--forced-track" "5:no" "--language" "7:fra" "--default-track" "7:no" "--forced-track" "7:no" "--language" "9:spa" "--default-track" "9:no" "--forced-track" "9:no" "--language" "11:por" "--default-track" "11:no" "--forced-track" "11:no" "--language" "13:zho" "--default-track" "13:no" "--forced-track" "13:no" "--language" "15:zho" "--default-track" "15:no" "--forced-track" "15:no" "--language" "17:ind" "--default-track" "17:no" "--forced-track" "17:no" "--language" "19:kor" "--default-track" "19:no" "--forced-track" "19:no" "--language" "21:tha" "--default-track" "21:no" "--forced-track" "21:no" "--language" "23:spa" "--default-track" "23:no" "--forced-track" "23:no" "--language" "25:por" "--default-track" "25:no" "--forced-track" "25:no" "--language" "27:kor" "--default-track" "27:no" "--forced-track" "27:no" "-a" "2" "-d" "1" "-s" "3,5,7,9,11,13,15,17,19,21,23,25,27" "-T" "--no-global-tags" "/Users/maya/Movies/22/title01.mkv" "--track-order" "0:1,0:2,0:3,0:5,0:7,0:9,0:11,0:13,0:15,0:17,0:19,0:21,0:23,0:25,0:27"
Above is my command line from MKVMerge GUI (mkvtoolnix). Hopefully it gives you better idea of syntax or confuses you even more..hehehe.

Basically after the mkvextract tracks command you specify PATH TO YOUR MOVIE and movie.mkv file and which subtitle tracks you wish to extract. So for instance 5:5.sup. 5 is saying track 5 is a subtitle ID number and 5.sup is just name of file you are giving it. It could be 5eng.sup or 5english.sup whatever you wish to name it. The track # must correspond to the subtitle track of the mkv obviously.

Still hoping wdtv live player gets PGS support but so far only seen about 4 or 5 mostly Chinese ones that have PGS playback support. VLC has it and handbrake seems won't get it till next year sometime 2011 as it's been delayed. So it's either this way or download SRTs from internet.

Here's another example just did this right now.
Image

Code: Select all

/Applications/Mkvtoolnix.app/Contents/MacOS/mkvextract tracks Movies/22/title01.mkv 3:3.sup 5:5.sup 7:7.sup
this is the entire command used.

Code: Select all

/Applications/Mkvtoolnix.app/Contents/MacOS/mkvextract
this is an application included in Mkvtoolnix which extracts tracks from MKV files which your running by specifying location of it.

Code: Select all

 tracks 
tracks is an option of mkvextract telling it your gonna specify which tracks to extract form mkv file.

Code: Select all

 Movies/22/title01.mkv 
this is the movie which is called title01.mkv and the path where it's located.

Code: Select all

3:3.sup 5:5.sup 7:7.sup
3:3.sup 3 is ID of track and 3.sup is name I chose to give it.

tdtran1025
Posts: 25
Joined: Mon Apr 19, 2010 9:30 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by tdtran1025 » Thu Jul 22, 2010 9:51 pm

mrbass

I figured it out. But I wonder why the author had everything there in place in the application package( I inspected it), yet he didn't go the last mile to incorporate the demux(extract) radio button in the user interface.
Anyway, this command line process is very prone to errors with my bad eyesight, but, nonetheless, beats rebooting into Windows.
Thank you for spreading the tips.

mrbass
Posts: 35
Joined: Tue Dec 15, 2009 3:10 pm

Re: Jan 30, 2010 can extract PGS subs from mkv

Post by mrbass » Fri Jul 23, 2010 12:20 am

in Terminal app increased font size to like 14 pts or something. Everything is TAB TAB TAB...after typing first or second letter (remember case sensitive) so impossible to make typos pretty much.

Post Reply