1. 程式人生 > >FFmpeg/ffplay for VC 編譯錯誤總結

FFmpeg/ffplay for VC 編譯錯誤總結

宣告:本文,部分來源於網路集合整理,另一部分來自於本人遇到的問題和解決方法;

編譯SDK

編譯之後,執行make install後,在C:/MSYS/local會生成bin、include、lib等資料夾。這樣ffmpeg的編譯環境就幫我生成了一個SDK,這個SDK在linux上用C來開發是沒有問題的,我們需要使這個SDK在MS Visual Studio 開發環境中能用,編譯的時候會碰到一大堆問題。我的環境是VS2008。

建立工程:

ffplay:

我們用ffplay驗證我們的SDK,如果發現SDK問題,就可以得到及時的解決。建立一個ffplay的空工程,把ffplay.c,cmdutils.c,cmdutils.h,config.h匯入這個空工程中,然後在VS2008中配置標頭檔案目錄和lib庫目錄(注意:ffplay需要用sdl,把sdl也加進入)

ffmpeg.c - 2.6.2:

cmdutils.h + cmdutils_common_opts.h + ffmpeg.h + config.h;

cmdutils.c + ffmpeg.c + ffmpeg_dxva2.c + ffmpeg_filter.c + ffmpeg_opt.c

編譯並排錯

下面是在VS2008中,編譯ffplay出現的錯誤,有些錯誤時ffplay中出現的,有些事sdk的問題。

fatal error C1083: 無法開啟包括檔案:“inttypes.h”: No such file or directory

在vs2008下沒有這個檔案,實際上這個檔案無非也就是一些整形定義而已,可以直接註釋掉這個包含,自己建立這個檔案,放到inclue/libavutil下,include改為#include

"libavutil/inttypes.h"

fatal error C1083: 無法開啟包括檔案:“stdint.h”: No such file or directory

copy C:/MSYS/include下的stdint.h到libavutil中。修改#include<stdint.h>#include“stdint.h”

fatal error C1083: 無法開啟包括檔案:“libavdevice/avdevice.h”: No such file or directory

用不著,直接註釋

ffplay.cpp中報錯

fatal error C1083: 無法開啟包括檔案:“libavcodec/audioconvert.h”: No such file or directory

fatal error C1083: 無法開啟包括檔案:“libavcodec/colorspace.h”: No such file or directory

make install安裝的標頭檔案不全,從libavcodec中copy這兩個標頭檔案

fatal error C1083: 無法開啟包括檔案:“unistd.h”: No such file or directory

許多在Linux下開發的C程式都需要標頭檔案unistd.h,但VC中沒有個標頭檔案,

所以用VC編譯總是報錯。把下面的內容儲存為unistd.h,可以解決這個問題。

/** This file is part of the Mingw32 package.

*  unistd.h maps     (roughly) to io.h

*/

#ifndef _UNISTD_H

#define _UNISTD_H

#include <io.h>

#include <process.h>

#endif /* _UNISTD_H */

提示

static int wanted_stream[AVMEDIA_TYPE_NB]={

    [AVMEDIA_TYPE_AUDIO]=-1,

    [AVMEDIA_TYPE_VIDEO]=-1,

    [AVMEDIA_TYPE_SUBTITLE]=-1,

};語法錯誤

VC的標準C++不支援這個賦值方式,我們改為

static int wanted_stream[AVMEDIA_TYPE_NB]=

{

     -1,

     -1,

     0,

     -1,

     0

};

error C3861: “rint”: 找不到識別符號

rint函式是個四捨五入的方法,我們自己實現

inline long rint(double x)
{
if(x >= 0.)

return (long)(x + 0.5);
else
return (long)(x - 0.5);
}

或者新增新的定義:

#define lrint(f) (f>=0?(int32_t)(f+(double)0.5):(int32_t)(f-(double)0.4))
#define lrintf(f) (f>=0?(int32_t)(f+(float)0.5):(int32_t)(f-(float)0.4))
#define llrintf(f) (f>=0?(int64_t)(f+(double)0.5):(int64_t)(f-(double)0.4))
#define llrint(f) (f>=0?(int64_t)(f+(float)0.5):(int64_t)(f-(float)0.4))


#define log2(x) (log(x) * 1.44269504088896340736)  

指示FFTSample data[2][2*nb_freq];表示式錯誤

我們知道標準C++不支援動態陣列。修改為

FFTSample *data[2];

data[1] = malloc(sizeof(FFTSample) * 2*nb_freq);

data[0] = malloc(sizeof(FFTSample) * 2*nb_freq);

最後釋放

free(data[0]);

free(data[1]);

error C3861: “usleep”: 找不到識別符號

VC中沒有usleep,usleep是微妙級別的,所以需要把程式碼改為

usleep(is->audio_st &&is->show_audio ?rdftspeed*1000 : 5000);

to

Sleep (is->audio_st &&is->show_audio ?rdftspeed*1 : 5);

指出    ap->time_base= (AVRational){1, 25};語法錯誤。

還是標準C++不支援這種語法,修改為

ap->time_base.num = 1;

ap->time_base.den = 25;

建議用:av_make_q函式,更方便;

error C2054: 在“inline”之後應輸入“(”

這是因為c不支援inline,我們把cmdutils.c改為cmdutils.cpp,把ffplay.c改為ffplay.cpp。

連結錯誤:

現在編譯可以通過,但是現實一大堆庫沒有連結(好像有77個連結錯誤),把

avcodec-52.lib

avformat-52.lib

avutil-50.lib

swscale-0.lib

加進去還是沒用,發現是我們用了ffplay.cpp,需要在ffmpeg所有標頭檔案中加。

#ifdef  __cplusplus

extern "C" {

#endif

#ifdef  __cplusplus

}

#endif

這樣就可以正確連結了。

最後可以正確編譯出ffplay.exe。我們把include、lib和ffmpeg編譯出來的dll打包,就可以釋出了。

//新問題:

1:pollfd 結構重定義;

    os_support.h 和 winsock2.h 結構重定義,將os_support.h檔案中的pollfd結構改為,如下:

#if !HAVE_WINSOCK2_H
struct pollfd {
    int fd;
    short events;  /* events to look for */
    short revents; /* events that occurred */
};
#endif

2:

出現 'class' : missing tag name

將void show_help_children(const AVClass *class, int flags);

改成void show_help_children(const AVClass *avclass, int flags);

cmdutils.c檔案中:  可能編譯通過,但是在vc的錯誤列表中可以看到這裡需要修改:

void show_help_children(const AVClass * class, int flags)
{
    const AVClass *child = NULL;
    if (class->option) {
        av_opt_show2(&class, NULL, flags, 0);
        printf("\n");
    }


    while (child = av_opt_child_class_next(class, child))
        show_help_children(child, flags);
}

修改為:

void show_help_children(const AVClass * avclass, int flags)
{
    const AVClass *child = NULL;
    if (avclass->option) {
        av_opt_show2(&avclass, NULL, flags, 0);
        printf("\n");
    }


    while (child = av_opt_child_class_next(avclass, child))
        show_help_children(child, flags);
}

同理:

static void expand_filename_template(AVBPrint *bp, const char *template,
                                     struct tm *tm)

修改為:

static void expand_filename_template(AVBPrint *bp, const char * avtemplate,
                                     struct tm *tm)

3:

INT64_MAX 未定義;

在 stdint.h 標頭檔案中將條件編譯取消;

4:

error C3861: “snprintf”: 找不到識別符號

新增:#define snprintf _snprintf

5:

error C2146: 語法錯誤 : 缺少“)”(在識別符號“PRIx64”的前面)

inttypes.h的內容改為如下:

// ISO C9x  compliant inttypes.h for Microsoft Visual Studio
// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
//
//  Copyright (c) 2006 Alexander Chemeris
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   1. Redistributions of source code must retain the above copyright notice,
//      this list of conditions and the following disclaimer.
//
//   2. Redistributions in binary form must reproduce the above copyright
//      notice, this list of conditions and the following disclaimer in the
//      documentation and/or other materials provided with the distribution.
//
//   3. The name of the author may be used to endorse or promote products
//      derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _MSC_VER // [
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]

#ifndef _MSC_INTTYPES_H_ // [
#define _MSC_INTTYPES_H_

#if _MSC_VER > 1000
#pragma once
#endif

#include "stdint.h"

// 7.8 Format conversion of integer types

typedef struct {
   intmax_t quot;
   intmax_t rem;
} imaxdiv_t;

// 7.8.1 Macros for format specifiers

//#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) // [   See footnote 185 at page 198
#if defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) // [   See footnote 185 at page 198 //yao;
// The fprintf macros for signed integers are:
#define PRId8       "d"
#define PRIi8       "i"
#define PRIdLEAST8  "d"
#define PRIiLEAST8  "i"
#define PRIdFAST8   "d"
#define PRIiFAST8   "i"

#define PRId16       "hd"
#define PRIi16       "hi"
#define PRIdLEAST16  "hd"
#define PRIiLEAST16  "hi"
#define PRIdFAST16   "hd"
#define PRIiFAST16   "hi"

#define PRId32       "I32d"
#define PRIi32       "I32i"
#define PRIdLEAST32  "I32d"
#define PRIiLEAST32  "I32i"
#define PRIdFAST32   "I32d"
#define PRIiFAST32   "I32i"

#define PRId64       "I64d"
#define PRIi64       "I64i"
#define PRIdLEAST64  "I64d"
#define PRIiLEAST64  "I64i"
#define PRIdFAST64   "I64d"
#define PRIiFAST64   "I64i"

#define PRIdMAX     "I64d"
#define PRIiMAX     "I64i"

#define PRIdPTR     "Id"
#define PRIiPTR     "Ii"

// The fprintf macros for unsigned integers are:
#define PRIo8       "o"
#define PRIu8       "u"
#define PRIx8       "x"
#define PRIX8       "X"
#define PRIoLEAST8  "o"
#define PRIuLEAST8  "u"
#define PRIxLEAST8  "x"
#define PRIXLEAST8  "X"
#define PRIoFAST8   "o"
#define PRIuFAST8   "u"
#define PRIxFAST8   "x"
#define PRIXFAST8   "X"

#define PRIo16       "ho"
#define PRIu16       "hu"
#define PRIx16       "hx"
#define PRIX16       "hX"
#define PRIoLEAST16  "ho"
#define PRIuLEAST16  "hu"
#define PRIxLEAST16  "hx"
#define PRIXLEAST16  "hX"
#define PRIoFAST16   "ho"
#define PRIuFAST16   "hu"
#define PRIxFAST16   "hx"
#define PRIXFAST16   "hX"

#define PRIo32       "I32o"
#define PRIu32       "I32u"
#define PRIx32       "I32x"
#define PRIX32       "I32X"
#define PRIoLEAST32  "I32o"
#define PRIuLEAST32  "I32u"
#define PRIxLEAST32  "I32x"
#define PRIXLEAST32  "I32X"
#define PRIoFAST32   "I32o"
#define PRIuFAST32   "I32u"
#define PRIxFAST32   "I32x"
#define PRIXFAST32   "I32X"

#define PRIo64       "I64o"
#define PRIu64       "I64u"
#define PRIx64       "I64x"
#define PRIX64       "I64X"
#define PRIoLEAST64  "I64o"
#define PRIuLEAST64  "I64u"
#define PRIxLEAST64  "I64x"
#define PRIXLEAST64  "I64X"
#define PRIoFAST64   "I64o"
#define PRIuFAST64   "I64u"
#define PRIxFAST64   "I64x"
#define PRIXFAST64   "I64X"

#define PRIoMAX     "I64o"
#define PRIuMAX     "I64u"
#define PRIxMAX     "I64x"
#define PRIXMAX     "I64X"

#define PRIoPTR     "Io"
#define PRIuPTR     "Iu"
#define PRIxPTR     "Ix"
#define PRIXPTR     "IX"

// The fscanf macros for signed integers are:
#define SCNd8       "d"
#define SCNi8       "i"
#define SCNdLEAST8  "d"
#define SCNiLEAST8  "i"
#define SCNdFAST8   "d"
#define SCNiFAST8   "i"

#define SCNd16       "hd"
#define SCNi16       "hi"
#define SCNdLEAST16  "hd"
#define SCNiLEAST16  "hi"
#define SCNdFAST16   "hd"
#define SCNiFAST16   "hi"

#define SCNd32       "ld"
#define SCNi32       "li"
#define SCNdLEAST32  "ld"
#define SCNiLEAST32  "li"
#define SCNdFAST32   "ld"
#define SCNiFAST32   "li"

#define SCNd64       "I64d"
#define SCNi64       "I64i"
#define SCNdLEAST64  "I64d"
#define SCNiLEAST64  "I64i"
#define SCNdFAST64   "I64d"
#define SCNiFAST64   "I64i"

#define SCNdMAX     "I64d"
#define SCNiMAX     "I64i"

#ifdef _WIN64 // [
#  define SCNdPTR     "I64d"
#  define SCNiPTR     "I64i"
#else  // _WIN64 ][
#  define SCNdPTR     "ld"
#  define SCNiPTR     "li"
#endif  // _WIN64 ]

// The fscanf macros for unsigned integers are:
#define SCNo8       "o"
#define SCNu8       "u"
#define SCNx8       "x"
#define SCNX8       "X"
#define SCNoLEAST8  "o"
#define SCNuLEAST8  "u"
#define SCNxLEAST8  "x"
#define SCNXLEAST8  "X"
#define SCNoFAST8   "o"
#define SCNuFAST8   "u"
#define SCNxFAST8   "x"
#define SCNXFAST8   "X"

#define SCNo16       "ho"
#define SCNu16       "hu"
#define SCNx16       "hx"
#define SCNX16       "hX"
#define SCNoLEAST16  "ho"
#define SCNuLEAST16  "hu"
#define SCNxLEAST16  "hx"
#define SCNXLEAST16  "hX"
#define SCNoFAST16   "ho"
#define SCNuFAST16   "hu"
#define SCNxFAST16   "hx"
#define SCNXFAST16   "hX"

#define SCNo32       "lo"
#define SCNu32       "lu"
#define SCNx32       "lx"
#define SCNX32       "lX"
#define SCNoLEAST32  "lo"
#define SCNuLEAST32  "lu"
#define SCNxLEAST32  "lx"
#define SCNXLEAST32  "lX"
#define SCNoFAST32   "lo"
#define SCNuFAST32   "lu"
#define SCNxFAST32   "lx"
#define SCNXFAST32   "lX"

#define SCNo64       "I64o"
#define SCNu64       "I64u"
#define SCNx64       "I64x"
#define SCNX64       "I64X"
#define SCNoLEAST64  "I64o"
#define SCNuLEAST64  "I64u"
#define SCNxLEAST64  "I64x"
#define SCNXLEAST64  "I64X"
#define SCNoFAST64   "I64o"
#define SCNuFAST64   "I64u"
#define SCNxFAST64   "I64x"
#define SCNXFAST64   "I64X"

#define SCNoMAX     "I64o"
#define SCNuMAX     "I64u"
#define SCNxMAX     "I64x"
#define SCNXMAX     "I64X"

#ifdef _WIN64 // [
#  define SCNoPTR     "I64o"
#  define SCNuPTR     "I64u"
#  define SCNxPTR     "I64x"
#  define SCNXPTR     "I64X"
#else  // _WIN64 ][
#  define SCNoPTR     "lo"
#  define SCNuPTR     "lu"
#  define SCNxPTR     "lx"
#  define SCNXPTR     "lX"
#endif  // _WIN64 ]

#endif // __STDC_FORMAT_MACROS ]

// 7.8.2 Functions for greatest-width integer types

// 7.8.2.1 The imaxabs function
#define imaxabs _abs64

// 7.8.2.2 The imaxdiv function

// This is modified version of div() function from Microsoft's div.c found
// in %MSVC.NET%\crt\src\div.c
#ifdef STATIC_IMAXDIV // [
static
#else // STATIC_IMAXDIV ][
_inline
#endif // STATIC_IMAXDIV ]
imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
{
   imaxdiv_t result;

   result.quot = numer / denom;
   result.rem = numer % denom;

   if (numer < 0 && result.rem > 0) {
      // did division wrong; must fix up
      ++result.quot;
      result.rem -= denom;
   }

   return result;
}

// 7.8.2.3 The strtoimax and strtoumax functions
#define strtoimax _strtoi64
#define strtoumax _strtoui64

// 7.8.2.4 The wcstoimax and wcstoumax functions
#define wcstoimax _wcstoi64
#define wcstoumax _wcstoui64


#endif // _MSC_INTTYPES_H_ ]

 6:

    AVRational tb = ist->framerate.num ? (AVRational){ist->framerate.den,
                                                      ist->framerate.num} :
                                         ist->st->time_base;

改為:

AVRational tb = ist->framerate.num ? ist->framerate : ist->st->time_base;

7:

在VC2008中編譯ffplay,有一個全域性定義:static enum ShowMode show_mode = SHOW_MODE_NONE;

但是enum ShowMode列舉型別是VideoState結構中的列舉型別,編譯會提示SHOW_MODE_NONE沒有沒定義:

解決方法:

(1):enum ShowMode從VideoState中複製一份到全域性;

enum ShowMode {         SHOW_MODE_NONE = -1, SHOW_MODE_VIDEO = 0, SHOW_MODE_WAVES, SHOW_MODE_RDFT, SHOW_MODE_NB     } ;//全域性定義;

VideoState中的宣告保留;

8:   error LNK2019: 無法解析的外部符號 _av_frame_alloc;

這個問題一般是沒有連線庫檔案或者新增cpp檔案;

但是這裡在ffmpeg中不是這個問題;

av_frame_alloc在frame.c檔案中實現:

AVFrame *av_frame_alloc(void)
{
    AVFrame *frame = av_mallocz(sizeof(*frame));


    if (!frame)
        return NULL;


    frame->extended_data = NULL;
    get_frame_defaults(frame);


    return frame;
}

但是這個函式沒有匯出到我們的lib中;

但是我們可以用另一個函式代替:

AVFrame *avcodec_alloc_frame(void),在utils.c檔案中實現,標頭檔案是avcodec.h;

