* [linux-dvb] Length of /dev/dvb/adapter0/dvr0's buffer.
@ 2008-02-24 22:26 Andrea
2008-02-25 8:58 ` [linux-dvb] RE : " Thierry Lelegard
0 siblings, 1 reply; 3+ messages in thread
From: Andrea @ 2008-02-24 22:26 UTC (permalink / raw)
To: linux-dvb
Hi,
I'm trying to read from /dev/dvb/adapter0/dvr0.
The problem is that the process reading sometimes is not fast enough and after a while I get errno
75 when I try to read from it.
On average the speed is ok, so it should work.
There must be a buffer behind dvr0 that goes in error onece it is full.
1) how can I make it bigger?
2) how can I check how full it is?
Andrea
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-dvb] RE : Length of /dev/dvb/adapter0/dvr0's buffer.
2008-02-24 22:26 [linux-dvb] Length of /dev/dvb/adapter0/dvr0's buffer Andrea
@ 2008-02-25 8:58 ` Thierry Lelegard
2008-03-01 9:14 ` Andrea
0 siblings, 1 reply; 3+ messages in thread
From: Thierry Lelegard @ 2008-02-25 8:58 UTC (permalink / raw)
To: linux-dvb; +Cc: 'Andrea'
> I'm trying to read from /dev/dvb/adapter0/dvr0.
> The problem is that the process reading sometimes is not fast enough and after a while I get errno
> 75 when I try to read from it.
>
> On average the speed is ok, so it should work.
> There must be a buffer behind dvr0 that goes in error onece it is full.
>
> 1) how can I make it bigger?
> 2) how can I check how full it is?
You can set the *demux* buffer size, upstream from dvr, using ioctl DMX_SET_BUFFER_SIZE.
The default value is 8 kB. Using 1 MB, I can do full TS capture without any loss.
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-dvb] RE : Length of /dev/dvb/adapter0/dvr0's buffer.
2008-02-25 8:58 ` [linux-dvb] RE : " Thierry Lelegard
@ 2008-03-01 9:14 ` Andrea
0 siblings, 0 replies; 3+ messages in thread
From: Andrea @ 2008-03-01 9:14 UTC (permalink / raw)
To: Thierry Lelegard; +Cc: linux-dvb
Thierry Lelegard wrote:
>> I'm trying to read from /dev/dvb/adapter0/dvr0.
>> The problem is that the process reading sometimes is not fast enough and after a while I get errno
>> 75 when I try to read from it.
>>
>> On average the speed is ok, so it should work.
>> There must be a buffer behind dvr0 that goes in error onece it is full.
>>
>> 1) how can I make it bigger?
>> 2) how can I check how full it is?
>
> You can set the *demux* buffer size, upstream from dvr, using ioctl DMX_SET_BUFFER_SIZE.
> The default value is 8 kB. Using 1 MB, I can do full TS capture without any loss.
>
>
I've noticed that there are 2 ioctl DMX_SET_BUFFER_SIZE, one for the demux, one for the dvr.
The second is not implemented.
switch (cmd) {
case DMX_SET_BUFFER_SIZE:
// FIXME: implement
ret = 0;
break;
Could you please help me:
1) how many ringbuffers are there?
2) I'm reading from dvr, which one do I need to set?
3) I can try to implement the above code if needed.
Cheers
Andrea
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-01 9:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-24 22:26 [linux-dvb] Length of /dev/dvb/adapter0/dvr0's buffer Andrea
2008-02-25 8:58 ` [linux-dvb] RE : " Thierry Lelegard
2008-03-01 9:14 ` Andrea
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox