[linux-dvb] Hardware decode and dvr device

2007-11-13 Thread Simon Hargreaves
I've been going through the code for the gnutv app and the libdvbapi. It 
looks like the way that a demux and output method is set up is that a 
filter structure is created including the tuning information, output 
method and pids to demux/decode. Now it seems that there is only 
enumerated values for Hardware decode and TS_TAP to dvr device, but 
nothing that would set up a hardware and dvr device for the same filter.
I'm assuming that this is a bit mask that is passed to the driver when 
it is set up and it should be possible to have a bit mask that enables 
both hardware decode and dvr output. Could somebody point me in the 
right direction for adding this to the correct header files?

Thanks,
Simon...

___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


Re: [linux-dvb] Non blocking IO on dvr0 device

2007-11-09 Thread Simon Hargreaves
David Härdeman wrote:
 On Fri, November 9, 2007 03:33, Felix Domke wrote:
   
 Banana Banana wrote:
 
 On Nov 9, 2007 12:22 AM, Simon Hargreaves [EMAIL PROTECTED] wrote:
   
 I'm using
 2.6.12-gentoo-r6 #1 SMP kernel.
 
 Try a more recent kernel?
   
 No, this is not the correct response to a bug.
 

 Of course it is when the poster's kernel is more than 2 years old (2.6.12
 was released on June 17, 2005).

   
snip

I'm aware that the kernel release is somewhat ancient in terms of 
drivers and such. I was interested to find out if this was a known issue 
with a known fix. I have a number of machines with identical 
configurations and rolling out new kernel versions across a live system, 
and disrupting it's homogeneity, without knowing if it will fix the 
problem is something I was trying to avoid.
I've started the process of doing a system wide update on one of the 
machines, because I realise that a lot happens between that many kernel 
versions, but the danger of losing a live system and having to rebuild 
is always there. I'll let you know if it fixes the problem.

Thanks,
Simon...


___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


[linux-dvb] Command line dvb tuning utilities

2007-11-09 Thread Simon Hargreaves
What dvb tuning command line utilities are there for linux at the 
moment? The options I have a zap, but this does not tune to a service ID 
it requires specified video and audio pids, or dvbtune which although 
will tune into a service id it doesn't set the dvr0 device up for TS 
recording as well as locking the device so no other process can access 
it. My programme is set up to do recording directly from the dvr0 data 
stream, this used to work on my old kernel version but since updating my 
system to use 2.6.22 it now longer appears to work.
The only options appear to be coding my own command line interface to 
the dvb device, but I'd rather not reinvent the wheel.

Simon...

___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


Re: [linux-dvb] Non blocking IO on dvr0 device

2007-11-09 Thread Simon Hargreaves
Simon Hargreaves wrote:
 David Härdeman wrote:
   
 On Fri, November 9, 2007 03:33, Felix Domke wrote:
   
 
 Banana Banana wrote:
 
   
 On Nov 9, 2007 12:22 AM, Simon Hargreaves [EMAIL PROTECTED] wrote:
   
 
 I'm using
 2.6.12-gentoo-r6 #1 SMP kernel.
 
   
 Try a more recent kernel?
   
 
 No, this is not the correct response to a bug.
 
   
 Of course it is when the poster's kernel is more than 2 years old (2.6.12
 was released on June 17, 2005).

   
 
 snip

 I'm aware that the kernel release is somewhat ancient in terms of 
 drivers and such. I was interested to find out if this was a known issue 
 with a known fix. I have a number of machines with identical 
 configurations and rolling out new kernel versions across a live system, 
 and disrupting it's homogeneity, without knowing if it will fix the 
 problem is something I was trying to avoid.
 I've started the process of doing a system wide update on one of the 
 machines, because I realise that a lot happens between that many kernel 
 versions, but the danger of losing a live system and having to rebuild 
 is always there. I'll let you know if it fixes the problem
The update to the latest kernel version has broken my recording 
programme completely and now returns device busy. I'm using dvbtune to 
set up the dvr0 device for TS recording but it's now locking the device 
so no other program can read from it. Is this a driver level change as 
it used to work on the previous kernel version?

Simon...

___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


Re: [linux-dvb] Command line dvb tuning utilities

2007-11-09 Thread Simon Hargreaves
Manu Abraham wrote:
 Simon Hargreaves wrote:
   
 What dvb tuning command line utilities are there for linux at the 
 moment? The options I have a zap, but this does not tune to a service ID 
 it requires specified video and audio pids, or dvbtune which although 
 will tune into a service id it doesn't set the dvr0 device up for TS 
 recording as well as locking the device so no other process can access 
 it. My programme is set up to do recording directly from the dvr0 data 
 stream, this used to work on my old kernel version but since updating my 
 system to use 2.6.22 it now longer appears to work.
 The only options appear to be coding my own command line interface to 
 the dvb device, but I'd rather not reinvent the wheel.
 

 You can take a look at 

 zap: http://linuxtv.org/hg/dvb-apps/file/bd51e3321c05/util/zap/
 or gnutv: http://linuxtv.org/hg/dvb-apps/file/bd51e3321c05/util/gnutv/

   
gnutv does look very close what I want, it gives a wide range of options 
for setting up TS recording and enabling the output of an onboard mpeg 
decoder which is perfect. Unfortunately I need TS recording and video 
output from the the onboard decoder at the same time, which it doesn't 
seem to do.
I've looked through the source code for gnutv but can't find where it 
sets the device up for hardware decoding. If I could find it I would be 
able to set it up an additional option to do both, but I can't find 
where it does device control.

Thanks
Simon...

___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


[linux-dvb] Non blocking IO on dvr0 device

2007-11-08 Thread Simon Hargreaves
I've been writing a rolling video recording programme that stores the 
transport stream to disk in half hour chunks. And to allow it to cope 
with retuning of the satellite card and still continue to record I've 
opened the devices and used fcntl to turn it into a non blocking device. 
Now the systems seems to work fine apart from after about 24 hours the 
box runs out of system memory and no processes will run. It looks like 
the problem is in kernel space as there are no large processes running 
but there is still no memory available.
I'm thinking that opening and closing the dvr0 handle as a non blocking 
is causing a memory leak. Is this a known issue? I'm using  
2.6.12-gentoo-r6 #1 SMP kernel.

Simon...

___
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb