[Mplayer-dvb] mplayer and more than just one dvb board
Andreas Roedl
flood at flood-net.de
Thu Mar 14 15:33:55 CET 2002
Hello!
The dvb devices are hardcoded in "libvo/vo_mpegpes.c" like this:
if((vo_mpegpes_fd = open("/dev/ost/video", O_RDWR)) < 0) {
perror("DVB VIDEO DEVICE: ");
return -1;
}
if((vo_mpegpes_fd2 = open("/dev/ost/audio", O_RDWR|O_NONBLOCK)) < 0) {
perror("DVB AUDIO DEVICE: ");
return -1;
}
Could this be made configurable somehow? The reason: most of the dvb users
own more than one card (the rich people) because they need it for the
timeshifting functionality in vdr:
http://www.cadsoft.de/people/kls/vdr/software.htm
As you possibly know there is a mplayer patch for that nice piece of
software, but if you switch the so called primary interface to a different
card than the first one mplayer won't work because it tries to a access the
first board. Appart from that, device names shouldn't be hardcoded anyway :-)
Imagine something like
mplayer -ao mpegpes:1 -vo mpegpes:1 -vc mpegpes file.vob
or
mplayer -ao mpegpes:/dev/ost/video1 -vo mpegpes:/dev/ost/video1 -vc mpe...
This would be very, very nice!
Andi
--
Web: http://www.flood-net.de/
Mail: flood at flood-net.de
Phone: +49-(0)-30-680577-44
Linux opens doors, not windows!
http://www.bundestux.de/ http://counter.li.org/
More information about the MPlayer-dvb
mailing list