MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2007-08-21, 11:44   #1 (permalink)
Portal Member
 
Join Date: Oct 2006
Location: Leeds
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default Audio/Video PIDs

Hi there,

I was wondering if there is a way of programmatically finding out the Audio/Video PIDs of a given channel. I have tried using something like this:

Code:
            // Lets get the desired channel
            Channel channel = GetChannel(channelID);

            if (channel != null)
            {
                // Try to get the PIDs out of this one...
                IList tuningdetails = channel.ReferringTuningDetail();
                
                foreach (TuningDetail td in tuningdetails)
                {
                    _log.Debug("MPController: Video PID (" + td.VideoPid + ") - Audio PID (" + td.AudioPid + ")");
                }
            }
But this returns -1 for both PIDs. Looking at the code for Channel.ReferringTuningDetail() it simply gets these from the Database, and from reading through the forums it looks like these are never stored anyway as TVEngine autodetects them every time a channel is tuned in. So I guess the question is: Is there any way of retrieving the PIDs for any channel with the currently available API, or are there plans to implement this?

Otherwise I'll have to hack my way into the code, but I rather use an "officially approved" way of doing this


AL
drfonz is offline   Reply With Quote
Old 2007-08-21, 13:41   #2 (permalink)
MP Donator
 
level20peon's Avatar
 
Join Date: Jan 2007
Location: Aachen
Age: 26
Posts: 990
Thanks: 14
Thanked 38 Times in 34 Posts

Country:

My System

Send a message via ICQ to level20peon
Default

Hello drfonz,

try using TSreaderLite, refer to this thread for more information.


-level20peon
level20peon is offline   Reply With Quote
Old 2007-08-21, 17:42   #3 (permalink)
Portal Member
 
Join Date: Oct 2006
Location: Leeds
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

HI there, thanks for the info, but what I'm looking for is to do this programmatically with TVE3's API and not with a 3rd party tool as I need the information within my program which is a client for TVE3.

Thanks!
AL
drfonz is offline   Reply With Quote
Old 2007-08-21, 17:55   #4 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,258
Thanks: 24
Thanked 188 Times in 99 Posts

Country:

My System

Default

Sorry, that is not possible.
The pids are replaced by TvServer with fake pids.
They are not held/stored (not even temporarely) by TvServer.
So they are not accessable by any API.
For what reason do you need these infos?
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Old 2007-08-22, 08:36   #5 (permalink)
Portal Member
 
Join Date: Oct 2006
Location: Leeds
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Hi gemx,

We are putting together a proof of concept system where the client is a set top box. The STB can extract the PIDs from the PAT/PMT tables, but at this point, until development is concluded on that side we needed a way of communicating these to the client from the server (we use Web Services for Server/Client comms).

So the idea was that the sever could send both the RTSP address as well as the Audio/Video PIDs for the client to quickly process these... This would be only a temporary solution (demo time approaches and client code is not mature yet!)

When you say that fake PIDs are used, are these placed on a new PAT/PMT set within the TS for the client to process?

Thanks!
AL
drfonz is offline   Reply With Quote
Reply

Bookmarks

Tags
audio or video, pids

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No audio/video maxtrash pre 1.0 RC1 11 2008-04-06 23:19
no video/ no audio RoyH Get Support 2 2007-02-12 21:42
TV audio/video skew after audio playback Al_Capone fixed 0.2.0.0 bugs 1 2006-12-18 08:07
Video Pids apollos General Support 0 2006-10-31 22:58
cant choose my video/audio capture card as audio capt alf__ General Support 0 2005-12-14 18:19


All times are GMT +1. The time now is 02:37.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress