[MPlayer-users] sub to srt

zelos zelos at wanadoo.fr
Fri Jul 2 15:20:04 CEST 2004


Le ven 02/07/2004 à 14:48, shevek a écrit :
> On Fri, 02 Jul 2004 14:43:12 +0200, zelos <zelos at wanadoo.fr> wrote:
> > 
> > Le ven 02/07/2004 à 14:15, Jean-Olivier Irisson a écrit :
> > > zelos wrote:
> > > > Hi!
> > > >
> > > > Is there any way to convert a *.sub file to SubViewer format(*.srt)?
> > > >
> > > > Thanks,
> > >
> > > it's in the man page and in the docs ;-)
> > >
> > >  > mplayer movie.avi -sub yoursub.sub -dumpsrtsub
> > >
> > > Creates a dumpsub.srt file in  the  current directory.
> > 
> > Of course, but it's a bit too long 'cause I have to play the whole
> > movie. Any way to skip viewing the movie and speed up the dumping
> > process?
> > 
> > --
> > zelos <zelos at wanadoo.fr>
> > 
> > 
> > 
> > signature.asc - 1K
> > noname - 1K Download 
> > 
> you dont really have to see the movie. just stop it as soon as it
> starts and tha subtile will be complete.

I forgot: this one as 2 audio channels...
The result is as follow:

mplayer -sub my_movie-cd_1.sub -slang en -aid 2 my_movie-cd_1.avi -dumpsrtsub
MPlayer 1.0pre4-3.3.2 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1793 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/jp/.mplayer/config
Reading /home/jp/.mplayer/codecs.conf: 66 audio & 176 video codecs
Using Linux hardware RTC timing (1024Hz).
Input config file /home/jp/.mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.

Playing my_movie-cd_1.avi.
Selected VOBSUB language: 0 language: enen
AVI file format detected.
VIDEO:  [DIVX]  624x336  24bpp  25,000 fps  956,1 kbps (116,7 kbyte/s)
Clip info:
 Software: transcode-0.6.12
SUB: Could not determine file format
Cannot load subtitles: my_movie-cd_1.sub

I don't understand! I can pplay the movie with subtitles correctly with:
mplayer -sub my_movie-cd_1.sub -slang en my_movie-cd_1.avi


Any more solution?




More information about the MPlayer-users mailing list