Changes between Version 4 and Version 5 of Using libav*


Ignore:
Timestamp:
Sep 2, 2012, 7:52:30 AM (4 years ago)
Author:
rogerdpack
Comment:

add tip on determining values

Legend:

Unmodified
Added
Removed
Modified
  • Using libav*

    v4 v5  
    2727= Hints = 
    2828 
     29== libavcodec == 
     30 
     31Determining the right values to pass to AVCodecContext: 
     32 
     33One user [https://lists.ffmpeg.org/pipermail/ffmpeg-user/2012-June/007410.html shared] this advice for determining all the correct values: 
     34 
     35 [An] approach to figuring this out is: 
     36 
     37 1. come up with the ffmpeg app command line which does what you want 
     38 
     39 2. use the gdb debugger to execute the ffmpeg_g app, put a breakpoint on avcodec_encode_audio2() (or whichever method you need), and see what values the ffmpeg app uses for AVPacket and for the (audio or otherwise) related fields in AVCodecContext. 
     40 
    2941== libswresample == 
    3042