Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mplayer + Theora Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
wizardofos
Apprentice
Apprentice


Joined: 20 Jul 2004
Posts: 201

PostPosted: Wed Dec 22, 2004 10:34 am    Post subject: Mplayer + Theora Problem Reply with quote

Hi

When I try to play an ogg theora file with mplayer it gives me this output:
Code:
Player 1.0pre5try2-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 3308 MHz (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX SSE SSE2

Reading config file /usr/share/mplayer/mplayer.conf
Reading config file /home/fabian/.mplayer/config
Reading /home/fabian/.mplayer/codecs.conf: Can't open '/home/fabian/.mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Reading /usr/share/mplayer/codecs.conf: 73 audio & 180 video codecs
font: can't open file: /home/fabian/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using usleep() timing
Can't open input config file /home/fabian/.mplayer/input.conf: Datei oder Verzeichnis nicht gefunden
Input config file /usr/share/mplayer/input.conf parsed: 53 binds

Playing cs-200412-pfw_video.ogg.
Cache fill:  5,08% (425984 bytes)    Ogg file format detected.
==========================================================================
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 9980->176400 (79,8 kbit)
Selected audio codec: [vorbis] afm:libvorbis (OggVorbis Audio Decoder)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Could not open codec.
VDecoder init failed :(
Opening video decoder: [theora] Theora/VP3


MPlayer interrupted by signal 11 in module: init_video_codec
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.



libtheora is installed...

Greetings
Fabian
Back to top
View user's profile Send private message
kKDu
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 187

PostPosted: Wed Feb 02, 2005 6:21 pm    Post subject: Reply with quote

Same problem here.
_________________
http://www.vim.org
Back to top
View user's profile Send private message
vortex01
n00b
n00b


Joined: 27 Oct 2003
Posts: 6

PostPosted: Fri Mar 11, 2005 3:51 pm    Post subject: theora borked with ffmpeg ebuild Reply with quote

i think i've found something on this.

when i tried to use vlc to on-stream a v4l web cam to an oggtheora stream, i get from it's console:

Code:
[00000293] ffmpeg encoder error: cannot find encoder Xiph.org's Theora Video
[00000293] ffmpeg encoder error: cannot find encoder Xiph.org's Theora Video


i'm assuming mplayer uses ffmpeg for theora as well. ok. so i investigated why ffmpeg couldn't find the theora encoder. so i re-emerged the latest ffmpeg, ffmpeg-0.4.9_p20050226.

as the configure phase flew by, i noticed that theora is disabled!

looking at the ffmpeg-0.4.9_p20050226.ebuild file:

Code:
local myconf=""

    use encode && use aac && myconf="${myconf} --enable-faac"

    if use oggvorbis ; then
        myconf="${myconf} --enable-ogg --enable-vorbis"
    else
        myconf="${myconf} --disable-ogg --disable-theora"



so i copy my /usr/portage/media-video/ffmpeg to /usr/local/portage/media-video, and hack the first myconf line to include an --enable-theora (i know - not proper, there should be a theora use flag, etc - but just to see if it would compile correctly).

re-emerge ffmpeg

now errors thusly:

Code:
make[1]: *** No rule to make target `oggtheora.c', needed by `oggtheora.o'.  Stop.
make[1]: Leaving directory `/var/tmp/portage/ffmpeg-0.4.9_p20050226/work/ffmpeg-0.4.9-p20050226/libavcodec'
make: *** [lib] Error 2


*sigh* ok. looking at makefile /var/tmp/portage/ffmpeg-0.4.9_p20050226/work/ffmpeg-0.4.9-p20050226/libavcodec/Makefile

i note:

Code:
ifeq ($(CONFIG_LIBOGG),yes)
EXTRALIBS += -logg
ifeq ($(CONFIG_LIBVORBIS),yes)
OBJS += oggvorbis.o
EXTRALIBS += -lvorbis -lvorbisenc
endif
ifeq ($(CONFIG_LIBTHEORA), yes)
OBJS += oggtheora.o
EXTRALIBS += -ltheora
endif
endif


the OBJS += oggtheora.o is adding an expectation for a source file oggtheora.c

which ain't there. this file is not in the ffmpeg package ...

is this a theora bug in ffmpeg?

shine,

.vortex

ps. ok, for others, to answer own unrelated issue

according to http://sourceforge.net/mailarchive/message.php?msg_id=11009212
patches at http://www.cse.iitb.ac.in/nilesh/linux/ffmpeg/
enable theora in ffmpeg (dev patches not yet in ffmpeg CVS)


Last edited by vortex01 on Fri Mar 11, 2005 8:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
lbrtuk
l33t
l33t


Joined: 08 May 2003
Posts: 910

PostPosted: Fri Mar 11, 2005 4:34 pm    Post subject: Reply with quote

mplayer does not use ffmpeg for theora playback. If you read the original log, it tries to use ffmpeg, fails, and then uses 'Theora/VP3'.

It looks like a standard segfault issue. All I can really suggest is trying to run it without some of the SIMD extensions.
Back to top
View user's profile Send private message
vortex01
n00b
n00b


Joined: 27 Oct 2003
Posts: 6

PostPosted: Fri Mar 11, 2005 5:20 pm    Post subject: Reply with quote

lbrtuk wrote:
mplayer does not use ffmpeg for theora playback. If you read the original log, it tries to use ffmpeg, fails, and then uses 'Theora/VP3'.

It looks like a standard segfault issue. All I can really suggest is trying to run it without some of the SIMD extensions.


oops. thanks lbrtuk. i should never assume. i'll take my vlc/ffmpeg problem somewhere more appropriate.

shine,

.vortex
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum