[FFmpeg-user] Which function calls libvorbis.c::oggvorbis_encode_frame()?

Mike Scheutzow mjs973 at optonline.net
Sun Feb 19 15:39:29 CET 2012

Journeyer Jeonghum wrote:
> Hi,
> I am now studying ffmpeg source code expecially about vorbis encoder part.
> When I try a command below,
> ffmpeg -i "winlogon.wav" -t 60 -ar 44100 -ab 128k -ac 2 -acodec
> libvorbis winlogon.ogg
> I can see that oggvorbis_encode_frame() in libvorbis.c is executed!
> Now I want to know which function calls oggvorbis_encode_frame().
> ...
> "ff_libvorbis_encoder" is maybe used via some macro functions so that
> I can't find places that uses it...

The calling function is avcodec_encode_video().

Do you use the gdb debugger? It can tell you the calling order using the 
"bt" command. Put a breakpoint on the function, and when the breakpoint 
halts the application execution, you can use that command to answer the 
question you ask.

Mike Scheutzow

More information about the ffmpeg-user mailing list