AVFrame *avcodec_alloc_frame(void)
{
    AVFrame *frame = av_malloc(sizeof(AVFrame));


    if (frame == NULL)
        return NULL;


    frame->extended_data = NULL;
    avcodec_get_frame_defaults(frame);


    return frame;
}

有上述可以看出,兩個函式的區別不大,只不過AVFrame *av_frame_alloc(void)設定記憶體為0而已;

同理:

av_frame_unref(frame);  -> avcodec_get_frame_defaults(frame);

同理:

av_frame_free(&frame); -> avcodec_free_frame(&frame);

9: isnan函式,在ffplay.c中被應用;

但是在vc編譯器中,無法找到實現,所以, isnan函式可以修改 為_isnan, 包含標頭檔案;

#ifdef _WIN32
#include <float.h>  
#endif

10:在編譯ffplay的時候,我經ffmpeg中的相關的c檔案設定為cpp檔案,所以相關的標頭檔案包含要新增extern “C” ;

相當於在cpp檔案用ffmpeg,很好理解;如果是直接用c檔案會簡單一些;不過這裡用的c++,所以還是用cpp方式比較好;

11:在編譯ffplay完成後,啟動程式,發現SDL_INIT錯誤:

解決方法: 遮蔽下面的話,我道理上應該自動條件編譯遮蔽了,但是我用的ffmpeg2.0的原始碼這裡還是會編譯,所以在mfc上直接遮蔽;

#if !defined(__MINGW32__) && !defined(__APPLE__)
    //flags |= SDL_INIT_EVENTTHREAD; /* Not supported on Windows or Mac OS X */
#endif

12:我用 VC2008 + ffmpeg-2.0原始碼 編譯,修改的地方還挺多,編譯完成後,執行後直接退出,修改後,也沒有聲音,而且視訊播放太快;

