[MPlayer-users] How do I configure internal dvdnav support when creating a Debian package?

Pedro A. Aranda paaguti at hotmail.com
Tue Dec 4 08:03:12 CET 2007


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> Hi!
> 
> Pedro A ARANDA <paaguti <at> hotmail.com> writes:
> 
> > I would like to know what configure param enables the use of the internal
> > dvdnav support, which I understand has been integrated into MPLayer.
> 
> Lets try again:
> dvdnav is supported by MPlayer, but not internally, but externally (through the
> library libdvdnav). 
....
> 
> Carl Eugen
....
> PS: Since it seems neither Nico nor I understand what your problems with MPEG
> files and/or xv are, try to explain again: Tell us what works and what doesn't
> work and don't draw to many conclusions (like "MPEG playback does not work in
> MPlayer rc2").


Hi, 

Regarding libdvdnav, I understand the situation, no complains.
Just a problem I have just encountered, when compiling mplayer
with libdvdnav:

make[2]: Leaving directory `/home/paag/Personal/Devel/mplayer/osdep'
cc -o mplayer mplayer.o m_property.o mp_fifo.o mp_msg.o mixer.o parser-mpcmd.o
command.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o get_path.o
m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o
playtreeparser.o spudec.o sub_cc.o subopt-helper.o subreader.o vobsub.o
unrarlib.o libvo/libvo.a libao2/libao2.a input/libinput.a vidix/libvidix.a
libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a
libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a
libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a
loader/libloader.a mp3lib/libmp3.a liba52/liba52.a libmpeg2/libmpeg2.a
libfaad2/libfaad2.a tremor/libvorbisidec.a dvdread/libdvdread.a
libdvdcss/libdvdcss.a libass/libass.a osdep/libosdep.a -ldirectfb -lXext -lX11
-lpthread -lXv -lXinerama -lGL -ldl -laa -lvga -laudio -lXt -lesd -laudiofile
-lm -lx264 -lpthread -lmp3lame -L/usr/lib -Wl,-z,noexecstack    -lncurses -lpng
-lz -ljpeg -lasound -ldl -lpthread -lfreetype -lz -lfontconfig  -lz -llzo2 -lmad
-lspeex  -ltheora -logg   -ldts -lxvidcore -lm -lpthread -ldl -rdynamic
-L/usr/local/lib -ldvdnavmini -lpthread  -lm   
stream/stream.a(stream_dvdnav.o): In function `identify_chapters':
stream_dvdnav.c:(.text+0x169): undefined reference to
`dvdnav_describe_title_chapters'
collect2: ld returned 1 exit status
make[1]: *** [mplayer] Error 1
make[1]: se sale del directorio `/home/paag/Personal/Devel/mplayer'

after installing libdvdnav-4.1.1 as a static library in order not to
disturb packages depending on the Debian version of it. For that I did:

cd ~/Personal/Devel/libdvdnav-4.1.1/
./autogen.sh
make distclean
./configure --enable-static --disable-shared
make
sudo make install


Regarding the MPEG/AVI/video drivers nightmare, 
let's try to put it as scientifically as possible, 
because it is a completely reproducible bug on 
Debian lenny (aka testing) _and_ Ubuntu 7.10.

(On Ubuntu 7.10 I'm a bit less concerned, because
I can use the gl2 driver, which works OK)

PRECONDITIONS:

Get your favourite DVB-T/S/C card, tune it to your favourite program
and record a couple of minutes with the gnutv program which is part
of the dvb-apps from linuxtv.org
 
You should get a file which has an MPEG-TS with one video stream and one
or more audio streams (call it test.ts)

Use mencoder, avidemux or your favourite transcoder and make an AVI file
with one video and one audio stream (call it test.avi)

Check with gxine or vlc or whatever program you want that both files can
be reproduced on your computer.

Make sure that in your channels.conf file your have at lease one 
DVB-T/S/C radio station (in my case RNEC) configured

$HOME/.mplayer/config:

[default]
ao=oss
fs=no
vf=lavcdeint,spp
dvd-device=/dev/hdc
cache=8192
stop-xscreensaver=yes
monitorpixelaspect=4:3

sub-fuzziness=1
font=/usr/share/fonts/truetype/freefont/FreeSans.ttf
subfont-encoding=unicode
ffactor=1
subpos=96
subalign=2
subfont-autoscale=2
subfont-blur=2.0
subfont-outline=2.0
subfont-text-scale=4.5
subfont-osd-scale=3.5


TESTS WITH A FRESH MPLAYER PULLED OUT OF THE SVN

Test 1: mplayer -vo x11 test.ts
Test 2: mplayer -vo x11 test.avi
Test 3: mplayer -vo xv test.ts
Test 4: mplayer -vo xv test.avi

RESULTS

Tests 1,2,4 pass (i.e. I can watch the video, listen to the audio,
see OSD when video is there, etc.)

Test 3 Mplayer hangs after subsecond sound reproduction, video
screen black, need to Ctrl-C on the terminal window and/but no
gdb core dump is generated.

MORE CLUES (which I hope help)
I can listen to any sort of Internet radio content with MPlayer
as well to DVB-T/S/C radio as well as to DVB-T/S/C TV audio when
using -vo null.




More information about the MPlayer-users mailing list