IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Linux Discussion :

Problème de compilation


Sujet :

Linux

  1. #1
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 4
    Points : 1
    Points
    1
    Par défaut Problème de compilation
    Bonjour,

    je suis actuellement en train d'essayer d'installer le support de la 3G à mon Asterisk. Mais au moment de recompiler asterisk, après lui avoir ajouté l'application "app_transcoder" (application utilisant entre autre des codecs ffmpeg), le make me retourne ces erreurs :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
     
    [CC] app_transcoder.c -> app_transcoder.o
    In file included from app_transcoder.c:39:
    /usr/include/ffmpeg/libavcodec/avcodec.h:259:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:318:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:430:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:436:5: error: missing binary operator before token "("
    In file included from app_transcoder.c:39:
    /usr/include/ffmpeg/libavcodec/avcodec.h:811: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
    /usr/include/ffmpeg/libavcodec/avcodec.h:1012:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:1325:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:2246: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
    /usr/include/ffmpeg/libavcodec/avcodec.h:2287: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘attribute_deprecated’
    /usr/include/ffmpeg/libavcodec/avcodec.h:2326:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:2493:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:2510:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:2657: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘int’
    /usr/include/ffmpeg/libavcodec/avcodec.h:2871:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:2947:5: error: missing binary operator before token "("
    /usr/include/ffmpeg/libavcodec/avcodec.h:2991: error: expected ‘)’ before ‘*’ token
    In file included from app_transcoder.c:40:
    /usr/include/ffmpeg/libswscale/swscale.h: In function ‘sws_scale_ordered’:
    /usr/include/ffmpeg/libswscale/swscale.h:116: error: expected declaration specifiers before ‘attribute_deprecated’
    app_transcoder.c:58: warning: empty declaration
    app_transcoder.c:115: warning: empty declaration
    app_transcoder.c:139: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:204: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:248: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:369: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:434: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:626: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:632: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:713: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:763: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:809: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:817: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:870: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:1084: error: storage class specified for parameter ‘name_transcode’
    app_transcoder.c:1084: error: parameter ‘name_transcode’ is initialized
    app_transcoder.c:1085: error: storage class specified for parameter ‘syn_transcode’
    app_transcoder.c:1085: error: parameter ‘syn_transcode’ is initialized
    app_transcoder.c:1086: error: storage class specified for parameter ‘des_transcode’
    app_transcoder.c:1086: error: parameter ‘des_transcode’ is initialized
    app_transcoder.c:1089: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:1098: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:1111: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:1124: error: storage class specified for parameter ‘__mod_info’
    app_transcoder.c:1124: error: parameter ‘__mod_info’ is initialized
    app_transcoder.c:1124: error: ‘load_module’ undeclared (first use in this function)
    app_transcoder.c:1124: error: (Each undeclared identifier is reported only once
    app_transcoder.c:1124: error: for each function it appears in.)
    app_transcoder.c:1124: error: ‘unload_module’ undeclared (first use in this function)
    app_transcoder.c:1124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:1124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    app_transcoder.c:1124: error: storage class specified for parameter ‘ast_module_info’
    app_transcoder.c:1124: error: parameter ‘ast_module_info’ is initialized
    app_transcoder.c:1124: error: old-style parameter declarations in prototyped function definition
    app_transcoder.c:1124: error: expected ‘{’ at end of input
    app_transcoder.c:1124: warning: no return statement in function returning non-void
    make[1]: *** [app_transcoder.o] Erreur 1
    make: *** [apps] Erreur 2
    Je pense que le problème viendrait d'un outil de compilation...

    J'espère que quelq'un est déjà tombé sur ce type de problème.

    Merci d'avance

    Paul

  2. #2
    Invité
    Invité(e)
    Par défaut
    Salut,

    http://sip.fontventa.com/content/view/31/58/

    As-tu ajouté la ligne demandée dans le makefile d'asterisk?

  3. #3
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 4
    Points : 1
    Points
    1
    Par défaut
    Salut,

    oui je l'ai fait, et le codec "avcodec" est bien installé

  4. #4
    Invité
    Invité(e)
    Par défaut
    De quand datent les sources avcodec?

    Peux-tu fournir le fichier avcodec.h?

  5. #5
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 4
    Points : 1
    Points
    1
    Par défaut
    J'ai installé la librairie libavcodec à partir du Synaptic, la version est 3:20080706-0.3

    J'utilise entre autres la tutorial du site http://www.asterisk-party.net/index....sk_Video_3G_FR
    qui utilise ffmpeg-0.cvs20060823. Je viens donc de récuper l'archive correspondante et je vais réessayer en utilisant les codecs avcodec swscale présents dans cette archive.

    Voici les détails du avcodec avec lequel j'ai essayé d'inclure app_transcoder jusqu(à maintenant :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
     
    #ifndef FFMPEG_AVCODEC_H
    #define FFMPEG_AVCODEC_H
     
    /**
     * @file avcodec.h
     * external API header
     */
     
     
    #include "libavutil/avutil.h"
     
    #define LIBAVCODEC_VERSION_MAJOR 51
    #define LIBAVCODEC_VERSION_MINOR 58
    #define LIBAVCODEC_VERSION_MICRO  0
     
    #define LIBAVCODEC_VERSION_INT  AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
                                                   LIBAVCODEC_VERSION_MINOR, \
                                                   LIBAVCODEC_VERSION_MICRO)
    #define LIBAVCODEC_VERSION      AV_VERSION(LIBAVCODEC_VERSION_MAJOR,    \
                                               LIBAVCODEC_VERSION_MINOR,    \
                                               LIBAVCODEC_VERSION_MICRO)
    #define LIBAVCODEC_BUILD        LIBAVCODEC_VERSION_INT
     
    #define LIBAVCODEC_IDENT        "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION)
     
    #define AV_NOPTS_VALUE          INT64_C(0x8000000000000000)
    #define AV_TIME_BASE            1000000
    #define AV_TIME_BASE_Q          (AVRational){1, AV_TIME_BASE}
     
    /**
     * Identifies the syntax and semantics of the bitstream.
     * The principle is roughly:
     * Two decoders with the same ID can decode the same streams.
     * Two encoders with the same ID can encode compatible streams.
     * There may be slight deviations from the principle due to implementation
     * details.
     *
     * If you add a codec ID to this list, add it so that
     * 1. no value of a existing codec ID changes (that would break ABI),
     * 2. it is as close as possible to similar codecs.
     */
    enum CodecID {
        CODEC_ID_NONE,
     
        /* video codecs */
        CODEC_ID_MPEG1VIDEO,
        CODEC_ID_MPEG2VIDEO, ///< preferred ID for MPEG-1/2 video decoding
        CODEC_ID_MPEG2VIDEO_XVMC,
        CODEC_ID_H261,
        CODEC_ID_H263,
        CODEC_ID_RV10,
        CODEC_ID_RV20,
        CODEC_ID_MJPEG,
        CODEC_ID_MJPEGB,
        CODEC_ID_LJPEG,
        CODEC_ID_SP5X,
        CODEC_ID_JPEGLS,
        CODEC_ID_MPEG4,
        CODEC_ID_RAWVIDEO,
        CODEC_ID_MSMPEG4V1,
        CODEC_ID_MSMPEG4V2,
        CODEC_ID_MSMPEG4V3,
        CODEC_ID_WMV1,
        CODEC_ID_WMV2,
        CODEC_ID_H263P,
        CODEC_ID_H263I,
        CODEC_ID_FLV1,
        CODEC_ID_SVQ1,
        CODEC_ID_SVQ3,
        CODEC_ID_DVVIDEO,
        CODEC_ID_HUFFYUV,
        CODEC_ID_CYUV,
        CODEC_ID_H264,
        CODEC_ID_INDEO3,
        CODEC_ID_VP3,
        CODEC_ID_THEORA,
        CODEC_ID_ASV1,
        CODEC_ID_ASV2,
        CODEC_ID_FFV1,
        CODEC_ID_4XM,
        CODEC_ID_VCR1,
        CODEC_ID_CLJR,
        CODEC_ID_MDEC,
        CODEC_ID_ROQ,
        CODEC_ID_INTERPLAY_VIDEO,
        CODEC_ID_XAN_WC3,
        CODEC_ID_XAN_WC4,
        CODEC_ID_RPZA,
        CODEC_ID_CINEPAK,
        CODEC_ID_WS_VQA,
        CODEC_ID_MSRLE,
        CODEC_ID_MSVIDEO1,
        CODEC_ID_IDCIN,
        CODEC_ID_8BPS,
        CODEC_ID_SMC,
        CODEC_ID_FLIC,
        CODEC_ID_TRUEMOTION1,
        CODEC_ID_VMDVIDEO,
        CODEC_ID_MSZH,
        CODEC_ID_ZLIB,
        CODEC_ID_QTRLE,
        CODEC_ID_SNOW,
        CODEC_ID_TSCC,
        CODEC_ID_ULTI,
        CODEC_ID_QDRAW,
        CODEC_ID_VIXL,
        CODEC_ID_QPEG,
        CODEC_ID_XVID,
        CODEC_ID_PNG,
        CODEC_ID_PPM,
        CODEC_ID_PBM,
        CODEC_ID_PGM,
        CODEC_ID_PGMYUV,
        CODEC_ID_PAM,
        CODEC_ID_FFVHUFF,
        CODEC_ID_RV30,
        CODEC_ID_RV40,
        CODEC_ID_VC1,
        CODEC_ID_WMV3,
        CODEC_ID_LOCO,
        CODEC_ID_WNV1,
        CODEC_ID_AASC,
        CODEC_ID_INDEO2,
        CODEC_ID_FRAPS,
        CODEC_ID_TRUEMOTION2,
        CODEC_ID_BMP,
        CODEC_ID_CSCD,
        CODEC_ID_MMVIDEO,
        CODEC_ID_ZMBV,
        CODEC_ID_AVS,
        CODEC_ID_SMACKVIDEO,
        CODEC_ID_NUV,
        CODEC_ID_KMVC,
        CODEC_ID_FLASHSV,
        CODEC_ID_CAVS,
        CODEC_ID_JPEG2000,
        CODEC_ID_VMNC,
        CODEC_ID_VP5,
        CODEC_ID_VP6,
        CODEC_ID_VP6F,
        CODEC_ID_TARGA,
        CODEC_ID_DSICINVIDEO,
        CODEC_ID_TIERTEXSEQVIDEO,
        CODEC_ID_TIFF,
        CODEC_ID_GIF,
        CODEC_ID_FFH264,
        CODEC_ID_DXA,
        CODEC_ID_DNXHD,
        CODEC_ID_THP,
        CODEC_ID_SGI,
        CODEC_ID_C93,
        CODEC_ID_BETHSOFTVID,
        CODEC_ID_PTX,
        CODEC_ID_TXD,
        CODEC_ID_VP6A,
        CODEC_ID_AMV,
        CODEC_ID_VB,
        CODEC_ID_PCX,
        CODEC_ID_SUNRAST,
        CODEC_ID_INDEO4,
        CODEC_ID_INDEO5,
        CODEC_ID_MIMIC,
        CODEC_ID_RL2,
        CODEC_ID_8SVX_EXP,
        CODEC_ID_8SVX_FIB,
        CODEC_ID_ESCAPE124,
        CODEC_ID_DIRAC,
        CODEC_ID_BFI,
     
        /* various PCM "codecs" */
        CODEC_ID_PCM_S16LE= 0x10000,
        CODEC_ID_PCM_S16BE,
        CODEC_ID_PCM_U16LE,
        CODEC_ID_PCM_U16BE,
        CODEC_ID_PCM_S8,
        CODEC_ID_PCM_U8,
        CODEC_ID_PCM_MULAW,
        CODEC_ID_PCM_ALAW,
        CODEC_ID_PCM_S32LE,
        CODEC_ID_PCM_S32BE,
        CODEC_ID_PCM_U32LE,
        CODEC_ID_PCM_U32BE,
        CODEC_ID_PCM_S24LE,
        CODEC_ID_PCM_S24BE,
        CODEC_ID_PCM_U24LE,
        CODEC_ID_PCM_U24BE,
        CODEC_ID_PCM_S24DAUD,
        CODEC_ID_PCM_ZORK,
        CODEC_ID_PCM_S16LE_PLANAR,
        CODEC_ID_PCM_DVD,
     
        /* various ADPCM codecs */
        CODEC_ID_ADPCM_IMA_QT= 0x11000,
        CODEC_ID_ADPCM_IMA_WAV,
        CODEC_ID_ADPCM_IMA_DK3,
        CODEC_ID_ADPCM_IMA_DK4,
        CODEC_ID_ADPCM_IMA_WS,
        CODEC_ID_ADPCM_IMA_SMJPEG,
        CODEC_ID_ADPCM_MS,
        CODEC_ID_ADPCM_4XM,
        CODEC_ID_ADPCM_XA,
        CODEC_ID_ADPCM_ADX,
        CODEC_ID_ADPCM_EA,
        CODEC_ID_ADPCM_G726,
        CODEC_ID_ADPCM_CT,
        CODEC_ID_ADPCM_SWF,
        CODEC_ID_ADPCM_YAMAHA,
        CODEC_ID_ADPCM_SBPRO_4,
        CODEC_ID_ADPCM_SBPRO_3,
        CODEC_ID_ADPCM_SBPRO_2,
        CODEC_ID_ADPCM_THP,
        CODEC_ID_ADPCM_IMA_AMV,
        CODEC_ID_ADPCM_EA_R1,
        CODEC_ID_ADPCM_EA_R3,
        CODEC_ID_ADPCM_EA_R2,
        CODEC_ID_ADPCM_IMA_EA_SEAD,
        CODEC_ID_ADPCM_IMA_EA_EACS,
        CODEC_ID_ADPCM_EA_XAS,
        CODEC_ID_ADPCM_EA_MAXIS_XA,
     
        /* AMR */
        CODEC_ID_AMR_NB= 0x12000,
        CODEC_ID_AMR_WB,
     
        /* RealAudio codecs*/
        CODEC_ID_RA_144= 0x13000,
        CODEC_ID_RA_288,
     
        /* various DPCM codecs */
        CODEC_ID_ROQ_DPCM= 0x14000,
        CODEC_ID_INTERPLAY_DPCM,
        CODEC_ID_XAN_DPCM,
        CODEC_ID_SOL_DPCM,
     
        /* audio codecs */
        CODEC_ID_MP2= 0x15000,
        CODEC_ID_MP3, ///< preferred ID for decoding MPEG audio layer 1, 2 or 3
        CODEC_ID_AAC,
    #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
        CODEC_ID_MPEG4AAC,
    #endif
        CODEC_ID_AC3,
        CODEC_ID_DTS,
        CODEC_ID_VORBIS,
        CODEC_ID_DVAUDIO,
        CODEC_ID_WMAV1,
        CODEC_ID_WMAV2,
        CODEC_ID_MACE3,
        CODEC_ID_MACE6,
        CODEC_ID_VMDAUDIO,
        CODEC_ID_SONIC,
        CODEC_ID_SONIC_LS,
        CODEC_ID_FLAC,
        CODEC_ID_MP3ADU,
        CODEC_ID_MP3ON4,
        CODEC_ID_SHORTEN,
        CODEC_ID_ALAC,
        CODEC_ID_WESTWOOD_SND1,
        CODEC_ID_GSM, ///< as in Berlin toast format
        CODEC_ID_QDM2,
        CODEC_ID_COOK,
        CODEC_ID_TRUESPEECH,
        CODEC_ID_TTA,
        CODEC_ID_SMACKAUDIO,
        CODEC_ID_QCELP,
        CODEC_ID_WAVPACK,
        CODEC_ID_DSICINAUDIO,
        CODEC_ID_IMC,
        CODEC_ID_MUSEPACK7,
        CODEC_ID_MLP,
        CODEC_ID_GSM_MS, /* as found in WAV */
        CODEC_ID_ATRAC3,
        CODEC_ID_VOXWARE,
        CODEC_ID_APE,
        CODEC_ID_NELLYMOSER,
        CODEC_ID_MUSEPACK8,
        CODEC_ID_SPEEX,
        CODEC_ID_WMAVOICE,
        CODEC_ID_WMAPRO,
        CODEC_ID_WMALOSSLESS,
        CODEC_ID_ATRAC3P,
     
        /* subtitle codecs */
        CODEC_ID_DVD_SUBTITLE= 0x17000,
        CODEC_ID_DVB_SUBTITLE,
        CODEC_ID_TEXT,  ///< raw UTF-8 text
        CODEC_ID_XSUB,
        CODEC_ID_SSA,
        CODEC_ID_MOV_TEXT,
     
        /* other specific kind of codecs (generally used for attachments) */
        CODEC_ID_TTF= 0x18000,
     
        CODEC_ID_MPEG2TS= 0x20000, /**< _FAKE_ codec to indicate a raw MPEG-2 TS
                                    * stream (only used by libavformat) */
    };
     
    #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
    /* CODEC_ID_MP3LAME is obsolete */
    #define CODEC_ID_MP3LAME CODEC_ID_MP3
    #define CODEC_ID_MPEG4AAC CODEC_ID_AAC
    #endif
     
    enum CodecType {
        CODEC_TYPE_UNKNOWN = -1,
        CODEC_TYPE_VIDEO,
        CODEC_TYPE_AUDIO,
        CODEC_TYPE_DATA,
        CODEC_TYPE_SUBTITLE,
        CODEC_TYPE_ATTACHMENT,
        CODEC_TYPE_NB
    };
     
    /**
     * Currently unused, may be used if 24/32 bits samples are ever supported.
     * all in native-endian format
     */
    enum SampleFormat {
        SAMPLE_FMT_NONE = -1,
        SAMPLE_FMT_U8,              ///< unsigned 8 bits
        SAMPLE_FMT_S16,             ///< signed 16 bits
        SAMPLE_FMT_S24,             ///< signed 24 bits
        SAMPLE_FMT_S32,             ///< signed 32 bits
        SAMPLE_FMT_FLT,             ///< float
    };
     
    /* in bytes */
    #define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
     
    /**
     * Required number of additionally allocated bytes at the end of the input bitstream for decoding.
     * This is mainly needed because some optimized bitstream readers read
     * 32 or 64 bit at once and could read over the end.<br>
     * Note: If the first 23 bits of the additional bytes are not 0, then damaged
     * MPEG bitstreams could cause overread and segfault.
     */
    #define FF_INPUT_BUFFER_PADDING_SIZE 8
     
    /**
     * minimum encoding buffer size
     * Used to avoid some checks during header writing.
     */
    #define FF_MIN_BUFFER_SIZE 16384
     
    /**
     * motion estimation type.
     */
    enum Motion_Est_ID {
        ME_ZERO = 1,    ///< no search, that is use 0,0 vector whenever one is needed
        ME_FULL,
        ME_LOG,
        ME_PHODS,
        ME_EPZS,        ///< enhanced predictive zonal search
        ME_X1,          ///< reserved for experiments
        ME_HEX,         ///< hexagon based search
        ME_UMH,         ///< uneven multi-hexagon search
        ME_ITER,        ///< iterative search
        ME_TESA,        ///< transformed exhaustive search algorithm
    };
     
    enum AVDiscard{
        /* We leave some space between them for extensions (drop some
         * keyframes for intra-only or drop just some bidir frames). */
        AVDISCARD_NONE   =-16, ///< discard nothing
        AVDISCARD_DEFAULT=  0, ///< discard useless packets like 0 size packets in avi
        AVDISCARD_NONREF =  8, ///< discard all non reference
        AVDISCARD_BIDIR  = 16, ///< discard all bidirectional frames
        AVDISCARD_NONKEY = 32, ///< discard all frames except keyframes
        AVDISCARD_ALL    = 48, ///< discard all
    };
     
    typedef struct RcOverride{
        int start_frame;
        int end_frame;
        int qscale; // If this is 0 then quality_factor will be used instead.
        float quality_factor;
    } RcOverride;
     
    #define FF_MAX_B_FRAMES 16
     
    /* encoding support
       These flags can be passed in AVCodecContext.flags before initialization.
       Note: Not everything is supported yet.
    */
     
    #define CODEC_FLAG_QSCALE 0x0002  ///< Use fixed qscale.
    #define CODEC_FLAG_4MV    0x0004  ///< 4 MV per MB allowed / advanced prediction for H.263.
    #define CODEC_FLAG_QPEL   0x0010  ///< Use qpel MC.
    #define CODEC_FLAG_GMC    0x0020  ///< Use GMC.
    #define CODEC_FLAG_MV0    0x0040  ///< Always try a MB with MV=<0,0>.
    #define CODEC_FLAG_PART   0x0080  ///< Use data partitioning.
    /**
     * The parent program guarantees that the input for B-frames containing
     * streams is not written to for at least s->max_b_frames+1 frames, if
     * this is not set the input will be copied.
     */
    #define CODEC_FLAG_INPUT_PRESERVED 0x0100
    #define CODEC_FLAG_PASS1           0x0200   ///< Use internal 2pass ratecontrol in first pass mode.
    #define CODEC_FLAG_PASS2           0x0400   ///< Use internal 2pass ratecontrol in second pass mode.
    #define CODEC_FLAG_EXTERN_HUFF     0x1000   ///< Use external Huffman table (for MJPEG).
    #define CODEC_FLAG_GRAY            0x2000   ///< Only decode/encode grayscale.
    #define CODEC_FLAG_EMU_EDGE        0x4000   ///< Don't draw edges.
    #define CODEC_FLAG_PSNR            0x8000   ///< error[?] variables will be set during encoding.
    #define CODEC_FLAG_TRUNCATED       0x00010000 /** Input bitstream might be truncated at a random
                                                      location instead of only at frame boundaries. */
    #define CODEC_FLAG_NORMALIZE_AQP  0x00020000 ///< Normalize adaptive quantization.
    #define CODEC_FLAG_INTERLACED_DCT 0x00040000 ///< Use interlaced DCT.
    #define CODEC_FLAG_LOW_DELAY      0x00080000 ///< Force low delay.
    #define CODEC_FLAG_ALT_SCAN       0x00100000 ///< Use alternate scan.
    #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
    #define CODEC_FLAG_TRELLIS_QUANT  0x00200000 ///< Use trellis quantization.
    #endif
    #define CODEC_FLAG_GLOBAL_HEADER  0x00400000 ///< Place global headers in extradata instead of every keyframe.
    #define CODEC_FLAG_BITEXACT       0x00800000 ///< Use only bitexact stuff (except (I)DCT).
    /* Fx : Flag for h263+ extra options */
    #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
    #define CODEC_FLAG_H263P_AIC      0x01000000 ///< H.263 advanced intra coding / MPEG-4 AC prediction (remove this)
    #endif
    #define CODEC_FLAG_AC_PRED        0x01000000 ///< H.263 advanced intra coding / MPEG-4 AC prediction
    #define CODEC_FLAG_H263P_UMV      0x02000000 ///< unlimited motion vector
    #define CODEC_FLAG_CBP_RD         0x04000000 ///< Use rate distortion optimization for cbp.
    #define CODEC_FLAG_QP_RD          0x08000000 ///< Use rate distortion optimization for qp selectioon.
    #define CODEC_FLAG_H263P_AIV      0x00000008 ///< H.263 alternative inter VLC
    #define CODEC_FLAG_OBMC           0x00000001 ///< OBMC
    #define CODEC_FLAG_LOOP_FILTER    0x00000800 ///< loop filter
    #define CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000
    #define CODEC_FLAG_INTERLACED_ME  0x20000000 ///< interlaced motion estimation
    #define CODEC_FLAG_SVCD_SCAN_OFFSET 0x40000000 ///< Will reserve space for SVCD scan offset user data.
    #define CODEC_FLAG_CLOSED_GOP     0x80000000
    #define CODEC_FLAG2_FAST          0x00000001 ///< Allow non spec compliant speedup tricks.
    #define CODEC_FLAG2_STRICT_GOP    0x00000002 ///< Strictly enforce GOP size.
    #define CODEC_FLAG2_NO_OUTPUT     0x00000004 ///< Skip bitstream encoding.
    #define CODEC_FLAG2_LOCAL_HEADER  0x00000008 ///< Place global headers at every keyframe instead of in extradata.
    #define CODEC_FLAG2_BPYRAMID      0x00000010 ///< H.264 allow B-frames to be used as references.
    #define CODEC_FLAG2_WPRED         0x00000020 ///< H.264 weighted biprediction for B-frames
    #define CODEC_FLAG2_MIXED_REFS    0x00000040 ///< H.264 one reference per partition, as opposed to one reference per macroblock
    #define CODEC_FLAG2_8X8DCT        0x00000080 ///< H.264 high profile 8x8 transform
    #define CODEC_FLAG2_FASTPSKIP     0x00000100 ///< H.264 fast pskip
    #define CODEC_FLAG2_AUD           0x00000200 ///< H.264 access unit delimiters
    #define CODEC_FLAG2_BRDO          0x00000400 ///< B-frame rate-distortion optimization
    #define CODEC_FLAG2_INTRA_VLC     0x00000800 ///< Use MPEG-2 intra VLC table.
    #define CODEC_FLAG2_MEMC_ONLY     0x00001000 ///< Only do ME/MC (I frames -> ref, P frame -> ME+MC).
    #define CODEC_FLAG2_DROP_FRAME_TIMECODE 0x00002000 ///< timecode is in drop frame format.
    #define CODEC_FLAG2_SKIP_RD       0x00004000 ///< RD optimal MB level residual skipping
    #define CODEC_FLAG2_CHUNKS        0x00008000 ///< Input bitstream might be truncated at a packet boundaries instead of only at frame boundaries.
    #define CODEC_FLAG2_NON_LINEAR_QUANT 0x00010000 ///< Use MPEG-2 nonlinear quantizer.
    #define CODEC_FLAG2_BIT_RESERVOIR 0x00020000 ///< Use a bit reservoir when encoding if possible
     
    /* Unsupported options :
     *              Syntax Arithmetic coding (SAC)
     *              Reference Picture Selection
     *              Independent Segment Decoding */
    /* /Fx */
    /* codec capabilities */
     
    #define CODEC_CAP_DRAW_HORIZ_BAND 0x0001 ///< Decoder can use draw_horiz_band callback.
    /**
     * Codec uses get_buffer() for allocating buffers.
     * direct rendering method 1
     */
    #define CODEC_CAP_DR1             0x0002
    /* If 'parse_only' field is true, then avcodec_parse_frame() can be used. */
    #define CODEC_CAP_PARSE_ONLY      0x0004
    #define CODEC_CAP_TRUNCATED       0x0008
    /* Codec can export data for HW decoding (XvMC). */
    #define CODEC_CAP_HWACCEL         0x0010
    /**
     * Codec has a nonzero delay and needs to be fed with NULL at the end to get the delayed data.
     * If this is not set, the codec is guaranteed to never be fed with NULL data.
     */
    #define CODEC_CAP_DELAY           0x0020
    /**
     * Codec can be fed a final frame with a smaller size.
     * This can be used to prevent truncation of the last audio samples.
     */
    #define CODEC_CAP_SMALL_LAST_FRAME 0x0040
     
    //The following defines may change, don't expect compatibility if you use them.
    #define MB_TYPE_INTRA4x4   0x0001
    #define MB_TYPE_INTRA16x16 0x0002 //FIXME H.264-specific
    #define MB_TYPE_INTRA_PCM  0x0004 //FIXME H.264-specific
    #define MB_TYPE_16x16      0x0008
    #define MB_TYPE_16x8       0x0010
    #define MB_TYPE_8x16       0x0020
    #define MB_TYPE_8x8        0x0040
    #define MB_TYPE_INTERLACED 0x0080
    #define MB_TYPE_DIRECT2    0x0100 //FIXME
    #define MB_TYPE_ACPRED     0x0200
    #define MB_TYPE_GMC        0x0400
    #define MB_TYPE_SKIP       0x0800
    #define MB_TYPE_P0L0       0x1000
    #define MB_TYPE_P1L0       0x2000
    #define MB_TYPE_P0L1       0x4000
    #define MB_TYPE_P1L1       0x8000
    #define MB_TYPE_L0         (MB_TYPE_P0L0 | MB_TYPE_P1L0)
    #define MB_TYPE_L1         (MB_TYPE_P0L1 | MB_TYPE_P1L1)
    #define MB_TYPE_L0L1       (MB_TYPE_L0   | MB_TYPE_L1)
    #define MB_TYPE_QUANT      0x00010000
    #define MB_TYPE_CBP        0x00020000
    //Note bits 24-31 are reserved for codec specific use (h264 ref0, mpeg1 0mv, ...)
     
    /**
     * Pan Scan area.
     * This specifies the area which should be displayed.
     * Note there may be multiple such areas for one frame.
     */
    typedef struct AVPanScan{
        /**
         * id
         * - encoding: Set by user.
         * - decoding: Set by libavcodec.
         */
        int id;
     
        /**
         * width and height in 1/16 pel
         * - encoding: Set by user.
         * - decoding: Set by libavcodec.
         */
        int width;
        int height;
     
        /**
         * position of the top left corner in 1/16 pel for up to 3 fields/frames
         * - encoding: Set by user.
         * - decoding: Set by libavcodec.
         */
        int16_t position[3][2];
    }AVPanScan;
     
    #define FF_COMMON_FRAME \
        /**\
         * pointer to the picture planes.\
         * This might be different from the first allocated byte\
         * - encoding: \
         * - decoding: \
         */\
        uint8_t *data[4];\
        int linesize[4];\
        /**\
         * pointer to the first allocated byte of the picture. Can be used in get_buffer/release_buffer.\
         * This isn't used by libavcodec unless the default get/release_buffer() is used.\
         * - encoding: \
         * - decoding: \
         */\
        uint8_t *base[4];\
        /**\
         * 1 -> keyframe, 0-> not\
         * - encoding: Set by libavcodec.\
         * - decoding: Set by libavcodec.\
         */\
        int key_frame;\
    \
        /**\
         * Picture type of the frame, see ?_TYPE below.\
         * - encoding: Set by libavcodec. for coded_picture (and set by user for input).\
         * - decoding: Set by libavcodec.\
         */\
        int pict_type;\
    \
        /**\
         * presentation timestamp in time_base units (time when frame should be shown to user)\
         * If AV_NOPTS_VALUE then frame_rate = 1/time_base will be assumed.\
         * - encoding: MUST be set by user.\
         * - decoding: Set by libavcodec.\
         */\
        int64_t pts;\
    \
        /**\
         * picture number in bitstream order\
         * - encoding: set by\
         * - decoding: Set by libavcodec.\
         */\
        int coded_picture_number;\
        /**\
         * picture number in display order\
         * - encoding: set by\
         * - decoding: Set by libavcodec.\
         */\
        int display_picture_number;\
    \
        /**\
         * quality (between 1 (good) and FF_LAMBDA_MAX (bad)) \
         * - encoding: Set by libavcodec. for coded_picture (and set by user for input).\
         * - decoding: Set by libavcodec.\
         */\
        int quality; \
    \
        /**\
         * buffer age (1->was last buffer and dint change, 2->..., ...).\
         * Set to INT_MAX if the buffer has not been used yet.\
         * - encoding: unused\
         * - decoding: MUST be set by get_buffer().\
         */\
        int age;\
    \
        /**\
         * is this picture used as reference\
         * The values for this are the same as the MpegEncContext.picture_structure\
         * variable, that is 1->top field, 2->bottom field, 3->frame/both fields.\
         * - encoding: unused\
         * - decoding: Set by libavcodec. (before get_buffer() call)).\
         */\
        int reference;\
    \
        /**\
         * QP table\
         * - encoding: unused\
         * - decoding: Set by libavcodec.\
         */\
        int8_t *qscale_table;\
        /**\
         * QP store stride\
         * - encoding: unused\
         * - decoding: Set by libavcodec.\
         */\
        int qstride;\
    \
        /**\
         * mbskip_table[mb]>=1 if MB didn't change\
         * stride= mb_width = (width+15)>>4\
         * - encoding: unused\
         * - decoding: Set by libavcodec.\
         */\
        uint8_t *mbskip_table;\
    \
        /**\
         * motion vector table\
         * @code\
         * example:\
         * int mv_sample_log2= 4 - motion_subsample_log2;\
         * int mb_width= (width+15)>>4;\
         * int mv_stride= (mb_width << mv_sample_log2) + 1;\
         * motion_val[direction][x + y*mv_stride][0->mv_x, 1->mv_y];\
         * @endcode\
         * - encoding: Set by user.\
         * - decoding: Set by libavcodec.\
         */\
        int16_t (*motion_val[2])[2];\
    \
        /**\
         * macroblock type table\
         * mb_type_base + mb_width + 2\
         * - encoding: Set by user.\
         * - decoding: Set by libavcodec.\
         */\
        uint32_t *mb_type;\
    Le forum m'empêche de le mettre en entier...

  6. #6
    Nouveau Candidat au Club
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    4
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 4
    Points : 1
    Points
    1
    Par défaut Resolu
    Probleme resolu, apparemment c'etait dû à une version trop recente de libavutil... Merci Mygale1978 tu m'as donné l'idée de me pencher sur les versions...

    Paul

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. problème de compilation sous visual C++
    Par fabmili dans le forum MFC
    Réponses: 4
    Dernier message: 08/02/2004, 19h52
  2. problème de compil devc++ socket
    Par stefdem dans le forum Autres éditeurs
    Réponses: 2
    Dernier message: 11/12/2003, 11h33
  3. Réponses: 1
    Dernier message: 29/10/2003, 12h16
  4. Problème de compilation de la DLL du XMLRad
    Par [DreaMs] dans le forum XMLRAD
    Réponses: 2
    Dernier message: 16/04/2003, 16h46
  5. Réponses: 1
    Dernier message: 27/05/2002, 01h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo