| |||||||
| Development You want to code something for the TV-Server? Share it in here! |
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member Join Date: Oct 2006 Location: Leeds
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | 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 + ")");
}
}
Otherwise I'll have to hack my way into the code, but I rather use an "officially approved" way of doing this ![]() AL |
| | |
| | #2 (permalink) |
| MP Donator ![]() Join Date: Jan 2007 Location: Aachen Age: 26
Posts: 990
Thanks: 14
Thanked 38 Times in 34 Posts
Country: |
__________________ some of my [HowTo] guides Backup your TV-Server configuration (advanced) Backup your MediaPortal configuration WebEPG (XMLTV) configuration most annoying bugs TV + 7 or more audio channels = lockup DVD + seek = lockup |
| | |
| | #3 (permalink) |
| Portal Member Join Date: Oct 2006 Location: Leeds
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | 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 |
| | |
| | #4 (permalink) |
| Portal Developer Join Date: Oct 2006 Age: 32
Posts: 1,258
Thanks: 24
Thanked 188 Times in 99 Posts
Country: | 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 |
| | |
| | #5 (permalink) |
| Portal Member Join Date: Oct 2006 Location: Leeds
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Country: | 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 |
| | |
![]() |
| Bookmarks |
| Tags |
| audio or video, pids |
| Thread Tools | |
| Display Modes | |
|
|
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 |