Elecard
June 19, 2013, 01:05:43 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Reading TS info  (Read 2205 times)
J_D
Newbie
*
Posts: 4


View Profile
« on: February 22, 2009, 11:51:55 pm »

Hi,
I'm using SDK for displaing video from TS stream from network. It all works fine. One of features I made is allowing user to choose which audio to play. Then I disconnect all audio pins on demultiplexer and connect chosen one. It's all good.

Problem is that different audio pins represent different languages, but I don't know how to read information about which languages they are. I know there are names of languages because other players do the same (VLC for example).

Thank you in advance.


Edit: Sorry,this should be in "Elecard Codec .NET SDK G4" subforum. My misstake.
« Last Edit: February 23, 2009, 12:31:59 am by J_D » Logged
IrinaM
Moderator
*****
Posts: 139


View Profile
« Reply #1 on: February 24, 2009, 10:54:59 pm »

Hello,
you can get this information from the name of output pin of the Elecard MPEG Push Demultiplexer filter. But it is a new feature and it is available in SDK version 1.2. If you have an obsolete SDK version, please contact our sales(sales@elecard.net.ru) for update.

Example of pin`s name: Audio (PID <number> @ Prog# <number>) lang: <code>

<code> - the language identifier (it is usually first three letters of language name). The code standard values are described at http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes

If the audio stream doesn`t include information about language then the field 'lang' is absent.
« Last Edit: February 24, 2009, 11:06:23 pm by IrinaM » Logged
J_D
Newbie
*
Posts: 4


View Profile
« Reply #2 on: February 24, 2009, 11:30:29 pm »

Thanks.
I have SDK 1.1, so, some workaround will be appreciated if it's possible. Anyway, this was good help, too!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!