[MPlayer-users] extracting subtitles

Raphael mencoder at lesshaste.plus.com
Sat Mar 25 18:20:36 CET 2006


Hi,

I am trying to extract subtitles from a dvd. The manual says I can see
which ones are available with mplayer -v.

So I did mplayer -v dvd://  but I can't see the available subtitles
anywhere.  It says

"[open] number of subtitles on disk: 0" which makes no sense as the film
is in French with subtitles.

Also I get


"Please send bug report - no VTS_TMAPT ??"


So I blindly tried

 mencoder dvd:// -nosound -ovc frameno -vobsubout subtitles
-vobsuboutindex 0 -sid 2 -o /dev/null

but that doesn't seem to extract the subtitles. I end up with


-rw-r--r--   1 fred users        553 Mar 25 17:04 subtitles.idx
-rw-r--r--   1 fred users          0 Mar 25 16:41 subtitles.sub

Any ideas?

Raphael


Here is the full output


   1.
      mplayer -v dvd://
   2.
      MPlayer dev-CVS-060323-22:11-3.4.4 (C) 2000-2006 MPlayer Team
   3.
      titCPU: Advanced Micro Devices Athlon 64 Newcastle,Winchester,San
      Diego,Venice; Sempron Palermo (
   4.
      Family: 15, Stepping: 0)
   5.
      CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
   6.
      Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
   7.
       
   8.
       
   9.
      get_path('codecs.conf') -> '/home/raph/.mplayer/codecs.conf'
  10.
      Reading /home/raph/.mplayer/codecs.conf: 91 audio & 205 video codecs
  11.
      CommandLine: '-v' 'dvd://'
  12.
      init_freetype
  13.
      get_path('font/font.desc') -> '/home/raph/.mplayer/font/font.desc'
  14.
      Font /home/raph/.mplayer/font/font.desc loaded successfully! (206
      chars)
  15.
      Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
  16.
      Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
  17.
      Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your
      system startup scripts.
  18.
      Using nanosleep() timing
  19.
      get_path('input.conf') -> '/home/raph/.mplayer/input.conf'
  20.
      Can't open input config file /home/raph/.mplayer/input.conf: No
      such file or directory
  21.
      Can't open input config file /usr/local/etc/mplayer/input.conf: No
      such file or directory
  22.
      Falling back on default (hardcoded) input config
  23.
      get_path('.conf') -> '/home/raph/.mplayer/.conf'
  24.
      Playing dvd://.
  25.
      get_path('sub/') -> '/home/raph/.mplayer/sub/'
  26.
      URL: dvd://
  27.
      Reading disc structure, please wait...
  28.
      There are 2 titles on this DVD.
  29.
      There are 23 chapters in this DVD title.
  30.
      There are 1 angles in this DVD title.
  31.
      Please send bug report - no VTS_TMAPT ??
  32.
      DVD successfully opened.
  33.
      [open] audio stream: 0 audio format: ac3 (stereo) language: en
      aid: 128
  34.
      [open] number of audio channels on disk: 1.
  35.
      [open] number of subtitles on disk: 0
  36.
      DVD start cell: 0  pack: 0x0-0xB0BF 
  37.
      DVD start=0 end=1996787 
  38.
      STREAM: [null] dvd://
  39.
      STREAM: Description: DVD stream
  40.
      STREAM: Author:
  41.
      STREAM: Comment:
  42.
      DVD Seek! lba=0x0  cell=0  packs: 0x0-0xB0BF 
  43.
      Angle-seek synced by cell/vob IDN search! 
  44.
      Checking for YUV4MPEG2
  45.
      ASF_check: not ASF guid!
  46.
      Checking for NuppelVideo
  47.
      Checking for REAL
  48.
      Checking for SMJPEG
  49.
      Searching demuxer type for filename dvd:// ext: (null)
  50.
      DVD Seek! lba=0x0  cell=0  packs: 0x0-0xB0BF 
  51.
      Angle-seek synced by cell/vob IDN search! 
  52.
      Checking for Nullsoft Streaming Video
  53.
      DVD Seek! lba=0x0  cell=0  packs: 0x0-0xB0BF 
  54.
      Angle-seek synced by cell/vob IDN search! 
  55.
      Checking for MOV
  56.
      Checking for VIVO
  57.
      header block 1 size: 0
  58.
      Checking for PVA
  59.
      Checking for MPEG-TS...
  60.
      TRIED UP TO POSITION 66951, FOUND 47, packet_size= 0, SEEMS A TS? 0
  61.
      DVD Seek! lba=0x20  cell=0  packs: 0x0-0xB0BF 
  62.
      Angle-seek synced by cell/vob IDN search! 
  63.
      DVD Seek! lba=0x0  cell=0  packs: 0x0-0xB0BF 
  64.
      Angle-seek synced by cell/vob IDN search! 
  65.
      Checking for LMLM4 Stream Format
  66.
      Invalid packet in LMLM4 stream: ch=0 size=1140851708
  67.
      LMLM4 Stream Format not found
  68.
      system stream synced at 0xD (13)!
  69.
      ==> Found video stream: 0
  70.
      DVD Seek! lba=0xF3B7F  cell=11  packs: 0xEB9AF-0xFDA75 
  71.
      Angle-seek synced by cell/vob IDN search! 
  72.
      ==> Found audio stream: 128
  73.
      DVD Seek! lba=0x1E76FE  cell=21  packs: 0x1CFF73-0x1E77F3 
  74.
      Angle-seek synced by cell/vob IDN search! 
  75.
      --- END OF CELL !!! ---
  76.
      MPEG Stream reached EOF
  77.
      ds_fill_buffer: EOF reached (stream: video) 
  78.
      DVD Seek! lba=0x0  cell=0  packs: 0x0-0xB0BF 
  79.
      Angle-seek synced by cell/vob IDN search! 
  80.
      MPEG-PS file format detected.
  81.
      Searching for sequence header... OK!
  82.
      VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  8500.0 kbps
      (1062.5 kbyte/s)
  83.
      [V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00 
      ftime:=0.0400
  84.
      get_path('sub/') -> '/home/raph/.mplayer/sub/'
  85.
      get_path('default.sub') -> '/home/raph/.mplayer/default.sub'
  86.
      File not found: '/home/raph/.mplayer/default.sub'
  87.
      Failed to open /home/raph/.mplayer/default.sub
  88.
      ==========================================================================
  89.
      Opening audio decoder: [liba52] AC3 decoding with liba52
  90.
      dec_audio: Allocating 3840 bytes for input buffer.
  91.
      dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
  92.
      Using SSE optimized IMDCT transform
  93.
      AC3: 2.0 (dolby)  48000 Hz  224.0 kbit/s
  94.
      A52 flags before a52_frame: 0x2A
  95.
      A52 flags after a52_frame: 0xA
  96.
      Using MMX optimized resampler
  97.
      AUDIO: 48000 Hz, 2 ch, s16le, 224.0 kbit/14.58% (ratio: 28000->192000)
  98.
      Selected audio codec: [a52] afm: liba52 (AC3-liba52)
  99.
      ==========================================================================
 100.
      X11 opening display: :0.0
 101.
      vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
 102.
      vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" =>
      local display)
 103.
      [x11] Detected wm supports layers.
 104.
      [x11] Detected wm supports NetWM.
 105.
      [x11] Detected wm supports FULLSCREEN state.
 106.
      [x11] Current fstype setting honours LAYER FULLSCREEN X atoms
 107.
      [xv common] Drawing colorkey manually.
 108.
      [xv common] Using colorkey from Xv (0x00001e).
 109.
      [xv common] Maximum source image dimensions: 2048x2048
 110.
      ==========================================================================
 111.
      Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
 112.
      VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
 113.
      Trying filter chain: vo
 114.
      Could not find matching colorspace - retrying with -vf scale...
 115.
      Opening video filter: [scale]
 116.
      SwScale params: -1 x -1 (-1=no scaling)
 117.
      Trying filter chain: scale vo
 118.
      The selected video_out device is incompatible with this codec.
 119.
      Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
 120.
      VDecoder init failed :(
 121.
      Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
      libmpeg2-v0.4.0b
 122.
      Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
 123.
      ==========================================================================
 124.
      Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
 125.
      [libaf] Adding filter dummy
 126.
      [dummy] Was reinitialized: 48000Hz/2ch/s16le
 127.
      [dummy] Was reinitialized: 48000Hz/2ch/s16le
 128.
      alsa-init: requested format: 48000 Hz, 2 channels, 9
 129.
      alsa-init: using ALSA 1.0.11rc4
 130.
      alsa-init: setup for 1/2 channel(s)
 131.
      alsa-init: using device default
 132.
      alsa-init: pcm opend in blocking mode
 133.
      alsa-init: chunksize set to 1024
 134.
      alsa-init: fragcount=16
 135.
      alsa-init: got buffersize=65536
 136.
      alsa-init: got period size 1024
 137.
      alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit
      Little Endian
 138.
      AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
 139.
      AO: Description: ALSA-0.9.x-1.x audio output
 140.
      AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de
      <mailto:joy at streamminister.de>>
 141.
      AO: Comment: under developement
 142.
      Building audio filter chain for 48000Hz/2ch/s16le ->
      48000Hz/2ch/s16le...
 143.
      [dummy] Was reinitialized: 48000Hz/2ch/s16le
 144.
      [dummy] Was reinitialized: 48000Hz/2ch/s16le
 145.
      Starting playback...
 146.
      VDec: vo config request - 720 x 576 (preferred colorspace: Planar
      YV12)
 147.
      Trying filter chain: vo
 148.
      VDec: using Planar YV12 as output csp (no 0)
 149.
      Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
 150.
      VO Config (720x576->768x576,flags=0,'MPlayer',0x32315659)
 151.
      VO: [xv] 720x576 => 768x576 Planar YV12
 152.
      VO: Description: X11/Xv
 153.
      VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de
      <mailto:kraxel at goldbach.in-berlin.de>> and others
 154.
      Xvideo image format: 0x32595559 (YUY2) packed
 155.
      Xvideo image format: 0x59565955 (UYVY) packed
 156.
      Xvideo image format: 0x32315659 (YV12) planar
 157.
      Xvideo image format: 0x30323449 (I420) planar
 158.
      using Xvideo port 59 for hw scaling
 159.
      [xv] dx: 0 dy: 0 dw: 768 dh: 614
 160.
      *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
 161.
      [xv] dx: 0 dy: 0 dw: 768 dh: 614
 162.
      *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
 163.
      *** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
 164.
      Uninit audio filters... 0.034 ct:  0.054  32/ 32 11% 36%  0.7% 0 0
 165.
      [libaf] Removing filter dummy
 166.
      uninit audio: liba52
 167.
      uninit video: libmpeg2
 168.
      alsa-uninit: pcm closed
 169.
      vo: uninit ...





More information about the MPlayer-users mailing list