[MPlayer-users] Re: time-adjust vobsub subtitles?

Gábor Farkas gabor at nekomancer.net
Mon May 16 23:08:49 CEST 2005


Guillaume POIRIER wrote:
> Hi,
> 
> On 5/16/05, Gábor Farkas <gabor at nekomancer.net> wrote:
> 
>>Gábor Farkas wrote:
>>
>>>hi,
>>>
>>>i have a video + vobsub subtitles (idx+sub files)..
>>>
>>>the problem is the following:
>>>
>>>for the first half of the video, the subtitles match perfectly.
>>>and for the second half, i have to shift the subtitles by 8seconds.
>>>(i have to use "-subdelay -8").
>>>
>>>question:
>>>are there any programs that can adjust the time-info in vobsub files?
>>>preferably linux programs, but windows ones are fine too.
>>
>>ok, i fixed the problem.
>>
>>i didn't realize that the .idx file is a simple plaintext file..
>>
>>so with a little python text-processing, i adjusted it.
> 
> 
> Could you maybe post it here? It might be useful to other people...
> 

ok, here it is..it's really nothing special.. i hope it will be useful 
to someone..

usage:

vobshift.py in.idx out.idx +8.3
this will shift the time by 8.3 seconds...


bye,
gabor
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vobshift.py
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20050516/af8ea7b3/attachment.txt>


More information about the MPlayer-users mailing list