[FFmpeg-devel] Using ffmpeg library

mohamed larbi gharib larbizard at gmail.com
Thu Oct 22 22:04:05 CEST 2015


Hi,

Thank you for your help.

I would like to get information on what library shall I use for parsing
data from a transport stream file MPEG2/h264.

I would like to use ffprobe tools but as functions in my program (written
in C) returning a structure with stream index codec_name codec_tag and
codec_type and extra information.

example:

struct stream{
       int index;
       char* codec_name;
       char* codec_tag;
       char* codec_type;
       //....
}

Actually I am using ffprobe in CLI outputting in JSON format and than I
parse the information using cJSON (https://github.com/kbranigan/cJSON) but
it is too slow.

Best regards,

-- 
Larbi Gharib
Diplômé en Génie Électrique à l'Université Laval
<http://www.larbizard.com>


More information about the ffmpeg-devel mailing list