然後用最新的 VC2010 + ffmpeg-2.6.2原始碼 + ffmpeg-20150421-git-a924b83-win32-dev +  ffplay編譯;

      (1): sdk中可能少很多標頭檔案,直接從原始碼中複製過來;

      (2):之前直接修改ffplay中的原始檔為cpp檔案,在MFC中編譯,現在為了省事,直接用ffplay相關的C檔案新增到MFC工程中,設定後編譯修改;

      (3):可能ffmpeg中的幾socket中的標頭檔案和Windows中的socket標頭檔案衝突,直接遮蔽ffmpeg中的結構體定義;

      (4):然後 extern "C" ,extern main函式,模擬傳入引數就可以除錯執行程式了,這個沒有問題;

      (5):關於config.h檔案,這個檔案一般是在編譯ffmpeg原始碼的時候會產生,但是這裡為了方便,我直接放到這裡;

         //--------------------------------config.h for ffplay.c-------------------------------------------------------------------------------------

 /* Automatically generated by configure - do not modify! */
 #ifndef FFMPEG_CONFIG_H
 #define FFMPEG_CONFIG_H
 #define FFMPEG_CONFIGURATION "--enable-gpl"
 #define FFMPEG_DATADIR "/usr/local/share/ffmpeg"
 #define CONFIG_SWSCALE 1
 #define ARCH_ALPHA 0
 #define ARCH_ARM 0
 #define ARCH_AVR32 0
 #define ARCH_AVR32_AP 0
 #define ARCH_AVR32_UC 0
 #define ARCH_BFIN 0
 #define ARCH_IA64 0
 #define ARCH_M68K 0
 #define ARCH_MIPS 0
 #define ARCH_MIPS64 0
 #define ARCH_PARISC 0
 #define ARCH_PPC 0
 #define ARCH_PPC64 0
 #define ARCH_S390 0
 #define ARCH_SH4 0
 #define ARCH_SPARC 0
 #define ARCH_SPARC64 0
 #define ARCH_X86 1
 #define ARCH_X86_32 1
 #define ARCH_X86_64 0
 #define HAVE_ALTIVEC 0
 #define HAVE_AMD3DNOW 1
 #define HAVE_AMD3DNOWEXT 1
 #define HAVE_ARMV5TE 0
 #define HAVE_ARMV6 0
 #define HAVE_ARMV6T2 0
 #define HAVE_ARMVFP 0
 #define HAVE_IWMMXT 0
 #define HAVE_MMI 0
 #define HAVE_MMX 1
 #define HAVE_MMX2 1
 #define HAVE_NEON 0
 #define HAVE_PPC4XX 0
 #define HAVE_SSE 1
 #define HAVE_SSSE3 1
 #define HAVE_VIS 0
 #define HAVE_BEOSTHREADS 0
 #define HAVE_OS2THREADS 0
 #define HAVE_PTHREADS 0
 #define HAVE_W32THREADS 0
 #define HAVE_ALSA_ASOUNDLIB_H 0
 #define HAVE_ALTIVEC_H 0
 //#define HAVE_ARPA_INET_H 1
 #define HAVE_ATTRIBUTE_PACKED 1
 #define HAVE_BIGENDIAN 0
 #define HAVE_BSWAP 1
 #define HAVE_CLOSESOCKET 0
 #define HAVE_CMOV 0
 #define HAVE_CONIO_H 0
 #define HAVE_DCBZL 0
 #define HAVE_DEV_BKTR_IOCTL_BT848_H 0
 #define HAVE_DEV_BKTR_IOCTL_METEOR_H 0
 #define HAVE_DEV_IC_BT8XX_H 0
 #define HAVE_DEV_VIDEO_METEOR_IOCTL_METEOR_H 0
 #define HAVE_DEV_VIDEO_BKTR_IOCTL_BT848_H 0
 #define HAVE_DLFCN_H 1
 #define HAVE_DLOPEN 1
 #define HAVE_DOS_PATHS 0
 #define HAVE_EBP_AVAILABLE 1
 #define HAVE_EBX_AVAILABLE 1
 #define HAVE_FAST_64BIT 0
 #define HAVE_FAST_CMOV 0
 #define HAVE_FAST_UNALIGNED 1
 #define HAVE_FORK 1
 #define HAVE_GETHRTIME 0
 #define HAVE_GETPROCESSTIMES 0
 //#define HAVE_GETRUSAGE 1
 #define HAVE_INET_ATON 1
 #define HAVE_INLINE_ASM 1
 #define HAVE_ISATTY 1
 #define HAVE_LDBRX 0
 #define HAVE_LIBDC1394_1 0
 #define HAVE_LIBDC1394_2 0
 #define HAVE_LLRINT 1
 #define HAVE_LOG2 1
 #define HAVE_LOONGSON 0
 #define HAVE_LRINT 1
 #define HAVE_LRINTF 1
 #define HAVE_LZO1X_999_COMPRESS 0
 #define HAVE_MACHINE_IOCTL_BT848_H 0
 #define HAVE_MACHINE_IOCTL_METEOR_H 0
 #define HAVE_MALLOC_H 1
 #define HAVE_MEMALIGN 1
 #define HAVE_MKSTEMP 1
 #define HAVE_PLD 0
 #define HAVE_POSIX_MEMALIGN 1
 #define HAVE_ROUND 1
 #define HAVE_ROUNDF 1
 #define HAVE_SDL 0
 #define HAVE_SDL_VIDEO_SIZE 0
 #define HAVE_SETMODE 0
 #define HAVE_SOCKLEN_T 1
 #define HAVE_SOUNDCARD_H 0
 //#define HAVE_POLL_H 1
 #define HAVE_SYS_MMAN_H 1
 //#define HAVE_SYS_RESOURCE_H 1
 //#define HAVE_SYS_SELECT_H 1
 #define HAVE_SYS_SOUNDCARD_H 1
 #define HAVE_SYS_VIDEOIO_H 0
 #define HAVE_TEN_OPERANDS 1
 //#define HAVE_TERMIOS_H 1
 #define HAVE_THREADS 0
 #define HAVE_TRUNCF 1
 #define HAVE_VFP_ARGS 0
 #define HAVE_VIRTUALALLOC 0
 #define HAVE_WINSOCK2_H 1
 #define HAVE_XFORM_ASM 0
 #define HAVE_YASM 1
 #define CONFIG_BSFS 1
 #define CONFIG_DECODERS 1
 #define CONFIG_DEMUXERS 1
 #define CONFIG_ENCODERS 1
 #define CONFIG_FILTERS 1
 #define CONFIG_HWACCELS 1
 #define CONFIG_INDEVS 1
 #define CONFIG_MUXERS 1
 #define CONFIG_OUTDEVS 1
 #define CONFIG_PARSERS 0
 #define CONFIG_PROTOCOLS 1
 #define CONFIG_AANDCT 1
 #define CONFIG_AVFILTER 0
 #define CONFIG_AVFILTER_LAVF 0
 #define CONFIG_AVISYNTH 0
 #define CONFIG_BEOS_NETSERVER 0
 #define CONFIG_BZLIB 0
 #define CONFIG_FASTDIV 1
 #define CONFIG_FFMPEG 1
 #define CONFIG_FFPLAY 0
 #define CONFIG_FFSERVER 1
 #define CONFIG_FFT 1
 #define CONFIG_GOLOMB 1
 #define CONFIG_GPL 1
 #define CONFIG_GPROF 0
 #define CONFIG_GRAY 0
 #define CONFIG_HARDCODED_TABLES 0
 #define CONFIG_IPV6 1
 #define CONFIG_LIBDC1394 0
 #define CONFIG_LIBDIRAC 0
 #define CONFIG_LIBFAAC 0
 #define CONFIG_LIBFAAD 0
 #define CONFIG_LIBFAADBIN 0
 #define CONFIG_LIBGSM 0
 #define CONFIG_LIBMP3LAME 0
 #define CONFIG_LIBNUT 0
 #define CONFIG_LIBOPENCORE_AMRNB 0
 #define CONFIG_LIBOPENCORE_AMRWB 0
 #define CONFIG_LIBOPENJPEG 0
 #define CONFIG_LIBSCHROEDINGER 0
 #define CONFIG_LIBSPEEX 0
 #define CONFIG_LIBTHEORA 0
 #define CONFIG_LIBVORBIS 0
 #define CONFIG_LIBX264 0
 #define CONFIG_LIBXVID 0
 #define CONFIG_MDCT 1
 #define CONFIG_MEMALIGN_HACK 0
 #define CONFIG_MLIB 0
 #define CONFIG_MPEGAUDIO_HP 1
 #define CONFIG_NETWORK 1
 #define CONFIG_NONFREE 0
 #define CONFIG_PIC 0
 #define CONFIG_POSTPROC 0
 #define CONFIG_POWERPC_PERF 0
 #define CONFIG_RDFT 1
 #define CONFIG_RUNTIME_CPUDETECT 0
 #define CONFIG_SHARED 0
 #define CONFIG_SMALL 0
 #define CONFIG_STATIC 1
 #define CONFIG_SWSCALE_ALPHA 1
 #define CONFIG_VAAPI 0
 #define CONFIG_VDPAU 0
 #define CONFIG_VERSION3 0
 #define CONFIG_X11GRAB 0
 #define CONFIG_ZLIB 1
 #define CONFIG_GPLV3 0
 #define CONFIG_LGPLV3 0
 #define CONFIG_AASC_DECODER 1
 #define CONFIG_AMV_DECODER 1
 #define CONFIG_ASV1_DECODER 1
 #define CONFIG_ASV2_DECODER 1
 #define CONFIG_AVS_DECODER 1
 #define CONFIG_BETHSOFTVID_DECODER 1
 #define CONFIG_BFI_DECODER 1
 #define CONFIG_BMP_DECODER 1
 #define CONFIG_C93_DECODER 1
 #define CONFIG_CAVS_DECODER 1
 #define CONFIG_CINEPAK_DECODER 1
 #define CONFIG_CLJR_DECODER 1
 #define CONFIG_CSCD_DECODER 1
 #define CONFIG_CYUV_DECODER 1
 #define CONFIG_DNXHD_DECODER 1
 #define CONFIG_DPX_DECODER 1
 #define CONFIG_DSICINVIDEO_DECODER 1
 #define CONFIG_DVVIDEO_DECODER 1
 #define CONFIG_DXA_DECODER 1
 #define CONFIG_EACMV_DECODER 1
 #define CONFIG_EAMAD_DECODER 1
 #define CONFIG_EATGQ_DECODER 1
 #define CONFIG_EATGV_DECODER 1
 #define CONFIG_EATQI_DECODER 1
 #define CONFIG_EIGHTBPS_DECODER 1
 #define CONFIG_EIGHTSVX_EXP_DECODER 1
 #define CONFIG_EIGHTSVX_FIB_DECODER 1
 #define CONFIG_ESCAPE124_DECODER 1
 #define CONFIG_FFV1_DECODER 1
 #define CONFIG_FFVHUFF_DECODER 1
 #define CONFIG_FLASHSV_DECODER 1
 #define CONFIG_FLIC_DECODER 1
 #define CONFIG_FLV_DECODER 1
 #define CONFIG_FOURXM_DECODER 1
 #define CONFIG_FRAPS_DECODER 1
 #define CONFIG_GIF_DECODER 1
 #define CONFIG_H261_DECODER 1
 #define CONFIG_H263_DECODER 1
 #define CONFIG_H263I_DECODER 1
 #define CONFIG_H264_DECODER 1
 #define CONFIG_H264_VDPAU_DECODER 0
 #define CONFIG_HUFFYUV_DECODER 1
 #define CONFIG_IDCIN_DECODER 1
 #define CONFIG_INDEO2_DECODER 1
 #define CONFIG_INDEO3_DECODER 1
 #define CONFIG_INTERPLAY_VIDEO_DECODER 1
 #define CONFIG_JPEGLS_DECODER 1
 #define CONFIG_KMVC_DECODER 1
 #define CONFIG_LOCO_DECODER 1
 #define CONFIG_MDEC_DECODER 1
 #define CONFIG_MIMIC_DECODER 1
 #define CONFIG_MJPEG_DECODER 1
 #define CONFIG_MJPEGB_DECODER 1
 #define CONFIG_MMVIDEO_DECODER 1
 #define CONFIG_MOTIONPIXELS_DECODER 1
 #define CONFIG_MPEG_XVMC_DECODER 0
 #define CONFIG_MPEG1VIDEO_DECODER 1
 #define CONFIG_MPEG2VIDEO_DECODER 1
 #define CONFIG_MPEG4_DECODER 1
 #define CONFIG_MPEGVIDEO_DECODER 1
 #define CONFIG_MPEG_VDPAU_DECODER 0
 #define CONFIG_MPEG1_VDPAU_DECODER 0
 #define CONFIG_MSMPEG4V1_DECODER 1
 #define CONFIG_MSMPEG4V2_DECODER 1
 #define CONFIG_MSMPEG4V3_DECODER 1
 #define CONFIG_MSRLE_DECODER 1
 #define CONFIG_MSVIDEO1_DECODER 1
 #define CONFIG_MSZH_DECODER 1
 #define CONFIG_NUV_DECODER 1
 #define CONFIG_PAM_DECODER 1
 #define CONFIG_PBM_DECODER 1
 #define CONFIG_PCX_DECODER 1
 #define CONFIG_PGM_DECODER 1
 #define CONFIG_PGMYUV_DECODER 1
 #define CONFIG_PNG_DECODER 1
 #define CONFIG_PPM_DECODER 1
 #define CONFIG_PTX_DECODER 1
 #define CONFIG_QDRAW_DECODER 1
 #define CONFIG_QPEG_DECODER 1
 #define CONFIG_QTRLE_DECODER 1
 #define CONFIG_RAWVIDEO_DECODER 1
 #define CONFIG_RL2_DECODER 1
 #define CONFIG_ROQ_DECODER 1
 #define CONFIG_RPZA_DECODER 1
 #define CONFIG_RV10_DECODER 1
 #define CONFIG_RV20_DECODER 1
 #define CONFIG_RV30_DECODER 1
 #define CONFIG_RV40_DECODER 1
 #define CONFIG_SGI_DECODER 1
 #define CONFIG_SMACKER_DECODER 1
 #define CONFIG_SMC_DECODER 1
 #define CONFIG_SNOW_DECODER 1
 #define CONFIG_SP5X_DECODER 1
 #define CONFIG_SUNRAST_DECODER 1
 #define CONFIG_SVQ1_DECODER 1
 #define CONFIG_SVQ3_DECODER 1
 #define CONFIG_TARGA_DECODER 1
 #define CONFIG_THEORA_DECODER 1
 #define CONFIG_THP_DECODER 1
 #define CONFIG_TIERTEXSEQVIDEO_DECODER 1
 #define CONFIG_TIFF_DECODER 1
 #define CONFIG_TMV_DECODER 1
 #define CONFIG_TRUEMOTION1_DECODER 1
 #define CONFIG_TRUEMOTION2_DECODER 1
 #define CONFIG_TSCC_DECODER 1
 #define CONFIG_TXD_DECODER 1
 #define CONFIG_ULTI_DECODER 1
 #define CONFIG_V210_DECODER 1
 #define CONFIG_V210X_DECODER 1
 #define CONFIG_VB_DECODER 1
 #define CONFIG_VC1_DECODER 1
 #define CONFIG_VC1_VDPAU_DECODER 0
 #define CONFIG_VCR1_DECODER 1
 #define CONFIG_VMDVIDEO_DECODER 1
 #define CONFIG_VMNC_DECODER 1
 #define CONFIG_VP3_DECODER 1
 #define CONFIG_VP5_DECODER 1
 #define CONFIG_VP6_DECODER 1
 #define CONFIG_VP6A_DECODER 1
 #define CONFIG_VP6F_DECODER 1
 #define CONFIG_VQA_DECODER 1
 #define CONFIG_WMV1_DECODER 1
 #define CONFIG_WMV2_DECODER 1
 #define CONFIG_WMV3_DECODER 1
 #define CONFIG_WMV3_VDPAU_DECODER 0
 #define CONFIG_WNV1_DECODER 1
 #define CONFIG_XAN_WC3_DECODER 1
 #define CONFIG_XL_DECODER 1
 #define CONFIG_ZLIB_DECODER 1
 #define CONFIG_ZMBV_DECODER 1
 #define CONFIG_AAC_DECODER 1
 #define CONFIG_AC3_DECODER 1
 #define CONFIG_ALAC_DECODER 1
 #define CONFIG_APE_DECODER 1
 #define CONFIG_ATRAC3_DECODER 1
 #define CONFIG_COOK_DECODER 1
 #define CONFIG_DCA_DECODER 1
 #define CONFIG_DSICINAUDIO_DECODER 1
 #define CONFIG_EAC3_DECODER 1
 #define CONFIG_FLAC_DECODER 1
 #define CONFIG_IMC_DECODER 1
 #define CONFIG_MACE3_DECODER 1
 #define CONFIG_MACE6_DECODER 1
 #define CONFIG_MLP_DECODER 1
 #define CONFIG_MP1_DECODER 1
 #define CONFIG_MP2_DECODER 1
 #define CONFIG_MP3_DECODER 1
 #define CONFIG_MP3ADU_DECODER 1
 #define CONFIG_MP3ON4_DECODER 1
 #define CONFIG_MPC7_DECODER 1
 #define CONFIG_MPC8_DECODER 1
 #define CONFIG_NELLYMOSER_DECODER 1
 #define CONFIG_QCELP_DECODER 1
 #define CONFIG_QDM2_DECODER 1
 #define CONFIG_RA_144_DECODER 1
 #define CONFIG_RA_288_DECODER 1
 #define CONFIG_SHORTEN_DECODER 1
 #define CONFIG_SMACKAUD_DECODER 1
 #define CONFIG_SONIC_DECODER 1
 #define CONFIG_TRUEHD_DECODER 1
 #define CONFIG_TRUESPEECH_DECODER 1
 #define CONFIG_TTA_DECODER 1
 #define CONFIG_TWINVQ_DECODER 1
 #define CONFIG_VMDAUDIO_DECODER 1
 #define CONFIG_VORBIS_DECODER 1
 #define CONFIG_WAVPACK_DECODER 1
 #define CONFIG_WMAPRO_DECODER 1
 #define CONFIG_WMAV1_DECODER 1
 #define CONFIG_WMAV2_DECODER 1
 #define CONFIG_WS_SND1_DECODER 1
 #define CONFIG_PCM_ALAW_DECODER 1
 #define CONFIG_PCM_BLURAY_DECODER 1
 #define CONFIG_PCM_DVD_DECODER 1
 #define CONFIG_PCM_F32BE_DECODER 1
 #define CONFIG_PCM_F32LE_DECODER 1
 #define CONFIG_PCM_F64BE_DECODER 1
 #define CONFIG_PCM_F64LE_DECODER 1
 #define CONFIG_PCM_MULAW_DECODER 1
 #define CONFIG_PCM_S8_DECODER 1
 #define CONFIG_PCM_S16BE_DECODER 1
 #define CONFIG_PCM_S16LE_DECODER 1
 #define CONFIG_PCM_S16LE_PLANAR_DECODER 1
 #define CONFIG_PCM_S24BE_DECODER 1
 #define CONFIG_PCM_S24DAUD_DECODER 1
 #define CONFIG_PCM_S24LE_DECODER 1
 #define CONFIG_PCM_S32BE_DECODER 1
 #define CONFIG_PCM_S32LE_DECODER 1
 #define CONFIG_PCM_U8_DECODER 1
 #define CONFIG_PCM_U16BE_DECODER 1
 #define CONFIG_PCM_U16LE_DECODER 1
 #define CONFIG_PCM_U24BE_DECODER 1
 #define CONFIG_PCM_U24LE_DECODER 1
 #define CONFIG_PCM_U32BE_DECODER 1
 #define CONFIG_PCM_U32LE_DECODER 1
 #define CONFIG_PCM_ZORK_DECODER 1
 #define CONFIG_INTERPLAY_DPCM_DECODER 1
 #define CONFIG_ROQ_DPCM_DECODER 1
 #define CONFIG_SOL_DPCM_DECODER 1
 #define CONFIG_XAN_DPCM_DECODER 1
 #define CONFIG_ADPCM_4XM_DECODER 1
 #define CONFIG_ADPCM_ADX_DECODER 1
 #define CONFIG_ADPCM_CT_DECODER 1
 #define CONFIG_ADPCM_EA_DECODER 1
 #define CONFIG_ADPCM_EA_MAXIS_XA_DECODER 1
 #define CONFIG_ADPCM_EA_R1_DECODER 1
 #define CONFIG_ADPCM_EA_R2_DECODER 1
 #define CONFIG_ADPCM_EA_R3_DECODER 1
 #define CONFIG_ADPCM_EA_XAS_DECODER 1
 #define CONFIG_ADPCM_G726_DECODER 1
 #define CONFIG_ADPCM_IMA_AMV_DECODER 1
 #define CONFIG_ADPCM_IMA_DK3_DECODER 1
 #define CONFIG_ADPCM_IMA_DK4_DECODER 1
 #define CONFIG_ADPCM_IMA_EA_EACS_DECODER 1
 #define CONFIG_ADPCM_IMA_EA_SEAD_DECODER 1
 #define CONFIG_ADPCM_IMA_ISS_DECODER 1
 #define CONFIG_ADPCM_IMA_QT_DECODER 1
 #define CONFIG_ADPCM_IMA_SMJPEG_DECODER 1
 #define CONFIG_ADPCM_IMA_WAV_DECODER 1
 #define CONFIG_ADPCM_IMA_WS_DECODER 1
 #define CONFIG_ADPCM_MS_DECODER 1
 #define CONFIG_ADPCM_SBPRO_2_DECODER 1
 #define CONFIG_ADPCM_SBPRO_3_DECODER 1
 #define CONFIG_ADPCM_SBPRO_4_DECODER 1
 #define CONFIG_ADPCM_SWF_DECODER 1
 #define CONFIG_ADPCM_THP_DECODER 1
 #define CONFIG_ADPCM_XA_DECODER 1
 #define CONFIG_ADPCM_YAMAHA_DECODER 1
 #define CONFIG_DVBSUB_DECODER 1
 #define CONFIG_DVDSUB_DECODER 1
 #define CONFIG_PGSSUB_DECODER 1
 #define CONFIG_XSUB_DECODER 1
 #define CONFIG_LIBDIRAC_DECODER 0
 #define CONFIG_LIBFAAD_DECODER 0
 #define CONFIG_LIBGSM_DECODER 0
 #define CONFIG_LIBGSM_MS_DECODER 0
 #define CONFIG_LIBOPENCORE_AMRNB_DECODER 0
 #define CONFIG_LIBOPENCORE_AMRWB_DECODER 0
 #define CONFIG_LIBOPENJPEG_DECODER 0
 #define CONFIG_LIBSCHROEDINGER_DECODER 0
 #define CONFIG_LIBSPEEX_DECODER 0
 #define CONFIG_ASV1_ENCODER 1
 #define CONFIG_ASV2_ENCODER 1
 #define CONFIG_BMP_ENCODER 1
 #define CONFIG_DNXHD_ENCODER 1
 #define CONFIG_DVVIDEO_ENCODER 1
 #define CONFIG_FFV1_ENCODER 1
 #define CONFIG_FFVHUFF_ENCODER 1
 #define CONFIG_FLASHSV_ENCODER 1
 #define CONFIG_FLV_ENCODER 1
 #define CONFIG_GIF_ENCODER 1
 #define CONFIG_H261_ENCODER 1
 #define CONFIG_H263_ENCODER 1
 #define CONFIG_H263P_ENCODER 1
 #define CONFIG_HUFFYUV_ENCODER 1
 #define CONFIG_JPEGLS_ENCODER 1
 #define CONFIG_LJPEG_ENCODER 1
 #define CONFIG_MJPEG_ENCODER 1
 #define CONFIG_MPEG1VIDEO_ENCODER 1
 #define CONFIG_MPEG2VIDEO_ENCODER 1
 #define CONFIG_MPEG4_ENCODER 1
 #define CONFIG_MSMPEG4V1_ENCODER 1
 #define CONFIG_MSMPEG4V2_ENCODER 1
 #define CONFIG_MSMPEG4V3_ENCODER 1
 #define CONFIG_PAM_ENCODER 1
 #define CONFIG_PBM_ENCODER 1
 #define CONFIG_PCX_ENCODER 1
 #define CONFIG_PGM_ENCODER 1
 #define CONFIG_PGMYUV_ENCODER 1
 #define CONFIG_PNG_ENCODER 1
 #define CONFIG_PPM_ENCODER 1
 #define CONFIG_QTRLE_ENCODER 1
 #define CONFIG_RAWVIDEO_ENCODER 1
 #define CONFIG_ROQ_ENCODER 1
 #define CONFIG_RV10_ENCODER 1
 #define CONFIG_RV20_ENCODER 1
 #define CONFIG_SGI_ENCODER 1
 #define CONFIG_SNOW_ENCODER 1
 #define CONFIG_SVQ1_ENCODER 1
 #define CONFIG_TARGA_ENCODER 1
 #define CONFIG_TIFF_ENCODER 1
 #define CONFIG_V210_ENCODER 1
 #define CONFIG_WMV1_ENCODER 1
 #define CONFIG_WMV2_ENCODER 1
 #define CONFIG_ZLIB_ENCODER 1
 #define CONFIG_ZMBV_ENCODER 1
 #define CONFIG_AAC_ENCODER 1
 #define CONFIG_AC3_ENCODER 1
 #define CONFIG_ALAC_ENCODER 1
 #define CONFIG_FLAC_ENCODER 1
 #define CONFIG_MP2_ENCODER 1
 #define CONFIG_NELLYMOSER_ENCODER 1
 #define CONFIG_SONIC_ENCODER 1
 #define CONFIG_SONIC_LS_ENCODER 1
 #define CONFIG_VORBIS_ENCODER 1
 #define CONFIG_WMAV1_ENCODER 1
 #define CONFIG_WMAV2_ENCODER 1
 #define CONFIG_PCM_ALAW_ENCODER 1
 #define CONFIG_PCM_F32BE_ENCODER 1
 #define CONFIG_PCM_F32LE_ENCODER 1
 #define CONFIG_PCM_F64BE_ENCODER 1
 #define CONFIG_PCM_F64LE_ENCODER 1
 #define CONFIG_PCM_MULAW_ENCODER 1
 #define CONFIG_PCM_S8_ENCODER 1
 #define CONFIG_PCM_S16BE_ENCODER 1
 #define CONFIG_PCM_S16LE_ENCODER 1
 #define CONFIG_PCM_S24BE_ENCODER 1
 #define CONFIG_PCM_S24DAUD_ENCODER 1
 #define CONFIG_PCM_S24LE_ENCODER 1
 #define CONFIG_PCM_S32BE_ENCODER 1
 #define CONFIG_PCM_S32LE_ENCODER 1
 #define CONFIG_PCM_U8_ENCODER 1
 #define CONFIG_PCM_U16BE_ENCODER 1
 #define CONFIG_PCM_U16LE_ENCODER 1
 #define CONFIG_PCM_U24BE_ENCODER 1
 #define CONFIG_PCM_U24LE_ENCODER 1
 #define CONFIG_PCM_U32BE_ENCODER 1
 #define CONFIG_PCM_U32LE_ENCODER 1
 #define CONFIG_PCM_ZORK_ENCODER 1
 #define CONFIG_ROQ_DPCM_ENCODER 1
 #define CONFIG_ADPCM_ADX_ENCODER 1
 #define CONFIG_ADPCM_G726_ENCODER 1
 #define CONFIG_ADPCM_IMA_QT_ENCODER 1
 #define CONFIG_ADPCM_IMA_WAV_ENCODER 1
 #define CONFIG_ADPCM_MS_ENCODER 1
 #define CONFIG_ADPCM_SWF_ENCODER 1
 #define CONFIG_ADPCM_YAMAHA_ENCODER 1
 #define CONFIG_DVBSUB_ENCODER 1
 #define CONFIG_DVDSUB_ENCODER 1
 #define CONFIG_XSUB_ENCODER 1
 #define CONFIG_LIBDIRAC_ENCODER 0
 #define CONFIG_LIBFAAC_ENCODER 0
 #define CONFIG_LIBGSM_ENCODER 0
 #define CONFIG_LIBGSM_MS_ENCODER 0
 #define CONFIG_LIBMP3LAME_ENCODER 0
 #define CONFIG_LIBOPENCORE_AMRNB_ENCODER 0
 #define CONFIG_LIBSCHROEDINGER_ENCODER 0
 #define CONFIG_LIBTHEORA_ENCODER 0
 #define CONFIG_LIBVORBIS_ENCODER 0
 #define CONFIG_LIBX264_ENCODER 0
 #define CONFIG_LIBXVID_ENCODER 0
 #define CONFIG_H263_VAAPI_HWACCEL 0
 #define CONFIG_MPEG2_VAAPI_HWACCEL 0
 #define CONFIG_MPEG4_VAAPI_HWACCEL 0
 #define CONFIG_VC1_VAAPI_HWACCEL 0
 #define CONFIG_WMV3_VAAPI_HWACCEL 0
 #define CONFIG_AAC_PARSER 1
 #define CONFIG_AC3_PARSER 1
 #define CONFIG_CAVSVIDEO_PARSER 1
 #define CONFIG_DCA_PARSER 1
 #define CONFIG_DIRAC_PARSER 1
 #define CONFIG_DNXHD_PARSER 1
 #define CONFIG_DVBSUB_PARSER 1
 #define CONFIG_DVDSUB_PARSER 1
 #define CONFIG_H261_PARSER 1
 #define CONFIG_H263_PARSER 1
 #define CONFIG_H264_PARSER 1
 #define CONFIG_MJPEG_PARSER 1
 #define CONFIG_MLP_PARSER 1
 #define CONFIG_MPEG4VIDEO_PARSER 1
 #define CONFIG_MPEGAUDIO_PARSER 1
 #define CONFIG_MPEGVIDEO_PARSER 1
 #define CONFIG_PNM_PARSER 1
 #define CONFIG_VC1_PARSER 1
 #define CONFIG_VP3_PARSER 1
 #define CONFIG_AAC_ADTSTOASC_BSF 1
 #define CONFIG_DUMP_EXTRADATA_BSF 1
 #define CONFIG_H264_MP4TOANNEXB_BSF 1
 #define CONFIG_IMX_DUMP_HEADER_BSF 1
 #define CONFIG_MJPEGA_DUMP_HEADER_BSF 1
 #define CONFIG_MP3_HEADER_COMPRESS_BSF 1
 #define CONFIG_MP3_HEADER_DECOMPRESS_BSF 1
 #define CONFIG_MOV2TEXTSUB_BSF 1
 #define CONFIG_NOISE_BSF 1
 #define CONFIG_REMOVE_EXTRADATA_BSF 1
 #define CONFIG_TEXT2MOVSUB_BSF 1
 #define CONFIG_AAC_DEMUXER 1
 #define CONFIG_AC3_DEMUXER 1
 #define CONFIG_AIFF_DEMUXER 1
 #define CONFIG_AMR_DEMUXER 1
 #define CONFIG_APC_DEMUXER 1
 #define CONFIG_APE_DEMUXER 1
 #define CONFIG_ASF_DEMUXER 1
 #define CONFIG_ASS_DEMUXER 1
 #define CONFIG_AU_DEMUXER 1
 #define CONFIG_AVI_DEMUXER 1
 #define CONFIG_AVISYNTH_DEMUXER 0
 #define CONFIG_AVS_DEMUXER 1
 #define CONFIG_BETHSOFTVID_DEMUXER 1
 #define CONFIG_BFI_DEMUXER 1
 #define CONFIG_C93_DEMUXER 1
 #define CONFIG_CAF_DEMUXER 1
 #define CONFIG_CAVSVIDEO_DEMUXER 1
 #define CONFIG_DAUD_DEMUXER 1
 #define CONFIG_DIRAC_DEMUXER 1
 #define CONFIG_DNXHD_DEMUXER 1
 #define CONFIG_DSICIN_DEMUXER 1
 #define CONFIG_DTS_DEMUXER 1
 #define CONFIG_DV_DEMUXER 1
 #define CONFIG_DXA_DEMUXER 1
 #define CONFIG_EA_DEMUXER 1
 #define CONFIG_EA_CDATA_DEMUXER 1
 #define CONFIG_EAC3_DEMUXER 1
 #define CONFIG_FFM_DEMUXER 1
 #define CONFIG_FLAC_DEMUXER 1
 #define CONFIG_FLIC_DEMUXER 1
 #define CONFIG_FLV_DEMUXER 1
 #define CONFIG_FOURXM_DEMUXER 1
 #define CONFIG_GSM_DEMUXER 1
 #define CONFIG_GXF_DEMUXER 1
 #define CONFIG_H261_DEMUXER 1
 #define CONFIG_H263_DEMUXER 1
 #define CONFIG_H264_DEMUXER 1
 #define CONFIG_IDCIN_DEMUXER 1
 #define CONFIG_IFF_DEMUXER 1
 #define CONFIG_IMAGE2_DEMUXER 1
 #define CONFIG_IMAGE2PIPE_DEMUXER 1
 #define CONFIG_INGENIENT_DEMUXER 1
 #define CONFIG_IPMOVIE_DEMUXER 1
 #define CONFIG_ISS_DEMUXER 1
 #define CONFIG_LMLM4_DEMUXER 1
 #define CONFIG_M4V_DEMUXER 1
 #define CONFIG_MATROSKA_DEMUXER 1
 #define CONFIG_MJPEG_DEMUXER 1
 #define CONFIG_MLP_DEMUXER 1
 #define CONFIG_MM_DEMUXER 1
 #define CONFIG_MMF_DEMUXER 1
 #define CONFIG_MOV_DEMUXER 1
 #define CONFIG_MP3_DEMUXER 1
 #define CONFIG_MPC_DEMUXER 1
 #define CONFIG_MPC8_DEMUXER 1
 #define CONFIG_MPEGPS_DEMUXER 1
 #define CONFIG_MPEGTS_DEMUXER 1
 #define CONFIG_MPEGTSRAW_DEMUXER 1
 #define CONFIG_MPEGVIDEO_DEMUXER 1
 #define CONFIG_MSNWC_TCP_DEMUXER 1
 #define CONFIG_MTV_DEMUXER 1
 #define CONFIG_MVI_DEMUXER 1
 #define CONFIG_MXF_DEMUXER 1
 #define CONFIG_NC_DEMUXER 1
 #define CONFIG_NSV_DEMUXER 1
 #define CONFIG_NUT_DEMUXER 1
 #define CONFIG_NUV_DEMUXER 1
 #define CONFIG_OGG_DEMUXER 1
 #define CONFIG_OMA_DEMUXER 1
 #define CONFIG_PCM_ALAW_DEMUXER 1
 #define CONFIG_PCM_MULAW_DEMUXER 1
 #define CONFIG_PCM_F64BE_DEMUXER 1
 #define CONFIG_PCM_F64LE_DEMUXER 1
 #define CONFIG_PCM_F32BE_DEMUXER 1
 #define CONFIG_PCM_F32LE_DEMUXER 1
 #define CONFIG_PCM_S32BE_DEMUXER 1
 #define CONFIG_PCM_S32LE_DEMUXER 1
 #define CONFIG_PCM_S24BE_DEMUXER 1
 #define CONFIG_PCM_S24LE_DEMUXER 1
 #define CONFIG_PCM_S16BE_DEMUXER 1
 #define CONFIG_PCM_S16LE_DEMUXER 1
 #define CONFIG_PCM_S8_DEMUXER 1
 #define CONFIG_PCM_U32BE_DEMUXER 1
 #define CONFIG_PCM_U32LE_DEMUXER 1
 #define CONFIG_PCM_U24BE_DEMUXER 1
 #define CONFIG_PCM_U24LE_DEMUXER 1
 #define CONFIG_PCM_U16BE_DEMUXER 1
 #define CONFIG_PCM_U16LE_DEMUXER 1
 #define CONFIG_PCM_U8_DEMUXER 1
 #define CONFIG_PVA_DEMUXER 1
 #define CONFIG_QCP_DEMUXER 1
 #define CONFIG_R3D_DEMUXER 1
 #define CONFIG_RAWVIDEO_DEMUXER 1
 #define CONFIG_REDIR_DEMUXER 1
 #define CONFIG_RL2_DEMUXER 1
 #define CONFIG_RM_DEMUXER 1
 #define CONFIG_ROQ_DEMUXER 1
 #define CONFIG_RPL_DEMUXER 1
 #define CONFIG_RTSP_DEMUXER 1
 #define CONFIG_SDP_DEMUXER 1
 #define CONFIG_SEGAFILM_DEMUXER 1
 #define CONFIG_SHORTEN_DEMUXER 1
 #define CONFIG_SIFF_DEMUXER 1
 #define CONFIG_SMACKER_DEMUXER 1
 #define CONFIG_SOL_DEMUXER 1
 #define CONFIG_SOX_DEMUXER 1
 #define CONFIG_STR_DEMUXER 1
 #define CONFIG_SWF_DEMUXER 1
 #define CONFIG_THP_DEMUXER 1
 #define CONFIG_TIERTEXSEQ_DEMUXER 1
 #define CONFIG_TMV_DEMUXER 1
 #define CONFIG_TRUEHD_DEMUXER 1
 #define CONFIG_TTA_DEMUXER 1
 #define CONFIG_TXD_DEMUXER 1
 #define CONFIG_VC1_DEMUXER 1
 #define CONFIG_VC1T_DEMUXER 1
 #define CONFIG_VMD_DEMUXER 1
 #define CONFIG_VOC_DEMUXER 1
 #define CONFIG_VQF_DEMUXER 1
 #define CONFIG_W64_DEMUXER 1
 #define CONFIG_WAV_DEMUXER 1
 #define CONFIG_WC3_DEMUXER 1
 #define CONFIG_WSAUD_DEMUXER 1
 #define CONFIG_WSVQA_DEMUXER 1
 #define CONFIG_WV_DEMUXER 1
 #define CONFIG_XA_DEMUXER 1
 #define CONFIG_YUV4MPEGPIPE_DEMUXER 1
 #define CONFIG_LIBNUT_DEMUXER 0
 #define CONFIG_AC3_MUXER 1
 #define CONFIG_ADTS_MUXER 1
 #define CONFIG_AIFF_MUXER 1
 #define CONFIG_AMR_MUXER 1
 #define CONFIG_ASF_MUXER 1
 #define CONFIG_ASS_MUXER 1
 #define CONFIG_ASF_STREAM_MUXER 1
 #define CONFIG_AU_MUXER 1
 #define CONFIG_AVI_MUXER 1
 #define CONFIG_AVM2_MUXER 1
 #define CONFIG_CRC_MUXER 1
 #define CONFIG_DAUD_MUXER 1
 #define CONFIG_DIRAC_MUXER 1
 #define CONFIG_DNXHD_MUXER 1
 #define CONFIG_DTS_MUXER 1
 #define CONFIG_DV_MUXER 1
 #define CONFIG_EAC3_MUXER 1
 #define CONFIG_FFM_MUXER 1
 #define CONFIG_FLAC_MUXER 1
 #define CONFIG_FLV_MUXER 1
 #define CONFIG_FRAMECRC_MUXER 1
 #define CONFIG_GIF_MUXER 1
 #define CONFIG_GXF_MUXER 1
 #define CONFIG_H261_MUXER 1
 #define CONFIG_H263_MUXER 1
 #define CONFIG_H264_MUXER 1
 #define CONFIG_IMAGE2_MUXER 1
 #define CONFIG_IMAGE2PIPE_MUXER 1
 #define CONFIG_IPOD_MUXER 1
 #define CONFIG_M4V_MUXER 1
 #define CONFIG_MATROSKA_MUXER 1
 #define CONFIG_MATROSKA_AUDIO_MUXER 1
 #define CONFIG_MJPEG_MUXER 1
 #define CONFIG_MLP_MUXER 1
 #define CONFIG_MMF_MUXER 1
 #define CONFIG_MOV_MUXER 1
 #define CONFIG_MP2_MUXER 1
 #define CONFIG_MP3_MUXER 1
 #define CONFIG_MP4_MUXER 1
 #define CONFIG_MPEG1SYSTEM_MUXER 1
 #define CONFIG_MPEG1VCD_MUXER 1
 #define CONFIG_MPEG1VIDEO_MUXER 1
 #define CONFIG_MPEG2DVD_MUXER 1
 #define CONFIG_MPEG2SVCD_MUXER 1
 #define CONFIG_MPEG2VIDEO_MUXER 1
 #define CONFIG_MPEG2VOB_MUXER 1
 #define CONFIG_MPEGTS_MUXER 1
 #define CONFIG_MPJPEG_MUXER 1
 #define CONFIG_MXF_MUXER 1
 #define CONFIG_MXF_D10_MUXER 1
 #define CONFIG_NULL_MUXER 1
 #define CONFIG_NUT_MUXER 1
 #define CONFIG_OGG_MUXER 1
 #define CONFIG_PCM_ALAW_MUXER 1
 #define CONFIG_PCM_MULAW_MUXER 1
 #define CONFIG_PCM_F64BE_MUXER 1
 #define CONFIG_PCM_F64LE_MUXER 1
 #define CONFIG_PCM_F32BE_MUXER 1
 #define CONFIG_PCM_F32LE_MUXER 1
 #define CONFIG_PCM_S32BE_MUXER 1
 #define CONFIG_PCM_S32LE_MUXER 1
 #define CONFIG_PCM_S24BE_MUXER 1
 #define CONFIG_PCM_S24LE_MUXER 1
 #define CONFIG_PCM_S16BE_MUXER 1
 #define CONFIG_PCM_S16LE_MUXER 1
 #define CONFIG_PCM_S8_MUXER 1
 #define CONFIG_PCM_U32BE_MUXER 1
 #define CONFIG_PCM_U32LE_MUXER 1
 #define CONFIG_PCM_U24BE_MUXER 1
 #define CONFIG_PCM_U24LE_MUXER 1
 #define CONFIG_PCM_U16BE_MUXER 1
 #define CONFIG_PCM_U16LE_MUXER 1
 #define CONFIG_PCM_U8_MUXER 1
 #define CONFIG_PSP_MUXER 1
 #define CONFIG_RAWVIDEO_MUXER 1
 #define CONFIG_RM_MUXER 1
 #define CONFIG_ROQ_MUXER 1
 #define CONFIG_RTP_MUXER 1
 #define CONFIG_SOX_MUXER 1
 #define CONFIG_SPDIF_MUXER 1
 #define CONFIG_SWF_MUXER 1
 #define CONFIG_TG2_MUXER 1
 #define CONFIG_TGP_MUXER 1
 #define CONFIG_TRUEHD_MUXER 1
 #define CONFIG_VC1T_MUXER 1
 #define CONFIG_VOC_MUXER 1
 #define CONFIG_WAV_MUXER 1
 #define CONFIG_YUV4MPEGPIPE_MUXER 1
 #define CONFIG_LIBNUT_MUXER 0
 #define CONFIG_CROP_FILTER 1
 #define CONFIG_FILE_PROTOCOL 1
 #define CONFIG_GOPHER_PROTOCOL 1
 #define CONFIG_HTTP_PROTOCOL 1
 #define CONFIG_PIPE_PROTOCOL 1
 #define CONFIG_RTMP_PROTOCOL 1
 #define CONFIG_RTP_PROTOCOL 1
 #define CONFIG_TCP_PROTOCOL 1
 #define CONFIG_UDP_PROTOCOL 1
 #define CONFIG_ALSA_INDEV 0
 #define CONFIG_AUDIO_BEOS_INDEV 0
 #define CONFIG_BKTR_INDEV 0
 #define CONFIG_DV1394_INDEV 1
 #define CONFIG_JACK_INDEV 0
 #define CONFIG_OSS_INDEV 1
 #define CONFIG_V4L2_INDEV 1
 #define CONFIG_V4L_INDEV 1
 #define CONFIG_VFWCAP_INDEV 0
 #define CONFIG_X11_GRAB_DEVICE_INDEV 0
 #define CONFIG_LIBDC1394_INDEV 0
 #define CONFIG_ALSA_OUTDEV 0
 #define CONFIG_AUDIO_BEOS_OUTDEV 0
 #define CONFIG_OSS_OUTDEV 1
 #define restrict restrict
 #define ASMALIGN(ZEROBITS) ".align 1 << " #ZEROBITS "\n\t"
 #define EXTERN_PREFIX ""




