A friend of mine give me a ogm file with this features:fp2099 wrote:ogm and avi don't have subtitles included..
[EDIT:] don't know if at this point of development ogm supports chapter navigation.
Code: Select all
mplayer -v <file>Code: Select all
mplayer -sid "number obtained from the previous" fileCode: Select all
mplayer -v 01__anim.ogmCode: Select all
==> Found video stream: 0
OGG stream 0 is video (new hdr)
======= VIDEO Format ======
biSize 40
biWidth 576
biHeight 432
biPlanes 1
biBitCount 24
biCompression 1145656920='XVID'
biSizeImage 746496
===========================
==> Found audio stream: 1
OGG : stream 1 is vorbis
==> Found audio stream: 2
OGG : stream 2 is vorbis
OGG stream 3 is text
OGG demuxer : found 2 audio streams, 1 video stream and 1 text stream
OGG file format detected.
[V] filefmt:18 fourcc:0x44495658 size:576x432 fps:25.00 ftime:=0.0400
get_path('sub/') -> '/home/micron/.mplayer/sub/'
get_path('default.sub') -> '/home/micron/.mplayer/default.sub'
==========================================================================
Code: Select all
mplayer -sid 3 01__anim.ogmCode: Select all
Subtitles requested but not found.Code: Select all
[mkv] Track ID 1: video (V_MS/VFW/FOURCC), -vid 0
[mkv] Track 1 seems to be ok.
[mkv] Track ID 2: audio (A_VORBIS), -aid 0, -alang eng
[mkv] Track 2 seems to be ok.
[mkv] Track ID 3: subtitles (S_TEXT/SSA), -sid 0, -slang por
[mkv] Track 3 seems to be ok.
[mkv] Will play video track 1
I've tried without success...fp2099 wrote:That wasn't the output i wanted but nptry:
mplayer -sid 0 01__anim.ogm
This loads the subtitles on position 0 (sid is subtitle related not audio or videoso 3rd track is the first for subtitles)
Code: Select all
mplayer -ao arts -sid 0 01__anim.ogm
MPlayer 1.0pre2-3.3.1 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices Athlon 4 /Athlon MP/XP Palomino 1534 MHz (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
SSE supported but disabled
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx
Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/micron/.mplayer/config
Reading /home/micron/.mplayer/codecs.conf: Can't open '/home/micron/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 61 audio & 157 video codecs
font: can't open file: /home/micron/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Using usleep() timing
Can't open input config file /home/micron/.mplayer/input.conf: No such file or directory
Input config file /usr/share/mplayer/input.conf parsed: 52 binds
Playing 01__anim.ogm
Cache fill: 0.00% (0 bytes) OGG file format detected.
==========================================================================
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 14000->192000 (112.0 kbit)
Selected audio codec: [vorbis] afm:libvorbis (OggVorbis Audio Decoder)
==========================================================================
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [arts] Connected to sound server
AO: [arts] Stream opened
AO: [arts] buffer size: 20480
AO: [arts] packet size: 2048
AO: [arts] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag
VDec: vo config request - 576 x 432 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 576x432 => 576x432 Planar YV12
A: 2.8 V: 2.8 A-V: 0.013 ct: 0.052 70/ 70 10% 20% 1.4% 0 0 97%
Subtitles requested but not found.I don't want to make you crazy!!fp2099 wrote:U are killing me here..right now i don't know if the problem is with mplayer or with the file... try sid 1 if that doesn't work i will grab a gun and kill me.
Yes I've triedfp2099 wrote:U tried sid 1? My problem is that i don't have a ogm with sub included I usually use an external file. But i tested this procedure with a mkv with sub included and it worked fine...
Code: Select all
mplayer -sid 1 01__anim.ogm Code: Select all
mplayer -sid 0 01__anim.ogm I was supposing this...Tuna wrote:the oggfile format is not 100% finished afaik. monty from xiph is still working on that. the ogm currently flying around are made with the windows direct show filter made by tobias or moritz's ogmmerge. still i dont know how 'official' that is or if the mplayer/xine guys gave any effort to _fully_ support these files.

Code: Select all
emerge ogmtoolsCode: Select all
ogmdemux -nv -na file.ogmCode: Select all
mplayer -aid 2 -sub file.ogm-t1.srt file.ogm