Recherche avancée

Médias (91)

Autres articles (71)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (6226)

  • ffmpeg PNG - MP4 - Error opening input files : invalid argument

    15 mai 2013, par Max Savage Kramer

    I am following along with this
    visualization project
    converting PNG files in an MP4.

    The only change from the code on the example is that my time stamp starts with
    1.

    ffmpeg -r 20 -b 20M -i example%01d.png output.mp4
    

    And this is what returns

    ffmpeg version N-53055-g7b43120 Copyright (c) 2000-2013 the FFmpeg developers
    built on May 14 2013 20:43:53 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
    configuration : —disable-yasm
    libavutil      52. 31.100 / 52. 31.100
    libavcodec     55.  9.100 / 55.  9.100
    libavformat    55.  7.100 / 55.  7.100
    libavdevice    55.  0.100 / 55.  0.100
    libavfilter     3. 67.100 /  3. 67.100
    libswscale      2.  3.100 /  2.  3.100
    libswresample   0. 17.102 /  0. 17.102
    **Option b (video bitrate (please use -b:v)) cannot be applied to input file
    example%01d.png — you are trying to apply an input option to an output file or
    vice versa. Move this option before the file it belongs to.
    Error parsing options for input file example%01d.png.
    Error opening input files : Invalid argument**
    
  • Using ffmpeg static libraries in an visual studio explress C++ 2010 project

    29 octobre 2015, par Yvo Götz

    As the title says, I have been trying to get ffmpeg/libav libraries to work in MSVC++ 2010.
    However, I keep running in the following error while coding on debug mode.

    code :

    extern "C"
    {
       #ifndef __STDC_CONSTANT_MACROS
       #define __STDC_CONSTANT_MACROS
       #endif
       #include
       #include
       #include
       #include
    }
    int main( int argc, char* argv[] )
    {
       av_register_all();
       return 0;
    }

    console :

    1>------ Build started: Project: ffmpeg, Configuration: Debug Win32 ------
    1>ffmpeg.obj : error LNK2019: unresolved external symbol _av_register_all referenced in       function _main
    1>C:\Users\okki\documents\visual studio 2010\Projects\ffmpeg\Debug\ffmpeg.exe : fatal    error LNK1120: 1 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    I used zeranoe’s latest build git-56ba331 (2013-05-14).

    And I have tried the following to fix this :

    • configuring the project to look for both the x64 and x86 libraries.
    • Add the DLLs from the ’shared’ package to both library folders.
    • Add the library directory to both the linker options and VC++ Directories.

    I have been stuck on this for a while, and any suggestion can help.
    If any extra info is needed I will happily provide.

  • Converting RGB images into lossless video with avconv / ffmpeg [migrated]

    19 mai 2013, par despens

    I am trying to convert a series of PNG24 images containing a screen animation to a lossless video, so that every pixel is reproduced exactly as it was in the original. But avconv (and ffmpeg) both produce the same, unsatisfying results, which seem to stem from a colospace conversion going wrong.

    This is the version of avconv I am using :

    avconv version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
     built on Apr  2 2013 17:02:36 with gcc 4.6.3

    Each of the images is 1280×800 pixels in size. They do not contain any photographic motives, but specially dithered patterns.

    I used the qtrle codec because apparently this is a lossless codec that works very much like animated GIFs or animated PNGs. However, during the conversion to video there seems to happen a color space conversion ("filter") that is messing with the pixels.

    This is the avconv output :

    $ avconv -f image2 -r 30 -i frames.png/wth-%08d.png -vcodec qtrle -pix_fmt rgb24 -t 15 qtrle-30fps-rgb.mov
    avconv version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
     built on Apr  2 2013 17:02:36 with gcc 4.6.3
    Input #0, image2, from 'frames.png/wth-%08d.png':
     Duration: 00:11:17.96, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: png, bgra, 1280x800, 30 fps, 30 tbr, 30 tbn, 30 tbc
    File 'qtrle-30fps-rgb.mov' already exists. Overwrite ? [y/N] y
    [buffer @ 0x740a00] w:1280 h:800 pixfmt:bgra
    [avsink @ 0x742ac0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out'
    [scale @ 0x743680] w:1280 h:800 fmt:bgra -> w:1280 h:800 fmt:rgb24 flags:0x4
    Output #0, mov, to 'qtrle-30fps-rgb.mov':
     Metadata:
       encoder         : Lavf53.21.1
       Stream #0.0: Video: qtrle, rgb24, 1280x800, q=2-31, 200 kb/s, 30 tbn, 30 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png -> qtrle)
    Press ctrl-c to stop encoding
    frame=  450 fps= 22 q=0.0 Lsize=  126056kB time=15.00 bitrate=68843.4kbits/s    
    video:126052kB audio:0kB global headers:0kB muxing overhead 0.003441%

    This is an original PNG image file :

    enter image description here

    This is a screenshot of the video being replayed :

    Screenshot of the video being replayed

    Please note that you need to see these images in their original 1280×800 resolution to notice the differences.

    Here is a side-by-side comparison, with the left picture being the original and the right one the outcome after video encoding :

    enter image description here

    Is there any way I can produce a truly lossless, pixel-perfect video file from a series of PNGs ?