FFMPEG API

Examples and samples for those who develop software with FFmpeg.
Post Reply
samalgs
Posts: 3
Joined: Tue Dec 13, 2016 5:21 am

FFMPEG API

Post by samalgs » Tue Dec 13, 2016 5:55 am

Hii,

How to know what are the FFMpeg APIs are used during a FFMpeg Command.
e.g.
A simple command FFmpeg -i Input_file output_file
is calling APIs like

av_register_all()
avformat_open_input(&FFMpegContext, fileNameBuffer, NULL, NULL)
avformat_find_stream_info(FFMpegContext, NULL)
avcodec_find_decoder(codec_id)
avcodec_decode_video2(pVideoCodecCtx, pFrame, &frameFinished, &avPacket)
etc..

Thanks

bsenftner
Posts: 11
Joined: Thu Dec 15, 2016 9:01 pm

Re: FFMPEG API

Post by bsenftner » Fri Jan 13, 2017 10:26 pm

As far as I have been able to tell, the only means is to compile as debug on some flavor of Linux and then step-wise debug your media's logic traveling through the ff-executable you're interested. I am doing that on ubuntu at the moment, to debug a Windows video playback library. Creating a Virtualbox unbuntu instance, with an operating and debuggable suite of ffmpeg executables took about a day. The compile guides on ffmpeg for unbuntu worked without issue.

After that, the source code itself is fairly well documented, headers specifically. What I'm lacking is good overview of avfilter, as it appears that might be necessary to filter out corrupted streamed data. But I'm not 100% on that...

Anyone knowing a better method, I'd love to know.

Post Reply