[vdr] [PATCH] limit streamdev client's ringbuffer timeouts to more sane values

2007-04-05 Thread Artur Skawina
Well, the streamdev-client reads data from a ringbuffer and when there isn't anything to read it tries to sleep for 1us and loops. This wasn't a problem when the timer resolution was in the 1000..1us range (1000..100Hz); the usleep(1) call slept for one or more milliseconds. With the high-re

Re: [vdr] [PATCH] limit streamdev client's ringbuffer timeouts to more sane values

2007-04-06 Thread Artur Skawina
Stone wrote: > On 4/5/07, *Artur Skawina* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: > With the high-res timers in kernel 2.6.21+ usleep(1) is no longer > treated as > usleep(1) and the streamdev client is almost unusable; it uses >

Re: [vdr] [PATCH] limit streamdev client's ringbuffer timeouts to more sane values

2007-04-06 Thread Artur Skawina
Stone wrote: > > sure, just changing it to 'usleep(1)' works too. Is there a > reason to avoid > the ringbuffer infrastructure? > > No reason in particular, I just wanted to test which one worked best > with performance. Thanks for the patch. :) I tried the 1us -> (1000|1)us

Re: [vdr] [PATCH] limit streamdev client's ringbuffer timeouts to more sane values

2007-04-07 Thread Artur Skawina
Stone wrote: > > Is this patch for streamdev a direct result from selecting the new > "Tickless System (Dynamic Ticks)" option in kernel 2.6.21? If yes, then CONFIG_HIGH_RES_TIMERS "High Resolution Timer Support". Whether NO_HZ makes a difference I'm not sure, i ran into this w/ both options on.

Re: [vdr] Freezes with Reiserfs

2007-04-23 Thread Artur Skawina
Sven Schwyn wrote: > I'm having strange issues with my VDR box lately. However, I'm not sure > at all it has anything to do with VDR as other services are running on > it, too. > > The Gentoo box freezed four times in the past month, twice of which the > very minute a VDR timer stopped. (Maybe eve

[vdr] remote plugin ignoring some keys

2007-04-29 Thread Artur Skawina
A while ago the remote plugins "telnet" server started acting strangely here; it would sometimes ignore all cursor and function keys, yet other keys would work perfectly. I'm not sure when exactly this began, most likely a newer kernel triggered this. It does not happen always, but when it does i

[vdr] [PATCH] dynamically sized ringbuffers v1

2007-05-07 Thread Artur Skawina
vdr uses quite a lot of memory, RSS here used to be ~70M, so i decided to see if it could be reduced a bit. First suspects became the ringbuffers, cause i was seeing a lot of log lines such as "buffer stats: 96068 (1%) used". Turns out many buffers are way over sized, only a few percent of the m

Re: [vdr] [PATCH] dynamically sized ringbuffers v1

2007-05-08 Thread Artur Skawina
> Patch below changes the interpretation of the 'Size' parm given when creating > a buffer from a > fixed length to a max limit. The buffers start out much smaller (currently > 128k, instead of many > megabytes) and grow automatically when they become almost full. This way all > callers benefit,

Re: [vdr] [PATCH] dynamically sized ringbuffers v1

2007-05-09 Thread Artur Skawina
> void cRecorder::Receive(uchar *Data, int Length) > { > if (Running()) { > int p = ringBuffer->Put(Data, Length); > if (p != Length && Running()) > ringBuffer->ReportOverflow(Length - p); > } > } > > it simply drops any data that does not fit into the buffer, which would

Re: [vdr] [PATCH] dynamically sized ringbuffers v1

2007-05-09 Thread Artur Skawina
Klaus Schmidinger wrote: > On 05/09/07 20:56, Artur Skawina wrote: >>> void cRecorder::Receive(uchar *Data, int Length) >>> it simply drops any data that does not fit into the buffer, which would be >>> fine >>> for live viewing, but isn't ideal when

[vdr] [PATCH] dynamically sized ringbuffers v2

2007-05-09 Thread Artur Skawina
Auto sized ringbuffers, changes since v1: - increased maximum sizes for a few rb users. Most of the time just a small part will be used, but there will be more room for times when more is required. - a little smarter cRingBufferLinear::Read(), handles the TS buffer better. - faster buffer gr

Re: [vdr] [PATCH] dynamically sized ringbuffers v2

2007-05-10 Thread Artur Skawina
Stone wrote: > > It still wouldn't surprise me if this version caused a few overflows, > but hopefully these will be very rare. > > I'm curious how streamdev will function with these buffer changes. it works fine -- i'm using a headless vdr server and streamdev+softdevice clients, so t

Re: [vdr] [PATCH] dynamically sized ringbuffers v2

2007-05-10 Thread Artur Skawina
Jouni Karvo wrote: > Stone writes: > > > > > > It still wouldn't surprise me if this version caused a few overflows, > > > but hopefully these will be very rare. > > > > I'm curious how streamdev will function with these buffer changes. > > And since I am not convinced that this memory footp

Re: [vdr] [PATCH] dynamically sized ringbuffers v2

2007-05-11 Thread Artur Skawina
Klaus Schmidinger wrote: > If this "auto sized ringbuffers" change (which, from what I can > see so far - haven't tried it myself - looks like a good idea) > is ever to make its way into the official VDR source, you'll need > to get rid of the above waiting. It says in receiver.h: > > ...the cal

[vdr] [PATCH] Auto sized ringbuffers v3

2007-05-13 Thread Artur Skawina
This is still in a just-for-testing phase. Found a way to better stress test this code, hence these changes: - decreased the growth threshold from 1/2 to 1/3. IOW the goal is always for 66% of the buffer to be free; this increases the working set, but the alternative (handling overflows by s

Re: [vdr] [PATCH] Auto sized ringbuffers v3

2007-05-15 Thread Artur Skawina
Jaroslaw Swierczynski wrote: > It seems your patch is against VDR 1.5.x. Could you please backport it > to VDR 1.4.x? actually it's vs 1.4.6, but applies to 1.5.2 too. ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/

Re: [vdr] [PATCH] Auto sized ringbuffers v3

2007-05-20 Thread Artur Skawina
VDR User wrote: > I've recorded/watched a lot of tv in the last couple days and so far I > haven't noticed any problems with this patch. I am currently using v3 > (the patch I attached to my previous post) with vdr-1.5.2. Do you know how large the buffers usually grow? If you haven't reduced vdrs

Re: [vdr] [PATCH] Auto sized ringbuffers v3

2007-05-20 Thread Artur Skawina
VDR User wrote: > On 5/20/07, Artur Skawina <[EMAIL PROTECTED]> wrote: >> VDR User wrote: >> > I've recorded/watched a lot of tv in the last couple days and so far I >> > haven't noticed any problems with this patch. I am currently using v3 >> >

[vdr] [PATCH] softdevice segfaulting on stream errors

2007-07-10 Thread Artur Skawina
Some time ago the softdevice plugin started crashing when playing video streams containing errors, both while live viewing and watching recordings. Today I found a transponder where it reliably occurred within seconds and decided to investigate. The picture buffers used for video were 8-byte align

Re: [vdr] change make install to be really useful

2007-08-14 Thread Artur Skawina
Udo Richter wrote: > Matthias Schwarzott wrote: >> makefile-destdir.diff: >> It add variable DESTDIR to makefile to install under $(DESTDIR) instead of / > > I would prefer something like DESTDIR=/usr/local that can be redirected > to /usr or /tmp/newpackage/usr or similar, just as many configure

Re: [vdr] astra und hotbird ueber diseqc schalter?

2007-09-16 Thread Artur Skawina
Oliver Joa wrote: > Hi, > > ich habe mir heute einen zweiten LNB auf die Schuessel gebaut um Hotbird > empfangen zu koennen. Jetzt weiss ich nur noch nicht wie ich beide LNB > am geschicktesten mit meinem VDR verbinde (Beide LNB jeweils Quad). Ich > habe 2 DVB Karten. Die professionelle Variant

[vdr] Problems playing ongoing recordings?

2008-03-26 Thread Artur Skawina
Is anyone seeing some kind of problem when playing back files, but only when the recording has not yet finished? Possibly just when replaying a file that is currently being extended, maybe by another VDR and/or over NFS. [i had a problem like that many months ago, attempted to fix it, but it seem

Re: [vdr] Problems playing ongoing recordings?

2008-03-26 Thread Artur Skawina
VDR User wrote: > On Wed, Mar 26, 2008 at 10:27 AM, Artur Skawina <[EMAIL PROTECTED]> wrote: >> Is anyone seeing some kind of problem when playing back files, but only when >> the >> recording has not yet finished? Possibly just when replaying a file that is >

Re: [vdr] Problems playing ongoing recordings?

2008-03-27 Thread Artur Skawina
alexw wrote: I _think_ the issue was some kind of stuttering playback; it didn't happen always, but often enough that one day i decided to see if writing the stream in much larger chunks would help. It did; never seen it since. I am using the following VDR setup: 2 VDR machines in client(FF)/

Re: [vdr] Problems playing ongoing recordings?

2008-03-27 Thread Artur Skawina
VDR User wrote: > On Thu, Mar 27, 2008 at 9:19 AM, Artur Skawina <[EMAIL PROTECTED]> wrote: >> I have a similar setup, just with 100M ethernet instead of wifi and NFS >> instead >> of samba. wifi could be a problem, but if you're able to watch the same >&g

[vdr] [PATCH] Direct I/O support v1

2008-03-27 Thread Artur Skawina
This change makes vdr write the video stream directly to disk, bypassing OS caches. O_DIRECT is used if it is supported, falling back to "normal" I/O and fadvise() if not. Only recording is affected, playback remains unchanged. I did this to see if using direct i/o made sense for vdr, wasn't conv

Re: [vdr] Problems playing ongoing recordings?

2008-03-31 Thread Artur Skawina
alexw wrote: > On Friday 28 March 2008 14:52:38 alexw wrote: >> On Thursday 27 March 2008 18:22:35 Artur Skawina wrote: >>> VDR User wrote: >>>> On Thu, Mar 27, 2008 at 9:19 AM, Artur Skawina <[EMAIL PROTECTED]> wrote: >>>>> I have a similar

Re: [vdr] Problems playing ongoing recordings?

2008-03-31 Thread Artur Skawina
Alexw wrote: Sometimes the player stops in the middle of a recording due to a zero size request. Here is the log: vdr: [3836] dvbplayer thread started (pid=3643, tid=3836) vdr: [3836] resuming replay at index 1950 (0:01:18.01) vdr: [3837] non blocking file reader thread started (pid=3643, tid=3

Re: [vdr] Problems playing ongoing recordings?

2008-04-02 Thread Artur Skawina
JJussi wrote: > On Wednesday, 2. Aprilta 2008 05:11:37 VDR User wrote: > >> Playback is faster then watching live tv?! Maybe if you skip past the >> commercials or something! I've started playing back a recording many >> times before it was finished and never had a problem with lockup or >> that

Re: [vdr] Control VDR with RF remote

2008-07-12 Thread Artur Skawina
Peer Oliver Schmidt wrote: > Hello Michael, > >> Does anybody use RF remote control with VDR instead of IR? How to >> configure such remotes? > > I used the ATI RemoteWonder with it. LIRC has support for it. Or, if your remote is supported by the kernel input layer, you can use the remote plugi

Re: [vdr] Control VDR with RF remote

2008-07-12 Thread Artur Skawina
Wolfgang Fritz wrote: > Artur Skawina schrieb: >> Peer Oliver Schmidt wrote: >>> Hello Michael, >>> >>>> Does anybody use RF remote control with VDR instead of IR? How to >>>> configure such remotes? >>> I used the ATI RemoteWonde

Re: [vdr] Control VDR with RF remote

2008-07-13 Thread Artur Skawina
Wolfgang Fritz wrote: > Artur Skawina schrieb: >> sure, patch vs 2.6.25 below. These are just the minimal changes needed to >> make >> ati-remote work w/ one type of medion rf remotes (P/N 20018071). i did this > > Mine is P/N 20014751 afaict it looks exactly like

Re: [vdr] PCI fun (RGB/PAL over VGA at variable frame rate)

2008-08-16 Thread Artur Skawina
Gavin Hamill wrote: > Over the last days, Thomas and I have been trying to sort out why my > nearly-identical machine couldn't run his VGA sync patches properly. > > The key difference is my Radeon 7000VE is PCI, whilst his is AGP. I > tried the PCI Radeon in two old Pentium-3 era machines, and

Re: [vdr] Tuning failures for transponder-locked tuners (VDR 1.4.7)

2008-10-29 Thread Artur Skawina
Richard F wrote: > Teemu, > > I had a similar problem with budget Freecom / WT-220U USB stick tuners. > I usually had to swap multiplex/transponder to get them to re-tune reliably. > I observed that if they lost tuning, vdr made them re-try (which I saw in the > log) > but eventually would bomb o

Re: [vdr] VDR with S2API (update)

2008-12-08 Thread Artur Skawina
Udo Richter wrote: > Second: Priority and Lifetime of a recording IMHO don't belong to the > name part. This could easily fit into the info.vdr file instead. Or does > it make sense to have the same recording with different lifetime or > priority in separate folders? No and it actually causes p

Re: [vdr] Frames per second PAL vs. NTSC

2009-01-05 Thread Artur Skawina
Klaus Schmidinger wrote: > Detecting the frame rate is done by looking at the PTS values, so > it is independent of the actual broadcast system. > > Using this code for converting frame numbers into hh:mm:ss.ff... > > > #include > #include

Re: [vdr] Frames per second PAL vs. NTSC

2009-01-05 Thread Artur Skawina
Klaus Schmidinger wrote: > On 05.01.2009 13:31, Artur Skawina wrote: >> Klaus Schmidinger wrote: >>> Detecting the frame rate is done by looking at the PTS values, so >>> it is independent of the actual broadcast system. >>> >>> Using this code

Re: [vdr] channel-change-prediction, doable? stupid idea?

2009-01-23 Thread Artur Skawina
Udo Richter wrote: > On 21.01.2009 19:33, Gerald Dachs wrote: >> Assumed I have 2 free Tuners and I zapp through the channels of one >> tuner. Would it be possible to tune the 2. tuner to the same time to >> the after next channel in change direction, so that for the next >> channel change in the s

Re: [vdr] sparse DVB adapter numbers

2009-03-21 Thread Artur Skawina
Patrick Rother wrote: > For a reason not to go in details too much here, I would like to make > vdr recognise sparse DVB adapter numbers. > > I have: > > r...@vdr:/dev/dvb# ls -l > total 0 > drwxr-xr-x 2 root root 200 Mar 19 11:59 adapter0/ > drwxr-xr-x 2 root root 120 Mar 19 11:59 adapter1/ > dr

Re: [vdr] sparse DVB adapter numbers

2009-03-22 Thread Artur Skawina
Klaus Schmidinger wrote: > On 21.03.2009 14:17, Artur Skawina wrote: >> Patrick Rother wrote: >>> For a reason not to go in details too much here, I would like to make >>> vdr recognise sparse DVB adapter numbers. >>> drwxr-xr-x 2 root root 200 Mar 19 11:59

Re: [vdr] making VDR ext4-ready

2009-06-07 Thread Artur Skawina
Marcel Witte wrote: > So ext4 seems to be perfect for a video-partition, but to make it more > perfect, it would be nice if VDR could use the fallocate()-systemcall as > mentioned in the article. This would prevent fragmentation in the file system. a) i wouldn't fully trust ext4 for a few more

Re: [vdr] Is there a way to give inode entries a higher cache priority than data in the linux kernel?

2007-02-14 Thread Artur Skawina
Carsten Koch wrote: > I have a distributed VDR system in my house with a lot of disks > that are NFS mounted by VDR PCs in two rooms. > In order to conserve energy, I have used hdparm to set a spin down > delay after which the disks turn themselves off. > When /video/.update is touched (one of the

Re: [vdr] Too many open files - error

2007-02-20 Thread Artur Skawina
Kartsa wrote: > I was about to test the performance of vdr when I stumbled on this message > > ERROR: /dev/dvb/adapter0/demux0: Too many open files > > I do not recall seeing this earlier. This came when fourth simultaneous > recording started. > > Is this a vdr, dvb, or firmware issue? Seems li

Re: [vdr] Too many open files - error

2007-02-20 Thread Artur Skawina
Kartsa wrote: >>> ERROR: /dev/dvb/adapter0/demux0: Too many open files >>> >>> I do not recall seeing this earlier. This came when fourth simultaneous >>> recording started. >> dvb/dvb-core/dmxdev.c- if (i == dmxdev->filternum) { >> dvb/dvb-core/dmxdev.c- mutex_unlock(&dmxdev->mutex); >>