Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

ogm full support

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
32 posts
  • 1
  • 2
  • Next
Author
Message
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

ogm full support

  • Quote

Post by micron » Sat Nov 08, 2003 12:33 pm

How can I navigate through ogm chapters? And how can I see their subtitles?
The only thing I'm able to do is switching between audio tracks.
I've tried mplayer and xine but none of them fully support ogm files (as I can see, I hope I'm wrong... :rool:)
Any suggestions:?:
~ "Progress is merely a realisation of utopias" ~
Top
fp2099
Apprentice
Apprentice
User avatar
Posts: 261
Joined: Wed Oct 08, 2003 12:15 pm
Contact:
Contact fp2099
Website

err...

  • Quote

Post by fp2099 » Sat Nov 08, 2003 3:57 pm

ogm and avi don't have subtitles included.. you can load their subtitles using xine or mplayer loading subtitles from an external file... srt and sub are very well know subtitles formats.
AFAIK matroska is the only media container supporting subtitles

[EDIT:] don't know if at this point of development ogm supports chapter navigation.
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

Re: err...

  • Quote

Post by micron » Sat Nov 08, 2003 4:41 pm

fp2099 wrote:ogm and avi don't have subtitles included..
[EDIT:] don't know if at this point of development ogm supports chapter navigation.
A friend of mine give me a ogm file with this features:
-video strem: Xvid
-#1 audio stream: italian, ogg
-#2 audio steam: japan, ogg
-italian subtitles
-chapter navigation

I was able to see all these features working under windows, using bsplayer. My friend said he had to install onlya codec.
How can we do this under linux? :?
~ "Progress is merely a realisation of utopias" ~
Top
fp2099
Apprentice
Apprentice
User avatar
Posts: 261
Joined: Wed Oct 08, 2003 12:15 pm
Contact:
Contact fp2099
Website

Sry. My mistake

  • Quote

Post by fp2099 » Sat Nov 08, 2003 10:01 pm

my mystake. yes ogm does support subtitles. try this:

Code: Select all

mplayer -v <file>
then close check the output for sid Track ID (subtitles)

then do

Code: Select all

mplayer -sid "number obtained from the previous" file
u can use the -double switch to improve if it flickers.
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

  • Quote

Post by micron » Sun Nov 09, 2003 11:21 am

I've followed your hints:

Code: Select all

mplayer -v  01__anim.ogm
From the output message:

Code: 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'
==========================================================================
It seems that subtitles are located in the third stream, so I tried:

Code: Select all

mplayer -sid 3 01__anim.ogm
but it doesn't work... :(

Code: Select all

Subtitles requested but not found.
Any hints:?:
~ "Progress is merely a realisation of utopias" ~
Top
fp2099
Apprentice
Apprentice
User avatar
Posts: 261
Joined: Wed Oct 08, 2003 12:15 pm
Contact:
Contact fp2099
Website

  • Quote

Post by fp2099 » Sun Nov 09, 2003 9:47 pm

That wasn't the output i wanted but np :) try:

mplayer -sid 0 01__anim.ogm

This loads the subtitles on position 0 (sid is subtitle related not audio or video :) so 3rd track is the first for subtitles)

P.S. I had no ogm so i tested it with a mkv which gave me:

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
Has you can see using this output is easier, but perhaps its mkv thing.
Last edited by fp2099 on Sun Nov 09, 2003 9:52 pm, edited 1 time in total.
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

  • Quote

Post by micron » Sun Nov 09, 2003 9:52 pm

fp2099 wrote:That wasn't the output i wanted but np :) try:
Oooppss... sorry for the mistake! :roll:
Tomorrow I'll try the command, thanks! :)
~ "Progress is merely a realisation of utopias" ~
Top
Merlin-TC
l33t
l33t
User avatar
Posts: 603
Joined: Fri May 16, 2003 3:29 pm
Location: Germany

  • Quote

Post by Merlin-TC » Mon Nov 10, 2003 5:18 pm

