Retrieving the type of file format
Posted: 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.
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.