Hi,
is there a simple way to simulate recordings when I have no dvb hardware?
The reason is, that I need to test some new features in my plugin on my development system (no dvb hardware + xine) and therefore have to do many recordings (also more that one concurrently). It would be sufficient, if the recordings only contain black screens. Can I add any plugin, that simulates a recording device or patch parts of VDR in a way, that it doesn't mind if there's no device? streamdev is no real solution, since I do not want to depend on my real VDR system.
Thanks,
Christian
On Fri, Sep 09, 2005 at 05:29:14PM +0200, Christian Wieninger wrote:
is there a simple way to simulate recordings when I have no dvb hardware?
Yes. I did exactly this when I wanted to convert some MPEG TS dumps (containing just the PIDs of the TV channel in question) to VDR format. I hard-coded the file name to the vdr binary to the place where it would open the DVB device. Note that vdr will be receiving the stream at much higher speed, resulting in very many dropped frames in live view. I hit the Record button very quickly after starting the patched vdr. I added some junk to the beginning of the MPEG TS file to get the start of the payload recorded.
The reason is, that I need to test some new features in my plugin on my development system (no dvb hardware + xine) and therefore have to do many recordings (also more that one concurrently).
I'm not sure if the simple modification is enough. You may want to somehow throttle the reading from the file, if your plugin can't keep up with the data rate of the file system. Maybe read from a named pipe that is filled by another process with appropriate delays.
Marko
On Fri, Sep 09, 2005 at 09:41:54PM +0300, Marko Mäkelä wrote:
keep up with the data rate of the file system. Maybe read from a named pipe that is filled by another process with appropriate delays.
Just wanted to chime in here with the suggestion to use a program called 'buffer' which does just this - limits the amount of data per second that will be passed unchanged from its stdin to stdout :)
It's in Debian as package name 'buffer' and you'll be able to download the unpatched source code from http://packages.debian.org/buffer
Cheers, Gavin.