LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayer plays sound but NOT video of a .ogg video file (http://www.linuxquestions.org/questions/linux-software-2/mplayer-plays-sound-but-not-video-of-a-ogg-video-file-536739/)

minike 03-12-2007 02:20 AM

mplayer plays sound but NOT video of a .ogg video file
 
what i have: slackware10.2 linux2.6.18; mplayer + mplayer_codecs *pre-compiled* for my distro.

the problem is as said in the subject.
the file is not corrupted, coz totem can play it.

I've been pointed to pay attention to libtheora codec.. which is installed in my box.. but.. how to know if it's installed in the palce where mplayer is looking 4 it? (asuming such codec is the ogg's video one)
mplayer is not giving error msgs, (just print "video: not video")..so.. how to deal with this?
how to know which codec and where, is mplayer expecting to find?
really would like to know how it works.. not just to download (compile) and install it again.
any suggestion is welcome.

here I paste the mplayer output while reproducing ..don't pay attention to the init error msg: it always appears, but mp works quite fine despite of it.
Code:


~$ mplayer Presentacion_Preview.ogg
MPlayer 1.0pre8-3.3.6 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 3)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.

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.

Playing Presentacion_Preview.ogg.
Ogg stream 0 is of an unknown type
[Ogg] stream 1: audio (Vorbis), -aid 0
Ogg file format detected.
==========================================================================
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 60.0 kbit/7.81% (ratio: 7500->96000)
Selected audio codec: [vorbis] afm: libvorbis (OggVorbis Audio Decoder)
==========================================================================
AO: [oss] 48000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  2.2 (02.2) of 214.9 (03:34.8)  1.5%

MPlayer interrupted by signal 2 in module: play_audio


Simon Bridge 03-12-2007 08:02 PM

Quote:

mplayer is not giving error msgs
... but what about this one:
Quote:

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.
.. so what happened when you tried this?

Try running mplayer as root.

The gmplayer gui has a wee configuration icon, it will tell you all kinds of stuff like what codecs it is using. How did you install mplayer anyway?

95se 03-12-2007 09:27 PM

What encoding is the video in? Ogg Theora? If you have libtheora (ldconfig -p | grep theora) and the includes (probably /usr/include/theora/theora.h or /usr/local/include/theora/theora.h), you should be good to go. Just recompile mplayer. Pay attention to the output of configure, you should see a line some where like, theora support..... Yes. Also, pkg-config theora --modversion should print the version of libtheora installed, not an error message.

minike 03-13-2007 02:01 AM

first of all, thanks 4 taking your time answering

about the error msg, that's answered in the first post:
Quote:

..don't pay attention to the init error msg: it always appears, but mp works quite fine despite of it.
Quote:

.. so what happened when you tried this?

Try running mplayer as root.
the difference when the file is played by root, is such init error msg doesn't appears.. but still no viedo at all -like when playing as regular user.

Quote:

The gmplayer gui has a wee configuration icon, it will tell you all kinds of stuff like what codecs it is using
I'm using the standard or default GUI of (g)mplayer, and there are 7 wee icons, but no one belongs to a configuration option so, gonna assume you're reffering to the 'preferences' one..
in the 'codecs and demuxer' tab, there are 2 checkboxes: 'use non-interactive AVI pahser' and 'Rebuild index table if needed' > unchecked both.. and 2 list-boxes for video and audio codec family each one >> both of them setted to 'none', no matter if mplayer is playing ok, so-so, or not playing at all: I don't see those fields change under no circunstance.
*something I notice: there's NO theora refference under the video codec family list. (?)
Quote:

How did you install mplayer anyway?
as said: using pre-compiled binaries for my distro.. means using the slackware package system (tgz) ..just download->install->play.

another notice: what appears just as an informative line when triggering the file from CLI:
Code:

Ogg stream 0 is of an unknown type
now, playing it using Gmplayer appears as an error box.. ..now I'm really scared..
yet another notice: I also tryied changing the extension from .ogg to .ogm, but this only allows the mplayer GUI to recognize the file as a video one.(no relevant at all)

95se:
Quote:

What encoding is the video in? Ogg Theora?
looks like yes:
Code:

$ file Presentacion_Preview.ogg
Presentacion_Preview.ogm: Ogg data, Theora video

Quote:

If you have libtheora (ldconfig -p | grep theora) and the includes (probably /usr/include/theora/theora.h or /usr/local/include/theora/theora.h), you should be good to go.
(...)Also, pkg-config theora --modversion should print the version of libtheora installed, not an error message.
Code:

# ldconfig -p | grep theora
        libtheora.so.0 (libc6) => /usr/lib/libtheora.so.0
        libtheora.so (libc6) => /usr/lib/libtheora.so
# locate theora.h
/usr/include/theora/theora.h
# pkg-config theora --modversion
1.0alpha7

..looks nice so, what's going on?? mplayer was (pre)compiled without path-to-codec for theora video files? -coz the codecs are there...

so, recompiling from source.. sounds as the 'natural thing', right?

Simon Bridge 03-13-2007 02:47 AM

Oh yeah - looks like you are compiling from source.
www.mjmwired.net has a neet commentary about compiling mplayer from source. It is geared to fedora, but you should be able to translate to slackware equivalent instructions. (most is redundant anyway.)

minike 03-14-2007 08:51 AM

(sorry about the delay)
thanks 4 helping
gonna use the link to compile.
:-)


All times are GMT -5. The time now is 08:22 PM.