LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   need help with importing subtitles (https://www.linuxquestions.org/questions/linux-software-2/need-help-with-importing-subtitles-351243/)

vegetassj2 08-08-2005 02:13 PM

need help with importing subtitles
 
hi,

I have ripped some DVDs (to be sure that I have a backup if they are broken) but I need subtitles. So I found them.
My question is: HOW do I import them in a media player?
I've tried Xine but it got stuck when I chose 'select'
and I've tried MPlayer but when I play the video it says:
error opening/initliazing the video_out (-vo) device

The other players (like Kaboodle, Noatun,...) don't support importing subtitles.
So please can anyone find a solution for one or both problems?

thnx:)

acid_kewpie 08-09-2005 07:45 AM

in mplayer you'd use a -subfile parameter.. quite how you manage to get a -vo error i've no idea... you do still need to actually play the media file too...

vegetassj2 08-09-2005 12:00 PM

It didn't work with MPlayer when I used the version you can select from the start menu.
But when I open it in a terminal:
Code:

$ mplayer -sub The.Matrix.1999.Ned_DVD.srt My\ Documents/movies/The\ Matrix.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MPlayer 1.0pre7-3.4.3 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing My Documents/movies/The Matrix.avi.
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO:  [DIV3]  512x272  24bpp  23.976 fps  749.9 kbps (91.5 kbyte/s)
SUB: Detected subtitle file format: subviewer
SUB: Read 861 subtitles.
SUB: Adjusted 5 subtitle(s).
SUB: added subtitle file (1): The.Matrix.1999.Ned_DVD.srt
vo: X11 running at 1152x864 with depth 24 and 32 bpp (":0.0" => local display)
vo_xvmc: X-Video extension 2.2
vo_xvmc: No X-Video MotionCompensation Extension on :0.0
Xv: could not grab port 53
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 512 x 272 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 512x272 => 512x272 Planar YV12
V: 127.3 3052/3052  3%  0%  0.0% 0 0

MPlayer interrupted by signal 2 in module: sleep_timer
$

it works fine ;)

I got it from your -subfile. I used:

Code:

$ mplayer --help
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MPlayer 1.0pre7-3.4.3 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

Usage:  mplayer [options] [url|path/]filename

Basic options: (complete list in the man page)
 -vo <drv[:dev]>  select video output driver & device ('-vo help' for a list)
 -ao <drv[:dev]>  select audio output driver & device ('-ao help' for a list)
 vcd://<trackno>  play (S)VCD (Super Video CD) track (raw device, no mount)
 dvd://<titleno>  play DVD title from device instead of plain file
 -alang/-slang    select DVD audio/subtitle language (by 2-char country code)
 -ss <timepos>    seek to given (seconds or hh:mm:ss) position
 -nosound        do not play sound
 -fs              fullscreen playback (or -vm, -zoom, details in the man page)
 -x <x> -y <y>    set display resolution (for use with -vm or -zoom)
-sub <file>      specify subtitle file to use (also see -subfps, -subdelay)
 -playlist <file> specify playlist file
 -vid x -aid y    select video (x) and audio (y) stream to play
 -fps x -srate y  change video (x fps) and audio (y Hz) rate
 -pp <quality>    enable postprocessing filter (details in the man page)
 -framedrop      enable frame dropping (for slow machines)

Basic keys: (complete list in the man page, also check input.conf)
 <-  or  ->      seek backward/forward 10 seconds
 up or down      seek backward/forward  1 minute
 pgup or pgdown  seek backward/forward 10 minutes
 < or >          step backward/forward in playlist
 p or SPACE      pause movie (press any key to continue)
 q or ESC        stop playing and quit program
 + or -          adjust audio delay by +/- 0.1 second
 o                cycle OSD mode:  none / seekbar / seekbar + timer
 * or /          increase or decrease PCM volume
 z or x          adjust subtitle delay by +/- 0.1 second
 r or t          adjust subtitle position up/down, also see -vf expand

 * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *

and the part I put in bold jumped in my eyes.

so thanks for the tip :p


All times are GMT -5. The time now is 03:50 AM.