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

Tom Evans tevans.uk at googlemail.com
Mon Feb 20 16:36:13 CET 2012

On Sun, Feb 19, 2012 at 1:26 PM, Journeyer Jeonghum
<journeyerhum at gmail.com> 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().

Since you are already using gdb:

> gdb ffmpeg
> br oggvorbis_encode_frame
> # alternatively, br libvorbis.c:300 (replace 300 with line number)
> run  -i "winlogon.wav" -t 60 -ar 44100 -ab 128k -ac 2 -acodec  libvorbis winlogon.ogg
> # wait for breakpoint to be hit
> bt

You may want to make your build a bit more debug friendly, eg by
configuring with --enable-debug=3 and --disable-stripping.



More information about the ffmpeg-user mailing list