Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Writing a cDevice plugin



Reinhard Nissl wrote:
> 
> Hi,
> 
> Klaus Schmidinger wrote:
> 
> >>>>>>I'm writing a plugin for playback by using xine. OSD and playback of existing
> >>>>>>recordings seem to work.
> >>>>>>
> >>>>>>My problem is, that I don't know, how to get VDR to supply the live stream of
> >>>>>>my Hauppage Nova-S to my plugin.
> >>>>>
> >>>>>Since I suppose your cDevice derived class doesn't overwrite the ProvidesChannel()
> >>>>
> >>>>That's correct.
> >>>>
> >>>>>function, VDR should always automatically go into transfer mode when you switch
> >>>>>to a channel that your Novs-S provides. There should be nothing extra you would
> >>>>
> >>>>At least I can switch channels and VDR doesn't complain about "Channel not
> >>>>available" as it did some days ago, when I didn't load the dvb drivers.
> >>>>
> >>>>>have to do.
> >>>>
> >>>>But I do not get any calls to PlayVideo(). Is it OK, that my primary DVB
> >>>>interface is 2? Without loading the dvb drivers it was 1.
> >>>
> >>>Your primary device must be the device provided by the plugin.
> >>
> >>I think, this is true, because when selecting interface 1, I no longer see the
> >>OSD.
> >>
> >>>When you switch to an actual channel, a "transfer mode" thread should
> >>>be started automatically.
> >>
> >>How can I prove this?
>  >
>  > Check the log file. There should be a message like "Transfer thread started".
> 
> Looks ok to me.
> 
> Aug 29 11:32:17 video vdr[1423]: VDR version 1.2.2 started
> Aug 29 11:32:17 video vdr[1423]: loading plugin:
> ./PLUGINS/lib/libvdr-xine.so.1.2.2
> Aug 29 11:32:17 video vdr[1423]: loading /video/setup.conf
> Aug 29 11:32:17 video vdr[1423]: loading /video/channels.conf
> Aug 29 11:32:17 video vdr[1423]: loading /video/timers.conf
> Aug 29 11:32:17 video vdr[1423]: loading /video/remote.conf
> Aug 29 11:32:17 video vdr[1423]: probing /dev/dvb/adapter0/frontend0
> Aug 29 11:32:17 video vdr[1426]: EIT processing thread started (pid=1426) - master
> Aug 29 11:32:17 video vdr[1427]: tuner thread started on device 1 (pid=1427)
> Aug 29 11:32:17 video vdr[1423]: probing /dev/dvb/adapter1/frontend0
> Aug 29 11:32:17 video vdr[1423]: found 1 video device
> Aug 29 11:32:17 video vdr[1423]: initializing plugin: xine (0.0.1): Plugin for
> "software only" playback using xine.
> Aug 29 11:32:17 video vdr[1423]: setting primary device to 2
> Aug 29 11:32:17 video vdr[1423]: SVDRP listening on port 2001
> Aug 29 11:32:17 video vdr[1423]: starting plugin: xine
> Aug 29 11:32:20 video vdr[1437]: KBD remote control thread started (pid=1437)
> Aug 29 11:32:20 video vdr[1423]: remote control KBD - keys known
> Aug 29 11:32:20 video vdr[1423]: switching to channel 5
> Aug 29 11:32:20 video vdr[1438]: transfer thread started (pid=1438)
> Aug 29 11:32:20 video vdr[1439]: receiver thread started on device 1 (pid=1439)
> Aug 29 11:32:20 video vdr[1423]: setting watchdog timer to 60 seconds
> Aug 29 11:32:26 video vdr[1423]: max. latency time 1 seconds
> Aug 29 11:32:28 video vdr[1423]: switching to channel 6
> Aug 29 11:32:28 video vdr[1438]: transfer thread ended (pid=1438)
> Aug 29 11:32:28 video vdr[1439]: receiver thread ended on device 1 (pid=1439)
> Aug 29 11:32:28 video vdr[1423]: buffer stats: 0 (0%) used
> Aug 29 11:32:28 video vdr[1442]: transfer thread started (pid=1442)
> Aug 29 11:32:28 video vdr[1443]: receiver thread started on device 1 (pid=1443)
> Aug 29 11:32:29 video vdr[1423]: switching to channel 5
> Aug 29 11:32:29 video vdr[1442]: transfer thread ended (pid=1442)
> Aug 29 11:32:29 video vdr[1443]: receiver thread ended on device 1 (pid=1443)
> Aug 29 11:32:29 video vdr[1423]: buffer stats: 0 (0%) used

There is no data being put into the ringbuffer.
I don't know wha that is, but in that case it's no wonder your
plugin's PlayVidoe() is never called.

I believe you also wrote that any recordings you make are of 0 length.
Are you sure your Nova-S is receiving anything at all?
Do you have a full featured card with which to test your channel setup?

Klaus

> Aug 29 11:32:29 video vdr[1444]: transfer thread started (pid=1444)
> Aug 29 11:32:29 video vdr[1445]: receiver thread started on device 1 (pid=1445)


-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index