Retrieving the type of file format

This forum is about all development around libVLC.
ccm201
New Cone
New Cone
Posts: 2
Joined: 30 Dec 2008 05:43

Retrieving the type of file format

Postby ccm201 » 30 Dec 2008 09:13

Hi,

I am developing a C# application in which I want to retrieve the file format type (eg. MPEG-1, MPEG-2, MPEG-4, …) of the receiving video stream. Is there any function available in VLC that can help me retrieve this information?

As an alternative I am trying to create a raw socket and read the packet from a port (say 1234). Then I am separating the IP & UDP Header and reading the PT (Payload Type) from RTP Header. This gives the value as 33 which, I suppose, represent ‘MP2T’. For all the video types that are received, the value for PT is 33. (I am streaming video on RTP using VLC, where Encapsulation Method = MPEG TS, by default). Can someone please elaborate on this and suggest the next step for getting the file format information?

Any help would be highly appreciated.

Thanks in advance.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Retrieving the type of file format

Postby Jean-Baptiste Kempf » 30 Dec 2008 18:35

Demuxer or Codec?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ccm201
New Cone
New Cone
Posts: 2
Joined: 30 Dec 2008 05:43

Re: Retrieving the type of file format

Postby ccm201 » 31 Dec 2008 05:31

Hi,

I want the Codec information.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests