[MPlayer-users] How to use 2 H+ board on a same PC ?

etienne gandhi gandhi.etienne at siemens.com
Mon Feb 10 14:34:24 CET 2003


I am trying to use 2 Dxr3 board on a single PC, but I am able to play
only 1 DivX A/V stream with Mplayer.

Here what I did:
 
1 - Module creation:
I created a file: devices_1.sh (a copy of devices.sh with some
modification):
------------------------------------------------
#! /bin/sh
# This is a simple scripts to create the devices for em8300 driver,
# it should abort if you have the devfs filesystem mounted, em8300
# supports devfs so there should be no need.
 
DEVFS=`cat /proc/mounts | grep " devfs "`

if [ -z "$DEVFS" ] ; then
	echo "Devfs not mounted creating device nodes"
	mknod /dev/em8300-1    c 121 0
	ln -fs /dev/em8300-1 /dev/em8300
	mknod /dev/em8300_mv-1 c 121 1
	ln -fs /dev/em8300_mv-1 /dev/em8300_mv
	mknod /dev/em8300_ma-1 c 121 2
	ln -fs /dev/em8300_ma-1 /dev/em8300_ma
	mknod /dev/em8300_sp-1 c 121 3
	ln -fs /dev/em8300_sp-1 /dev/em8300_sp
	chmod 666 /dev/em8300*
else
echo "Hmmm, looks like you have devfs mounted, Im going to be safe and
leave things alone!"
fi
------------------------------------------------
 
And, I type "make devices" (of cource inthe makefile, I have the following
line: @sh devices_1.sh ).
 
And I got:
# ll /dev/em8300*
lrwxrwxrwx    1 root     root           13 Feb  9 12:26 /dev/em8300
->/dev/em8300-1
crw-rw-rw-    1 root     root     121,   0 Dec 26 12:17 /dev/em8300-0
crw-rw-rw-    1 root     root     121,   0 Feb  9 12:26 /dev/em8300-1
lrwxrwxrwx    1 root     root           16 Feb  9 12:26 /dev/em8300_ma ->
/dev/em8300_ma-1
crw-rw-rw-    1 root     root     121,   2 Dec 26 12:17 /dev/em8300_ma-0
crw-rw-rw-    1 root     root     121,   2 Feb  9 12:26 /dev/em8300_ma-1
lrwxrwxrwx    1 root     root           16 Feb  9 12:26 /dev/em8300_mv ->
/dev/em8300_mv-1
crw-rw-rw-    1 root     root     121,   1 Dec 26 12:17 /dev/em8300_mv-0
crw-rw-rw-    1 root     root     121,   1 Feb  9 12:26 /dev/em8300_mv-1
lrwxrwxrwx    1 root     root           16 Feb  9 12:26 /dev/em8300_sp ->
/dev/em8300_sp-1
crw-rw-rw-    1 root     root     121,   3 Dec 26 12:17 /dev/em8300_sp-0
crw-rw-rw-    1 root     root     121,   3 Feb  9 12:26 /dev/em8300_sp-1




2 - Modules initialisation:

# ./ldm
and
# ./em8300setup
Microcode uploaded to /dev/em8300-0
Current settings are:
Video   Aspect  Audio   Spu
PAL     4:3     ANALOG  ON
Microcode uploaded to /dev/em8300-1
Current settings are:
Video   Aspect  Audio   Spu
PAL     4:3     ANALOG  ON




3 - Play the movies:
 
I use the following command to play the movies:
$ mplayer -aid 2 -vo dxr3:prebuf:sync:norm=3:1 -ao oss:/dev/em8300_ma-1
./film1.avi
 
and

$ mplayer -aid 1 -vo dxr3:prebuf:sync:norm=3:0 -ao oss:/dev/em8300_ma-0
./film0.avi
 
 
 
When playing film1, the play is OK (Video + Audio), but I can't start film0,
I got an error:
$ mplayer -aid 1 -vo dxr3:prebuf:sync:norm=3:0 -ao oss:/dev/em8300_ma-0
./film0.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
 
 
MPlayer 0.90rc2-2.95.4 (C) 2000-2002 Arpad Gereoffy (see DOCS)
 
CPU: Advanced Micro Devices Athlon TB Thunderbird (Family: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx
 
 
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 125 video codecs
Font /home/etienne/.mplayer/font/font.desc loaded successfully! (206 chars)
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.
Using usleep() timing
 
Playing ./film0.avi
Detected AVI file format!
VIDEO:  [DIVX]  512x288  24bpp  25.00 fps  900.0 kbps (109.9 kbyte/s)
Clip info:
   Software: MEncoder 0.90rc2-2.95.4
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 4000->192000 (32.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
VO: [dxr3] Enabling prebuffering.
VO: [dxr3] Using new sync engine.
VO: [dxr3] Will set TV norm to: PAL
VO: [dxr3] Error opening /dev/em8300-48 for writing, trying /dev/em8300
instead
VO: [dxr3] Error opening /dev/em8300_mv-48 for writing, trying
/dev/em8300_mv instead
VO: [dxr3] Error opening /dev/em8300_mv for writing as well!
Bailing
VO: [dxr3] Uninitializing
Error opening/initializing the selected video_out (-vo) device!

 
 Exiting... (End of file)

 
 
 
When I start the film0 first, I got the movin on the same board, and of
course the other movie is not working, I got similar thing:
 
 
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
VO: [dxr3] Enabling prebuffering.
VO: [dxr3] Using new sync engine.
VO: [dxr3] Will set TV norm to: PAL
VO: [dxr3] Error opening /dev/em8300-49 for writing, trying /dev/em8300
instead
VO: [dxr3] Error opening /dev/em8300_mv-49 for writing, trying
/dev/em8300_mv instead
VO: [dxr3] Error opening /dev/em8300_mv for writing as well!
Bailing
VO: [dxr3] Uninitializing
Error opening/initializing the selected video_out (-vo) device!

 
Exiting... (End of file)
 
 
 
 
May be this is just a device setup problem, or inode creation  ?

 
Thank for your help.
 



More information about the MPlayer-users mailing list