[Mplayer-dvb] Encode subtitles

Nico nsabbi at tiscali.it
Mon Jan 19 14:54:27 CET 2004


you had better use -slang fr rather than -sid <SID>

tarass at club-internet.fr wrote:

>
>
> Hello,
>
> I know how to encode subtitles from a "real" DVD.
> But I just made a DVD with dvdauthor with subtitles in it, I can play 
> them with mplayer
>
> mplayer -sid 0 -dvd-device ./DVD dvd://1
>
> But I can't mencode them.
> Usually I use this script :
>
> ############
>
> !/bin/bash
>
> # langue parlée
> audiolang='en'
> piste='-dvd-device ./DVD dvd://1'
> bitrate='1200'
> crop='720:436:0:70'
> sid='0'
> temps='-ss 100 -frames 500'
>
> mencoder -vobsubout soustitres -vobsuboutindex 0 -sid $sid\
> -o frameno.avi $temps -ovc frameno -oac mp3lame -lameopts br:br=320 
> $piste
>
> nice -19 mencoder -ovc lavc \
> -lavcopts 
> vcodec=mpeg4:vbitrate=$bitrate:vhq:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:autoaspect:vpass=1\ 
>
> -oac copy -o /dev/null -vf crop=$crop $temps $piste
>
> nice -19 mencoder -ovc lavc \
> -lavcopts 
> vcodec=mpeg4:vbitrate=$bitrate:vhq:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:autoaspect:vpass=2\ 
>
> -vobsubout sous-titres -vobsuboutindex 0 -sid $sid\
> -oac copy -o film.avi -vf crop=$crop $temps $piste
>
>
> ################
>
>
> Here is what mplayer -v said about the created DVD:
>
> MPlayer dev-CVS-031130-11:22-3.2.2 (C) 2000-2003 MPlayer Team
>
> CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1468 MHz 
> (Family: 6, Stepping: 2)
> Detected cache-line size is 64 bytes
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
>
> Reading config file /usr/local/etc/mplayer/mplayer.confReading config 
> file /home/nico/.mplayer/config
> Reading /home/nico/.mplayer/codecs.conf: Reading 
> /usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf.
> CommandLine: '-dvd-device' './DVD/' 'dvd://' '-v' '-frames' '0'
> get_path('font/font.desc') -> '/home/nico/.mplayer/font/font.desc'
> Font /home/nico/.mplayer/font/font.desc loaded successfully! (206 chars)
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Using Linux hardware RTC timing (1024Hz).
> get_path('input.conf') -> '/home/nico/.mplayer/input.conf'
> get_path('.conf') -> '/home/nico/.mplayer/.conf'
>
> Playing dvd://.
> Reading disc structure, please wait...
> get_path('DVDKeys') -> '/home/nico/.mplayer/DVDKeys'
> There are 1 titles on this DVD.
> There are 1 chapters in this DVD title.
> There are 1 angles in this DVD title.
> get_path('DVDKeys') -> '/home/nico/.mplayer/DVDKeys'
> get_path('DVDKeys') -> '/home/nico/.mplayer/DVDKeys'
> get_path('DVDKeys') -> '/home/nico/.mplayer/DVDKeys'
> get_path('DVDKeys') -> '/home/nico/.mplayer/DVDKeys'
> DVD successfully opened.
> [open] audio stream: 0 audio format: mpeg1 (stereo) language: en aid: 0
> [open] number of audio channels on disk: 1.
> [open] subtitle ( sid ): 0 language: en
> [open] number of subtitles on disk: 1
> DVD start cell: 0  pack: 0x0-0x17F14D
> DVD start=0 end=1569101
> CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0
>  Cache fill:  0,00% (0 bytes)    Checking for YUV4MPEG2
> DEMUXER: freeing demuxer at 0x86ce040
> ASF_check: not ASF guid!
> DEMUXER: freeing demuxer at 0x86ce040
> Checking for NuppelVideo
> DEMUXER: freeing demuxer at 0x86ce040
> Checking for REAL
> DEMUXER: freeing demuxer at 0x86ce040
> Checking for SMJPEG
> DEMUXER: freeing demuxer at 0x86ce040
> DEMUXER: freeing demuxer at 0x86ce9e0
> Searching demuxer type for filename dvd:// ext: (null)
> Checking for MOV
> DEMUXER: freeing demuxer at 0x86ce9e0
> Checking for VIVO
> header block 1 size: 0
> DEMUXER: freeing demuxer at 0x86ce9e0
> DEMUXER: freeing demuxer at 0x86ce9e0
> DEMUXER: freeing demuxer at 0x86ce9e0
> DEMUXER: freeing demuxer at 0x86ce9e0
> DEMUXER: freeing demuxer at 0x86ce9e0
> DEMUXER: freeing demuxer at 0x86ce9e0
> DEMUXER: freeing demuxer at 0x86ce9e0
> Checking for PVA
> DEMUXER: freeing demuxer at 0x86ce9e0
> Checking for MPEG-TS...
> TRIED UP TO POSITION 65841, FOUND 47, packet_size= 0, SEEMS A TS? 0
> DEMUXER: freeing demuxer at 0x86ce9e0
> system stream synced at 0xD (0)!
> ==> Found audio stream: 0
> ==> Found video stream: 0
> MPEG-PS file format detected.
> Searching for sequence header... OK!
> VIDEO:  MPEG2  720x576  (aspect 2)  25,000 fps  15000,0 kbps (1875,0 
> kbyte/s)
> [V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25,00  ftime:=0,0400
> get_path('sub/') -> '/home/nico/.mplayer/sub/'
> get_path('default.sub') -> '/home/nico/.mplayer/default.sub'
> ========================================================================== 
>
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
> mp3lib: made decode tables with MMX optimization
> mp3lib: using 3DNow!Ex optimized decore!
> MP3lib: init layer2&3 finished, tables done
>  MPEG 1.0, Layer II, 48000 Hz 256 kbit Stereo, BPF: 768
> Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
> AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 32000->192000 (256,0 kbit)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ========================================================================== 
>
> ========================================================================== 
>
> Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
> Trying filter chain: vo
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> SwScale params: -1 x -1 (-1=no scaling)
> Trying filter chain: scale vo
> VDecoder init failed :(
> Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
> Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
> ========================================================================== 
>
> Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
> [libaf] Adding filter dummy
> [dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
> and bps = 2
> AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
> AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
> ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
> audio_setup: using '/dev/dsp' dsp device
> audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: 
> Signed 16-bit (Little-Endian))
> audio_setup: using 2 channels (requested: 2)
> audio_setup: using 48000 Hz samplerate (requested: 48000)
> audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
> AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
> AO: Description: OSS/ioctl audio output
> AO: Author: A'rpi
> Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
> [dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
> and bps = 2
> [dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 
> and bps = 2
> Starting playback...
>
> Uninit audio filters...
> [libaf] Removing filter dummy
> uninit audio: mp3lib
> uninit video: libmpeg2
> DEMUXER: freeing demuxer at 0x86ce9e0
> DEMUXER: freeing sh_audio at 0x86d13d8
> DEMUXER: freeing sh_video at 0x86d1c70
> vo: uninit!
> vo: x11 uninit called but X11 not inited..
>
> Exiting... (End of file)
>
>
> Thank you a little help.
>
> Nicolas.
>
>





More information about the MPlayer-dvb mailing list