#define __STDC_CONSTANT_MACROS


#define inline __inline




#define PRIu64       "I64u"
#define PRId64       "I64d"
#define PRIx64       "I64x"
#define PRIX64       "I64X"


#define AVCONV_DATADIR "c:/ffmpeg1010/"


#define snprintf _snprintf


//#define INT64_C(val) val##i64
#define _64BITARG_ "I64"
#define PRId64 _64BITARG_"d"
#define PRIu64 _64BITARG_"u"


#ifndef INT64_C
#define INT64_C(c) (c ## LL)
#define UINT64_C(c) (c ## ULL)
#endif




inline long rint(double x) 

if(x >= 0.)


return (long)(x + 0.5); 
else 
return (long)(x - 0.5); 
}


#define lrint(f) (f>=0?(int32_t)(f+(double)0.5):(int32_t)(f-(double)0.4))
#define lrintf(f) (f>=0?(int32_t)(f+(float)0.5):(int32_t)(f-(float)0.4))
#define llrintf(f) (f>=0?(int64_t)(f+(double)0.5):(int64_t)(f-(double)0.4))
#define llrint(f) (f>=0?(int64_t)(f+(float)0.5):(int64_t)(f-(float)0.4))


#define log2(x) (log(x) * 1.44269504088896340736)


