Recherche avancée

Médias (91)

Autres articles (8)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (2196)

  • why type casting on non-pointer struct give syntax error

    31 mars 2016, par Sany Liew

    I am using Visual C++ express 2008 try to compile code similar to below :

    no problem

    {
     ...
     AVRational test = {1, 1000};
     ...
    }

    but has problem when it is as below :

    {
     ...
     AVRational test = (AVRational){1, 1000};
     ...
    }

    gave errors :

    1>..\..\..\projects\test\xyz.cpp(1139) : error C2059: syntax error : '{'
    1>..\..\..\projects\test\xyz.cpp(1139) : error C2143: syntax error : missing   ';' before '{'
    1>..\..\..\projects\test\xyz.cpp(1139) : error C2143: syntax error : missing ';' before '}'

    where AVRational (ffmpeg.org library) is defined as :

    typedef struct AVRational{
       int num; ///< numerator
       int den; ///< denominator
    } AVRational;

    FFmpeg come with some pre-define value such as

    #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}

    which is used as below

    av_rescale_q(seek_target, AV_TIME_BASE_Q, pFormatCtx->streams[stream_index]->time_base);

    will failed to compile on Visual C++ express 2008

    It seem like the same code will be compiled with no error/warning on gcc compiler. Why I get this error on VC++ ? Is it a C/C++ standard way to do casting on struct value ? Anyway I can avoid this error while still able to use the defined AV_TIME_BASE_Q ?

  • why type casting on non-pointer struct give syntax error

    1er avril 2020, par Sany Liew

    I am using Visual C++ express 2008 try to compile code similar to below :

    



    no problem

    



    {
  ...
  AVRational test = {1, 1000};
  ...
}


    



    but has problem when it is as below :

    



    {
  ...
  AVRational test = (AVRational){1, 1000};
  ...
}


    



    gave errors :

    



    1>..\..\..\projects\test\xyz.cpp(1139) : error C2059: syntax error : '{'
1>..\..\..\projects\test\xyz.cpp(1139) : error C2143: syntax error : missing   ';' before '{'
1>..\..\..\projects\test\xyz.cpp(1139) : error C2143: syntax error : missing ';' before '}'


    



    where AVRational (ffmpeg.org library) is defined as :

    



    typedef struct AVRational{
    int num; ///< numerator
    int den; ///< denominator
} AVRational;


    



    FFmpeg come with some pre-define value such as

    



    #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}


    



    which is used as below

    



    av_rescale_q(seek_target, AV_TIME_BASE_Q, pFormatCtx->streams[stream_index]->time_base);


    



    will failed to compile on Visual C++ express 2008

    



    It seem like the same code will be compiled with no error/warning on gcc compiler. Why I get this error on VC++ ? Is it a C/C++ standard way to do casting on struct value ? Anyway I can avoid this error while still able to use the defined AV_TIME_BASE_Q ?

    


  • ffmpeg 2.8.x cross compile error on mac os x 10.10

    22 avril 2016, par alijandro

    I want to cross compile ffmpeg 2.8.x on Mac OS X 10.10, but I got the following error.

    HOSTCC  libavcodec/cabac_tablegen.o
    In file included from libavcodec/cabac_tablegen.c:25:
    In file included from libavcodec/cabac_functions.h:43:
    libavcodec/arm/cabac.h:96:25: error: value '24' out of range for constraint 'M'
             [byte]"M"(offsetof(CABACContext, bytestream)),
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.0.2/include/stddef.h:120:24: note:
     expanded from macro 'offsetof'
    #define offsetof(t, d) __builtin_offsetof(t, d)
                      ^~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
    make: *** [libavcodec/cabac_tablegen.o] Error 1

    The error show some error in host cc, the host cc is clang-700.1.81

    $ gcc --version
    Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
    Apple LLVM version 7.0.2 (clang-700.1.81)
    Target: x86_64-apple-darwin14.5.0
    Thread model: posix

    Before I upgrade Xcode to 7.2, it worked fine.

    For ffmpeg 3.x, there is no such problem. But the ffmpeg version I need is 2.8.x. How can I fix without downgrade Xcode to previous version ?