Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (17)

  • 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 (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • 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 (...)

Sur d’autres sites (5567)

  • ffmpeg adds silence when used with input text file

    1er octobre 2022, par AncientToaster

    I'm using ffmpeg's concat option to combine a series of still images with an mp3 file. The total duration of my input.txt file is 12532 seconds, which is exactly the same as the total duration of my mp3 file (3:28:52, or 12532 seconds).

    


    But ffmpeg is adding 200 seconds of audio-free content to the end of the video. I've tried totaling and re-totaling the total duration of input.txt and it all seems to add up to the same amount. Including or excluding the -shortest flag also doesn't seem to matter.

    


      

    • ffmpeg command :

      


      ffmpeg -f concat -i input.txt -i input.mp3 -shortest -c:v libx264 -r 1 -pix_fmt yuv420p output.mp4


      


    • 


    • input.txt source

      


    • 


    • input.mp3

      


    • 


    • output file

      


    • 


    


    I'm having the same issue (differing amounts of time) with other videos.

    


  • ffmpeg adds 200 seconds of silence

    1er octobre 2022, par AncientToaster

    I'm using ffmpeg's concat option to combine a series of still images with an mp3 file. The total duration of my input.txt file is 12532 seconds, which is exactly the same as the total duration of my mp3 file (3:28:52, or 12532 seconds).

    


    But ffmpeg is adding 200 seconds of audio-free content to the end of the video. I've tried totaling and re-totaling the total duration of input.txt and it all seems to add up to the same amount. Including or excluding the -shortest flag also doesn't seem to matter.

    


      

    • ffmpeg command :

      


      ffmpeg -f concat -i input.txt -i input.mp3 -shortest -c:v libx264 -r 1 -pix_fmt yuv420p output.mp4


      


    • 


    • input.txt source

      


    • 


    • input.mp3

      


    • 


    • output file

      


    • 


    


  • Application using FFMPEG Library does not compile with CMAKE error avformat_alloc_context but I have imported the header files and libray

    23 mai 2022, par Clockman

    I compiled the FFMPEG source file myself and got the header and library files in an include and bin folder respectively, the target platform is Windows 10. I also setup my cmakelist.txt to find and include both the library and header files. The application finds the path or so it seems because during compilation I get a "LNK2019 error unresolved external symbol avformat_alloc_context referenced in function main". Below is an extract from my cmake list ; I will like to note that I got the .lib and .dll versions of the library hence the approach below based on the book "professional cmake" and other stackflow examples.

    


    ProjectDir/AudMan/cmakelist.txt

    


    list(APPEND CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH};PATH-TO-INCLUDES;PATH-TO-LIBRARY)
find_path(AVFORMAT_INCLUDE_DIR libavformat/avformat.h)
find_library(AVFORMAT_LIBRARY avformat)
add_library(ffmpegHeaders INTERFACE)
target_include_directories(ffmpegHeaders INTERFACE ${AVFORMAT_INCLUDE_DIR})


    


    ProjectDir/cmakelist.txt

    


    set(Rapid_Prefix PATH-TO-LIBRARY)
    add_library(AVformat SHARED IMPORTED)
    set_target_properties(AVformat PROPERTIES IMPORTED_LOCATION ${Rapid_Prefix}/avformat-59.dll IMPORTED_IMPLIB ${AVFORMAT_LIBRARY})
target_link_libraries(App_target PRIVATE AVformat)


    


    A sample of the codes is this

    


    extern "C" {&#xA;#include <libavcodec></libavcodec>avcodec.h>&#xA;#include <libavformat></libavformat>avformat.h>&#xA;}&#xA;&#xA;int main()&#xA;{&#xA;    AVFormatContext* format = avformat_alloc_context();&#xA;    if (avformat_open_input(&amp;format, R"(\test.m4a)", NULL, NULL) != 0) {&#xA;        fprintf(stderr, "Could not open file &#x27;%s&#x27;\n", R"(\test.m4a)");&#xA;        return -1;&#xA;    }&#xA;    if (avformat_find_stream_info(format, NULL) &lt; 0) {&#xA;        fprintf(stderr, "Could not retrieve stream info from file &#x27;%s&#x27;\n", R"(test.m4a)");&#xA;        return -1;&#xA;    }&#xA;    return 0;&#xA;}&#xA;

    &#xA;

    I have been at it for about five days and will appreciate any help I can get.

    &#xA;