#endif /* FFMPEG_CONFIG_H */

AV_TIME_BASE_Q : 修改為 av_make_q(1,AV_TIME_BASE)

需要編譯ffmpeg.c2.6.2,需要compat資料夾中的標頭檔案,所以可以直接將檔案複製到自己的工程中;

cmdutils.c中會出現 _avresample_version等無法解析的外部符號等, 直接遮蔽 void print_all_libs_info(int flags, int level)函式中的內容;

static void print_all_libs_info(int flags, int level)
{
   //   PRINT_LIB_INFO(avutil,   AVUTIL,   flags, level);
    //  PRINT_LIB_INFO(avcodec,  AVCODEC,  flags, level);
     // PRINT_LIB_INFO(avformat, AVFORMAT, flags, level);
     // PRINT_LIB_INFO(avdevice, AVDEVICE, flags, level);
     // PRINT_LIB_INFO(avfilter, AVFILTER, flags, level);
     // PRINT_LIB_INFO(avresample, AVRESAMPLE, flags, level);
     // PRINT_LIB_INFO(swscale,  SWSCALE,  flags, level);
     // PRINT_LIB_INFO(swresample,SWRESAMPLE,  flags, level);
     // PRINT_LIB_INFO(postproc, POSTPROC, flags, level);
}

