[MPlayer-users] Mplayer got "stuck" when playing song

Arthur Chiu arthurchiu at gmail.com
Fri Oct 7 21:05:07 CEST 2005


I have fixed the problem with using host-cc=gcc. However, it seems like the
only file that uses it is when it compiles codec-cfg.c to generate
codecs-config.h. After I finished compiling and run it on my mips machine,
similar problem happens. However, this time the player didn't get "stuck".
Whereas, it is advancing in the following fasion: (0, 0.1, 0.2, 0.3, 0.2,
0.1, 0.2,0.3,0.4,0.3,... ). Which means, it is still looping back for some
reason, but doens't go back all the way. The output with verbose level 1 is
as follows:

MPlayer 1.0pre7try2-3.3.3 (C) 2000-2005 MPlayer Team
CPU: SGI MIPS

CommandLine: '-v' '-softsleep' '../i believe.mp3'
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file:
/home/mediadev/Arthur/blackWidow/Mplayer-mips/config/usr/local/share/mplayer/font/font.desc
Using Unoptimized OnScreenDisplay
Failed to open /dev/rtc: No such file or directory (it should be readable by
the user.)
Using software timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: No such file or
directory
Can't open input config file
/home/mediadev/Arthur/blackWidow/Mplayer-mips/config/usr/local/etc/mplayer/input.conf:
No such file or directory
Falling back on default (hardcoded) input config
get_path('i believe.mp3.conf') -> '/root/.mplayer/i believe.mp3.conf'
Playing ../i believe.mp3.
[file] File size is 4672009 bytes
STREAM: [file] ../i believe.mp3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename ../i believe.mp3 ext: .mp3
Trying demuxer 17 based on filename extension
==> Found audio stream: 0
demux_audio: seeking from 0x474A09 to start pos 0x4A3
demux_audio: audio data 0x4A3 - 0x474989
Audio file detected.
Clip info:
Title: I Believe
Artist: \uffffS\uffffh\uffff
Album: I believe
Year: 2002
Comment:
Track: 1
Genre: Pop
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using generic C decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 128 kbit Joint-Stereo, BPF: 418
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
AF_pre: 44100Hz/2ch/s16le
ao2: 44100 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags: 2/16384 (4 bytes/frag) free: 32768
AO: [oss] 44100Hz 2ch s16le (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Video: no video
Freeing 0 unused video chunks.
Starting playback...

Any help would be very much appreciated. Thanks

Cheers,

Arthur


On 10/7/05, Arthur Chiu <arthurchiu at gmail.com> wrote:
>
> When i am trying to recompile it using host-cc=gcc, I got the following
> error. It seems to be libraries problem, but I'm not sure what's wrong...
>
> gcc -I. -g codec-cfg.c mp_msg.c -o codec-cfg -DCODECS2HTML
> -L/home/mediadev/Arthur/blackWidow/libmad-configure/usr/local/lib
> -L/home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/lib
> -L/home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib
> -I/home/mediadev/Arthur/blackWidow/libmad-configure/usr/local/include
> -I/home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/include
> -I/home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/include
> -I/home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3
> /mipsel-linux-uclibc/include/g++-v3
> /usr/bin/ld: skipping incompatible
> /home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib/libgcc_s.so
> when searching for -lgcc_s
> /usr/bin/ld: skipping incompatible
> /home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib/libc.so
> when searching for -lc
> /usr/bin/ld: skipping incompatible
> /home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib/libc.a
> when searching for -lc
> /usr/bin/ld: skipping incompatible
> /home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib/libgcc_s.so
> when searching for -lgcc_s
> /tmp/cc6qcwna.o(.text+0x589): In function `validate_codec':
> /home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-1.0pre7try2/codec-
> cfg.c:321: undefined reference to `__ctype_b'
> /tmp/cc6qcwna.o(.text+0x867): In function `get_token':
> /home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-1.0pre7try2/codec-
> cfg.c:438: undefined reference to `__ctype_b'
>
> /tmp/cc6qcwna.o(.text+0x944):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:454: undefined reference to `__ctype_b'
> /tmp/cc6qcwna.o(.text+0x1d89): In function `wrapline':
> /home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-1.0pre7try2/codec-
> cfg.c:894: undefined reference to `__fputc_unlocked'
> /tmp/cc6qcwna.o(.text+0x1de5): In function `parsehtml':
> /home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-1.0pre7try2/codec-
> cfg.c:900: undefined reference to `__fgetc_unlocked'
>
> /tmp/cc6qcwna.o(.text+0x1e52):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:902: undefined reference to `__fputc_unlocked'
>
> /tmp/cc6qcwna.o(.text+0x1ea9):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:905: undefined reference to `__fgetc_unlocked'
>
> /tmp/cc6qcwna.o(.text+0x2175):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:940: undefined reference to `__fputc_unlocked'
>
> /tmp/cc6qcwna.o(.text+0x21cb):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:941: undefined reference to `__fputc_unlocked'
> /tmp/cc6qcwna.o(.text+0x222a): In function `skiphtml':
> /home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-1.0pre7try2/codec-
> cfg.c:949: undefined reference to `__fgetc_unlocked'
>
> /tmp/cc6qcwna.o(.text+0x228e):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:953: undefined reference to `__fgetc_unlocked'
> /tmp/cc6qcwna.o(.text+0x2a92): In function `main':
> /home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-1.0pre7try2/codec-
> cfg.c:1071: undefined reference to
> `__fgetc_unlocked'/tmp/cc6qcwna.o(.text+0x2aff):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:1073: undefined reference to `__fputc_unlocked'
>
> /tmp/cc6qcwna.o(.text+0x2b56):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:1076: undefined reference to `__fgetc_unlocked'
>
> /tmp/cc6qcwna.o(.text+0x2e5d):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:1135: undefined reference to `__fputc_unlocked'
>
> /tmp/cc6qcwna.o(.text+0x2eb3):/home/mediadev/Arthur/blackWidow/MPlayer-mips/MPlayer-
> 1.0pre7try2/codec-cfg.c:1136: undefined reference to `__fputc_unlocked'
> collect2: ld returned 1 exit status
> make: *** [codec-cfg] Error 1
>
> These few lines goes away if I take away the library paths to the cross
> compiling toolchain.
> /usr/bin/ld: skipping incompatible
> /home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib/libgcc_s.so
> when searching for -lgcc_s
> /usr/bin/ld: skipping incompatible
> /home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib/libc.so
> when searching for -lc
> /usr/bin/ld: skipping incompatible
> /home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib/libc.a
> when searching for -lc
> /usr/bin/ld: skipping incompatible
> /home/mediadev/Arthur/blackWidow/opt/toolchains/uclibc-crosstools-2.4.3/mipsel-linux-uclibc/lib/libgcc_s.so
> when searching for -lgcc_s
>
> However, it doesn't resolve the problem. Which is the library in concern
> and is there anyway to fix this? Thanks a lot.
>
> Cheers,
>
> Arthur
>
>
> On 10/7/05, Arthur Chiu <arthurchiu at gmail.com> wrote:
> >
> > Thanks for the reply, I'll give it a try by recompiling it again though
> > I didn't face too much problem when compiling even with
> > house-cc=mipsel-linux-gcc.
> >
> > I am suspecting that problem might be caused by " audio_setup: frags:
> > 2/16384 (4 bytes/frag) free: 32768". Though I'm not entirely sure what the
> > frags mean, but 4 bytes / frag compare to 4096 bytes / frag seems to be a
> > big difference. What might have caused this?
> >
> > Finally, one last question is that how does the CVS tree work? Do I
> > download the source code as a zip file as well? Sorry about this stupid
> > question as I have never worked with CVS tree online before. Thanks a lot
> > for all help.
> >
> > Regards,
> >
> > Arthur
> >
> > On 10/6/05, Dominik 'Rathann' Mierzejewski < dominik at rangers.eu.org>
> > wrote:
> > >
> > > On Thursday, 06 October 2005 at 23:42, Arthur Chiu wrote:
> > > > I have cross-compiled MPlayer for a mips32 linux 2.4 machine using
> > > an x86
> > > > linux 2.6 machine. The configure command I ran is:
> > > >
> > > > ./configure --cc=mipsel-linux-gcc --host-cc=mipsel-linux-gcc
> > >
> > > For crosscompilation, hostcc must be set to native gcc AFAIR.
> > > It's used to build some binaries that are executed during build
> > > on the builder, not the target system.
> > >
> > > [...]
> > > > The song plays very smoothly after. What might have happened? How
> > > come the
> > > > music won't play properly on the other system? Any help would be
> > > very much
> > > > appreciated. Thanks a lot.
> > >
> > > You should of course try the latest CVS.
> > >
> > > R.
> > >
> > > --
> > > MPlayer RPMs maintainer: http://rpm.greysector.net/mplayer/
> > > "I am Grey. I stand between the candle and the star. We are Grey.
> > > We stand between the darkness ... and the light."
> > > -- Delenn in Grey Council in Babylon 5:"Babylon Squared"
> > >
> > > _______________________________________________
> > > MPlayer-users mailing list
> > > MPlayer-users at mplayerhq.hu
> > > http://mplayerhq.hu/mailman/listinfo/mplayer-users
> > >
> >
> >
>



More information about the MPlayer-users mailing list