[Mplayer-dvb] Mplayer DVB support

Nico nsabbi at libero.it
Sat Apr 26 14:24:34 CEST 2003



Jukka Neppius wrote:
> Jukka Neppius <jkn at softavenue.fi> writes:
> 
> 
>>cd MPlayer-0.90
>>./configure
>>make
>>->
>>Checking for DVB ... no 
>>(specify path to DVB/ost/include with --with-extraincdir=DIR)
>>
>>It seems to want these files from DVB/ost/include:
>>#include <ost/dmx.h>
>>#include <ost/frontend.h>
>>#include <ost/sec.h>
>>#include <ost/video.h>
>>#include <ost/audio.h>
>>
>>I can find sec.h only from siemens_dvb-0.9.4.tar.gz Unfortunately I
>>found several version of 0.9.4!!  All more or less broken!
> 
> 
> I tried with MPlayer-20030426 (from MPlayer-current.tar.bz2)
> 
> Same result!
> 
> configure.log:
> ============ Checking for DVB ============
> ...
> /tmp/mplayer-conf-10682-8839.c:7: ost/dmx.h: No such file or directory
> /tmp/mplayer-conf-10682-8839.c:8: ost/frontend.h: No such file or directory
> /tmp/mplayer-conf-10682-8839.c:9: ost/sec.h: No such file or directory
> /tmp/mplayer-conf-10682-8839.c:10: ost/video.h: No such file or directory
> /tmp/mplayer-conf-10682-8839.c:11: ost/audio.h: No such file or directory
> 
> Result is: no (specify path to DVB/ost/include with --with-extraincdir=DIR)
> 
> ===================
> 
> All except sec.h are in DVB/include/linux/dvb/
> Which come from www.linux-dvb.tv   (21.4.03)
> 
> ost/sec.h is #included in libmpdemux/dvb_tune.c, libmpdemux/dvbin.h and
> libvo/vo_mpegpes.c
> 
> 

Where did you take 0.9.4? Mine (that is working only with plain kernel 
2.4.18) was taken from linuxtv.org web site.

Yet, weren't you using the newer drivers? I use dvb-kernel from cvs and 
kernel 2.4.20 (but a guy reported that dvb-in is working with 
Metzlerbros' drivers, too) and in this case you should look just below 
"checking DVB" in you configure.log file.

Here is mine:


============ Checking for DVB ============
...
Result is: no (specify path to DVB/ost/include with --with-extraincdir=DIR)
##########################################

============ Checking for DVB HEAD ============

#include <sys/poll.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <time.h>
#include <unistd.h>

#include <linux/dvb/dmx.h>
#include <linux/dvb/frontend.h>
#include <linux/dvb/video.h>
#include <linux/dvb/audio.h>
int main(void) {return 0;}

gcc    /tmp/mplayer-conf-752-2837.c -o /tmp/mplayer-conf-1367-2837.o

ldd /tmp/mplayer-conf-1367-2837.o
         libc.so.6 => /lib/i686/libc.so.6 (0x40023000)
         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Result is: yes
##########################################




-in config.mak:

DVBIN = yes
...
DVB_INC =		(empty because I copies the dvb/*.h files in 
/usr/include/linux/dvb)

-in config.h:

#define HAVE_DVB_HEAD 1
#define HAS_DVBIN_SUPPORT 1




> Is MPlayer dvb interface supposed to work only with old 0.9.4 drivers?  

No, with both. It was a hard struggle and a whole week of total breakage.

> 
> Mplayer works with dvbstream. I have to restart both to change
> channel.  After doing this couple days, some kernel resource gets used
> up and fork() fails. -> have to reboot.  (Probably a driver fault.)
> 
> - Jukka

what does dmesg say? This is a driver problem. You should report it to 
mplayer-dvb at linuxtv.org.

Nico




More information about the MPlayer-dvb mailing list