把 ffmpeg.c的 2983處程式碼:
if (ost->disposition) {
            static const AVOption opts[] = {
                { "disposition"         , NULL, 0, AV_OPT_TYPE_FLAGS, { .i64 = 0 }, INT64_MIN, INT64_MAX, .unit = "flags" },
                { "default"             , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_DEFAULT           },    .unit = "flags" },
                { "dub"                 , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_DUB               },    .unit = "flags" },
                { "original"            , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_ORIGINAL          },    .unit = "flags" },
                { "comment"             , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_COMMENT           },    .unit = "flags" },
                { "lyrics"              , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_LYRICS            },    .unit = "flags" },
                { "karaoke"             , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_KARAOKE           },    .unit = "flags" },
                { "forced"              , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_FORCED            },    .unit = "flags" },
                { "hearing_impaired"    , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_HEARING_IMPAIRED  },    .unit = "flags" },
                { "visual_impaired"     , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_VISUAL_IMPAIRED   },    .unit = "flags" },
                { "clean_effects"       , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_CLEAN_EFFECTS     },    .unit = "flags" },
                { "captions"            , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_CAPTIONS          },    .unit = "flags" },
                { "descriptions"        , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_DESCRIPTIONS      },    .unit = "flags" },
                { "metadata"            , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_DISPOSITION_METADATA          },    .unit = "flags" },
                { NULL },
            };
            static const AVClass class = {
                .class_name = "",
                .item_name  = av_default_item_name,
                .option     = opts,
                .version    = LIBAVUTIL_VERSION_INT,
            };
            const AVClass *pclass = &class;
