Hi, what is a safe way to determine within a plugin, whether the stream it is receiving from VDR is a radio or a tv stream? There are tv streams with slowly changing still pictures, there are radio plugins which insert grafical information, so I am not sure if this could be achived by analysing the stream. Of cause there is the video pid. Is there a standard way to get that to the plugin? Do I think to complicated or am I missing something? The plugin needs to know within less than 100ms after start of stream. Joerg
Am 27.01.2016 um 14:45 schrieb Stefan Braun:
Hi, i do this in my plugins in the following way (Channel is a cChannel object): bool isRadio = !Channel->Vpid() && Channel->Apid(0);
cheers Louis
Well, I should have mentioned, that this is about a player plugin. So the stream it receives from VDR might be a recording as well. The question more precisely is, how do I get the video pid and audio pid (or be sure there is no video pid) out of the stream. I guess I need to parse it. Or if there is a better way of doing this. Joerg
*Gesendet:* Mittwoch, 27. Januar 2016 um 11:48 Uhr *Von:* "Joerg Riechardt" J.Riechardt@gmx.de *An:* "vdr@linuxtv.org" vdr@linuxtv.org *Betreff:* [vdr] determine within plugin, whether radio or tv station Hi, what is a safe way to determine within a plugin, whether the stream it is receiving from VDR is a radio or a tv stream? There are tv streams with slowly changing still pictures, there are radio plugins which insert grafical information, so I am not sure if this could be achived by analysing the stream. Of cause there is the video pid. Is there a standard way to get that to the plugin? Do I think to complicated or am I missing something? The plugin needs to know within less than 100ms after start of stream. Joerg
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
On 27.01.2016 19:58, Joerg Riechardt wrote:
Am 27.01.2016 um 14:45 schrieb Stefan Braun:
Hi, i do this in my plugins in the following way (Channel is a cChannel object): bool isRadio = !Channel->Vpid() && Channel->Apid(0);
cheers Louis
Well, I should have mentioned, that this is about a player plugin. So the stream it receives from VDR might be a recording as well. The question more precisely is, how do I get the video pid and audio pid (or be sure there is no video pid) out of the stream. I guess I need to parse it. Or if there is a better way of doing this. Joerg
Maybe the function cPlayer::DeviceIsPlayingVideo() can help?
Klaus
Am 28.01.2016 um 15:58 schrieb Klaus Schmidinger:
On 27.01.2016 19:58, Joerg Riechardt wrote:
Am 27.01.2016 um 14:45 schrieb Stefan Braun:
Hi, i do this in my plugins in the following way (Channel is a cChannel object): bool isRadio = !Channel->Vpid() && Channel->Apid(0);
cheers Louis
Well, I should have mentioned, that this is about a player plugin. So the stream it receives from VDR might be a recording as well. The question more precisely is, how do I get the video pid and audio pid (or be sure there is no video pid) out of the stream. I guess I need to parse it. Or if there is a better way of doing this. Joerg
Maybe the function cPlayer::DeviceIsPlayingVideo() can help?
Klaus
Do you mean, isPlayingVideo should be implemented in the plugin the way it is done in dvbffhddevice.c, or do you mean VDR could push the information detected in cDevice::PlayTs() to the plugin? If the later, could you elaborate on how to make VDR do that and how to receive it in the plugin? Thanks, Joerg
On 30.01.2016 13:00, Joerg Riechardt wrote:
Am 28.01.2016 um 15:58 schrieb Klaus Schmidinger:
On 27.01.2016 19:58, Joerg Riechardt wrote:
Am 27.01.2016 um 14:45 schrieb Stefan Braun:
Hi, i do this in my plugins in the following way (Channel is a cChannel object): bool isRadio = !Channel->Vpid() && Channel->Apid(0);
cheers Louis
Well, I should have mentioned, that this is about a player plugin. So the stream it receives from VDR might be a recording as well. The question more precisely is, how do I get the video pid and audio pid (or be sure there is no video pid) out of the stream. I guess I need to parse it. Or if there is a better way of doing this. Joerg
Maybe the function cPlayer::DeviceIsPlayingVideo() can help?
Klaus
Do you mean, isPlayingVideo should be implemented in the plugin the way it is done in dvbffhddevice.c, or do you mean VDR could push the information detected in cDevice::PlayTs() to the plugin? If the later, could you elaborate on how to make VDR do that and how to receive it in the plugin?
From within your derived cPlayer class simply call DeviceIsPlayingVideo(). It returns true if any video data has been encountered.
Klaus