
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (17)
-
Les formats acceptés
28 janvier 2010, parLes 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, parUnlike 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, parPour 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 AncientToasterI'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



-


-


-












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


-
-
ffmpeg adds 200 seconds of silence
1er octobre 2022, par AncientToasterI'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



-


-


-












-
-
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 ClockmanI 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" {
#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
}

int main()
{
 AVFormatContext* format = avformat_alloc_context();
 if (avformat_open_input(&format, R"(\test.m4a)", NULL, NULL) != 0) {
 fprintf(stderr, "Could not open file '%s'\n", R"(\test.m4a)");
 return -1;
 }
 if (avformat_find_stream_info(format, NULL) < 0) {
 fprintf(stderr, "Could not retrieve stream info from file '%s'\n", R"(test.m4a)");
 return -1;
 }
 return 0;
}



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