改為:
if (ost->disposition) {
            static const AVOption opts[] = {
                { "disposition"         , NULL, 0, AV_OPT_TYPE_FLAGS, {0 }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "default"             , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_DEFAULT           }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "dub"                 , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_DUB               }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "original"            , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_ORIGINAL          }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "comment"             , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_COMMENT           }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "lyrics"              , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_LYRICS            }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "karaoke"             , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_KARAOKE           }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "forced"              , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_FORCED            }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "hearing_impaired"    , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_HEARING_IMPAIRED  }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "visual_impaired"     , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_VISUAL_IMPAIRED   }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "clean_effects"       , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_CLEAN_EFFECTS     }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "captions"            , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_CAPTIONS          }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "descriptions"        , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_DESCRIPTIONS      }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { "metadata"            , NULL, 0, AV_OPT_TYPE_CONST, { AV_DISPOSITION_METADATA          }, INT64_MIN, INT64_MAX, AV_OPT_FLAG_ENCODING_PARAM, "flags" },
                { NULL },
            };
            static const AVClass conclass = 
			{
                "",
                av_default_item_name,
                opts,
                LIBAVUTIL_VERSION_INT,
            };
            const AVClass *pclass = &conclass;

5、把ffmpeg_opt.c的2710處的程式碼:
static const OptionGroupDef groups[] = {
    [GROUP_OUTFILE] = { "output file",  NULL, OPT_OUTPUT },
    [GROUP_INFILE]  = { "input file",   "i",  OPT_INPUT },
};
改為:
static const OptionGroupDef groups[] = {
    { "output file",  NULL, OPT_OUTPUT },
    { "input file",   "i",  OPT_INPUT },
};
 cmdutils_common_opts.h程式碼改為:
{ "L"          , OPT_EXIT, {(void*)show_license},      "show license" },
	{ "h"          , OPT_EXIT, {(void*) show_help},         "show help", "topic" },
	{ "?"          , OPT_EXIT, {(void*)show_help},         "show help", "topic" },
	{ "help"       , OPT_EXIT, {(void*)show_help},         "show help", "topic" },
	{ "-help"      , OPT_EXIT, {(void*)show_help},         "show help", "topic" },
	{ "version"    , OPT_EXIT, {(void*)show_version},      "show version" },
	{ "formats"    , OPT_EXIT, {(void*)show_formats  },    "show available formats" },
	{ "codecs"     , OPT_EXIT, {(void*)show_codecs   },    "show available codecs" },
	{ "decoders"   , OPT_EXIT, {(void*)show_decoders },    "show available decoders" },
	{ "encoders"   , OPT_EXIT, {(void*)show_encoders },    "show available encoders" },
	{ "bsfs"       , OPT_EXIT, {(void*)show_bsfs     },    "show available bit stream filters" },
	{ "protocols"  , OPT_EXIT, {(void*)show_protocols},    "show available protocols" },
	{ "filters"    , OPT_EXIT, {(void*)show_filters  },    "show available filters" },
	{ "pix_fmts"   , OPT_EXIT, {(void*)show_pix_fmts },    "show available pixel formats" },
	{ "layouts"    , OPT_EXIT, {(void*)show_layouts  },    "show standard channel layouts" },
	{ "sample_fmts", OPT_EXIT, {(void*)show_sample_fmts }, "show available audio sample formats" },
	{ "loglevel"   , HAS_ARG,  {(void*)opt_loglevel},      "set libav* logging level", "loglevel" },
	{ "v",           HAS_ARG,  {(void*)opt_loglevel},      "set libav* logging level", "loglevel" },
	//{ "debug"      , HAS_ARG,  {(void*)opt_codec_debug},   "set debug flags", "flags" },
	//{ "fdebug"     , HAS_ARG,  {(void*)opt_codec_debug},   "set debug flags", "flags" },
	{ "report"     , 0,        {(void*)opt_report}, "generate a report" },
	{ "max_alloc"  , HAS_ARG,  {(void*) opt_max_alloc},     "set maximum size of a single allocated block", "bytes" },
	{ "cpuflags"   , HAS_ARG | OPT_EXPERT, {(void*) opt_c