LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-12-2007, 02:20 AM   #1
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Rep: Reputation: 30
Question 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
 
Old 03-12-2007, 08:02 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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?
 
Old 03-12-2007, 09:27 PM   #3
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
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.
 
Old 03-13-2007, 02:01 AM   #4
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Original Poster
Rep: Reputation: 30
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?
 
Old 03-13-2007, 02:47 AM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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.)
 
Old 03-14-2007, 08:51 AM   #6
minike
Member
 
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211

Original Poster
Rep: Reputation: 30
(sorry about the delay)
thanks 4 helping
gonna use the link to compile.
:-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer codec rv40 plays rmvb video, but no sound... sirpelidor Linux - Software 5 12-04-2008 06:12 PM
my xine engine at times plays the sound of audio file and the video window turns blue amolgupta Linux - Software 1 07-29-2005 12:55 PM
Mplayer plays sound but not video. help! mordin Linux - Software 5 10-27-2003 01:59 PM
mplayer plays tv but what about tv's s-video input? bkeating Linux - Software 2 09-09-2003 05:12 AM
mplayer plays wmv video but sound is scrambled sk8guitar Linux - Software 0 09-04-2003 07:41 PM


All times are GMT -5. The time now is 06:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration