Processing a .trp and outputing the codec details

This forum is about all development around libVLC.
johnnyturbo3
New Cone
New Cone
Posts: 2
Joined: 21 Aug 2010 11:43

Processing a .trp and outputing the codec details

Postby johnnyturbo3 » 09 Mar 2011 15:48

I'm sorry if this is in the wrong part of the forum, but nothing else seemed suitable.

I'm developing an application that gathers a video's details/statistics and puts these details into a database.
I want to use VLC to play/analyse a .trp (Transport Stream) file, gather the codec details/statistics and output them to a text file/or store them in some variables.
This can be done (without the text file dump) using the GUI VLCPlayer [Tools -> Codec Information], so I know VLC has the capabilities.

I'm asking whether someone could point me in the right direction. Are codec details retrievable using the libVLC? Or are there other VLC projects, such as Multicat, that can do this via command line?

Thanks for your help.

sherington
Cone that earned his stripes
Cone that earned his stripes
Posts: 491
Joined: 10 Sep 2008 11:57
VLC version: master
Operating System: Linux

Re: Processing a .trp and outputing the codec details

Postby sherington » 09 Mar 2011 16:17

I'm sorry if this is in the wrong part of the forum, but nothing else seemed suitable.

I'm developing an application that gathers a video's details/statistics and puts these details into a database.
I want to use VLC to play/analyse a .trp (Transport Stream) file, gather the codec details/statistics and output them to a text file/or store them in some variables.
This can be done (without the text file dump) using the GUI VLCPlayer [Tools -> Codec Information], so I know VLC has the capabilities.

I'm asking whether someone could point me in the right direction. Are codec details retrievable using the libVLC? Or are there other VLC projects, such as Multicat, that can do this via command line?

Thanks for your help.
Is this what you want?

libvlc_media.h:

Code: Select all

VLC_PUBLIC_API int libvlc_media_get_stats( libvlc_media_t *p_md, libvlc_media_stats_t *p_stats ); VLC_PUBLIC_API int libvlc_media_get_tracks_info( libvlc_media_t *p_md, libvlc_media_track_info_t **tracks );


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 4 guests