I don't know if you are using Xine-libs but you should try "Kaffeine".
It's based on Xine has a nice (qt/kde) gui and you can choose languages and subtitles very easy and on the fly while watching.
give it a try.

emerge kaffeine ;)
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

  • Quote

Post by micron » Mon Nov 10, 2003 6:03 pm

fp2099 wrote:That wasn't the output i wanted but np :) try:

mplayer -sid 0 01__anim.ogm

This loads the subtitles on position 0 (sid is subtitle related not audio or video :) so 3rd track is the first for subtitles)
I've tried without success...
Apart some little warnig all seem right

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.
~ "Progress is merely a realisation of utopias" ~
Top
fp2099
Apprentice
Apprentice
User avatar
Posts: 261
Joined: Wed Oct 08, 2003 12:15 pm
Contact:
Contact fp2099
Website

  • Quote

Post by fp2099 » Tue Nov 11, 2003 1:30 am

U are killing me here.. 8O 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.
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

  • Quote

Post by micron » Wed Nov 12, 2003 8:57 pm

fp2099 wrote:U are killing me here.. 8O 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.
I don't want to make you crazy!! :oops:
mplayer is running fine and the ogm video is works under windows :evil:
i'm beginning to think that ogm subtitle files aren't supported under linux... :cry:
~ "Progress is merely a realisation of utopias" ~
Top
fp2099
Apprentice
Apprentice
User avatar
Posts: 261
Joined: Wed Oct 08, 2003 12:15 pm
Contact:
Contact fp2099
Website

  • Quote

Post by fp2099 » Wed Nov 12, 2003 11:37 pm

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...
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

  • Quote

Post by micron » Thu Nov 13, 2003 8:30 am

fp2099 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...
Yes I've tried

Code: Select all

 mplayer -sid 1 01__anim.ogm 
but nothing changed! it's unable to find subtitles, the errror message is the same as for

Code: Select all

 mplayer -sid 0 01__anim.ogm 
I'll try to get another ogm file..
~ "Progress is merely a realisation of utopias" ~
Top
Tuna
Guru
Guru
User avatar
Posts: 485
Joined: Fri Jul 19, 2002 5:37 pm
Location: Berlin
Contact:
Contact Tuna
Website

  • Quote

Post by Tuna » Thu Nov 13, 2003 2:39 pm

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.
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

  • Quote

Post by micron » Thu Nov 13, 2003 4:46 pm

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.
I was supposing this...
the only thing to do is... waiting :D

PS: Thanks for help fp2099!!
~ "Progress is merely a realisation of utopias" ~
Top
omega_cubed
n00b
n00b
User avatar
Posts: 5
Joined: Fri Nov 14, 2003 10:04 pm
Location: Princeton, NJ
Contact:
Contact omega_cubed
Website

Getting Subtitles and Dual Audio tracks

  • Quote

Post by omega_cubed » Fri Nov 14, 2003 10:12 pm

Ogm isn't very well supported. I just figured out how to do it about ten minutes ago, so pardon the late reply:

first,

Code: Select all

emerge ogmtools
take the file you want to watch, say file.ogm, run

Code: Select all

ogmdemux -nv -na file.ogm
That should produce a subtitle file file.ogm-t1.srt

Now, to watch it with the second language stream and the subtitle, you run

Code: Select all

mplayer -aid 2 -sub file.ogm-t1.srt file.ogm
Cheers,

W
Top
fp2099
Apprentice
Apprentice
User avatar
Posts: 261
Joined: Wed Oct 08, 2003 12:15 pm
Contact:
Contact fp2099
Website

  • Quote

Post by fp2099 » Fri Nov 14, 2003 10:19 pm

i always thought that mkv support was worse than ogm... er... that's a good solution.
Top
ChristianHJW
n00b
n00b
User avatar
Posts: 8
Joined: Sun Jun 29, 2003 8:54 am
Location: Germany - Bavaria
Contact:
Contact ChristianHJW
Website

  • Quote

Post by ChristianHJW » Fri Dec 12, 2003 11:12 am

fp2099 wrote:i always thought that mkv support was worse than ogm... er... that's a good solution.
;) .....
Support matroska as container andUSF as subtitles standard
Top
Robelix
l33t
l33t
User avatar
Posts: 760
Joined: Sun Jul 21, 2002 1:01 pm
Location: in a World created by a Flying Spaghetti Monster
Contact:
Contact Robelix
Website

  • Quote

Post by Robelix » Fri Dec 12, 2003 11:43 am

xine had a bug with subtitles inside ogm files for some time - it was displaying only the first line - it is fixed in the 1_rc2.
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Top
hook
Veteran
Veteran
User avatar
Posts: 1397
Joined: Wed Oct 23, 2002 5:24 pm
Location: Ljubljana, Slovenia
Contact:
Contact hook
Website

  • Quote

Post by hook » Fri Dec 12, 2003 11:54 am

i like kaffeine and xine ...but in KDE-3.2 they'll change (or, better: have changed) KMplayer, so you can choose either mplayer or xine while playing the file (i think) - can't wait for THAT!! ...i think i even saw a "audio" and "subtitle" menu somewhere on a screenshot of the new KMplayer :)

btw: xine has the "audio +/-" and "subs +/-" buttons in the GUI ...try playing with that :)
tea+free software+law=hook

(deep inside i'm still a tux's little helper)
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

  • Quote

Post by micron » Fri Dec 12, 2003 6:30 pm

hook wrote:btw: xine has the "audio +/-" and "subs +/-" buttons in the GUI ...try playing with that :)
I tried it but it doesn't work with ogm filles... :evil:
~ "Progress is merely a realisation of utopias" ~
Top
hook
Veteran
Veteran
User avatar
Posts: 1397
Joined: Wed Oct 23, 2002 5:24 pm
Location: Ljubljana, Slovenia
Contact:
Contact hook
Website

  • Quote

Post by hook » Sat Dec 13, 2003 5:21 am

micron wrote:
hook wrote:btw: xine has the "audio +/-" and "subs +/-" buttons in the GUI ...try playing with that :)
I tried it but it doesn't work with ogm filles... :evil:
crap :(
sorry
tea+free software+law=hook

(deep inside i'm still a tux's little helper)
Top
Robelix
l33t
l33t
User avatar
Posts: 760
Joined: Sun Jul 21, 2002 1:01 pm
Location: in a World created by a Flying Spaghetti Monster
Contact:
Contact Robelix
Website

  • Quote

Post by Robelix » Sat Dec 13, 2003 9:19 am

One thing you could try:
Split the file with ogmdemux and then rebuild it with ogmmerge.
This helps sometimes if it has some broken headers.
mysql> SELECT question FROM life, universe, everything WHERE answer=42;
Empty set (2079460347 sec)
Top
Angrybob
Guru
Guru
User avatar
Posts: 575
Joined: Sat Apr 19, 2003 10:16 am

  • Quote

Post by Angrybob » Sat Dec 13, 2003 3:40 pm

There was a thread on the MPlayer-users list recently about ogm subtitles being broken in the latest version... might want to check it out to see what happened

http://mplayerhq.hu/pipermail/mplayer-u ... hread.html

http://mplayerhq.hu/pipermail/mplayer-u ... 40617.html
Top
micron
Guru
Guru
User avatar
Posts: 411
Joined: Wed Jul 23, 2003 9:42 am
Location: Bergamo, Italy
Contact:
Contact micron
Website

  • Quote

Post by micron » Sat Dec 13, 2003 7:21 pm

for Angrybob:
thanks, I'll look the thread

for Robelix:
I'll try this solution, but I think it won't work 'cause under windows (:evil:) the file is perfect...
~ "Progress is merely a realisation of utopias" ~
Top
Post Reply

32 posts
  • 1
  • 2
  • Next

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic