[MPlayer-dev-eng] DVD subtitle ripping getting there
Kim Minh Kaplan
kmkaplan at selfoffice.com
Wed Jul 10 15:34:09 CEST 2002
Felix Buenemann writes:
> I finally found the time to test this out on linux and windows and commited it
> to cvs.
I intended to wait for the release of MPlayer before commiting this.
Oh well...
> However there are still some problems:
>
> First somehow your code generated multiple "id: [...]" entries, like this:
> ---snip---
> id: en, index: 0
> timestamp: 00:00:00:919, filepos: 000000096
> timestamp: 00:00:00:919, filepos: 000000896
> timestamp: 00:00:03:359, filepos: 000001096
>
> id: en, index: 0
> timestamp: 00:00:00:919, filepos: 000001896
> timestamp: 00:00:00:919, filepos: 000002096
> timestamp: 00:00:03:359, filepos: 000002896
> timestamp: 00:00:05:480, filepos: 000003096
> [...]
> ---snip---
This is probably due to you running mencoder several times without
removing the .idx file between each run. The reason for mencoder not
removing the file automatically is that one can put several languages
in a single .idx/.sub file. So the idea is that you run mencoder to
rip each one in turn ("mencoder -sid 0 -vobsuboutindex 0" then
"mencoder -sid 1 -vobsuboutindex 1" etc...) and mencoder will just
append the new language to the existing files.
> I encoded chapter 4 from german r2 Star Wars EP1 dvd 1 main movie like this:
> mencoder -vop scale=512:224,crop=718:436:2:70 -sws 6 -dvd 1 -alang en -sid 0
> -chapter 4-4 -lavcopts vcodec=mpeg4:vhq:v4mv:vqmin=2:vbitrate=900:vme=4
> -lameopts q=5 -o /mnt/smb1/dvdrip/menctest/swep1vobsub.avi -vobsubout
> /mnt/smb1/dvdrip/menctest/swep1vobsub -ovc lavc -oac mp3lame
>
> At the beginning of encoding there where some duplicated frames:
> ---snip---
> Writing AVI header...
> Pos: 0.9s 22f ( 1%) 14fps Trem: 1min 9mb A-V:-0.084 [0:119]
> duplicate 1 frame(s)!!!
> Pos: 1.3s 32f ( 1%) 15fps Trem: 2min 10mb A-V:-0.084 [863:119]
> duplicate 1 frame(s)!!!
> Pos: 1.8s 42f ( 1%) 16fps Trem: 2min 11mb A-V:-0.084 [811:119]
> ---snip---
Were those duplicate frames due to vobsub ripping or are they also
here when you don't rip subs? I have not changed things in fps
calculation.
Note that I usually encode the movie normally then rip subtitles with
something like:
seq 0 5 | while read n; do mencoder -o /dev/null -ovc frameno -oac copy swep1.mpg -vobsubout swep1 -sid $n -vobsuboutindex $n; done
Off course, if you rip directly from DVD it might prove a bit
longish...
> Secondly, windows VobSub doesn't detect mencoder-generated vobsub
> [...] I think the problem is the actual .sub file.
>
> Maybe I or you should ask gabest for help on this topic...
Indeed, mplayer's vobsub code is much more tolerent than Vobsub's. I
have discussed a number of the problems with Gabest and I think that
my new code solves them all and outputs Vobsub compatible subtitles.
I'll do a commit soon and inform you.
Kim Minh.
More information about the MPlayer-dev-eng
mailing list