
Recherche avancée
Médias (1)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
Autres articles (35)
-
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 (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
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 (5501)
-
Merging multiple mjr files into webm file based on timestamp of creation with FFMPEG
2 novembre 2020, par Sankalpa SarkarI am trying to combine multiple mjr files into a single webm file with blank gaps in the middle, based on certain timestamps. As an illustration, suppose I have three clips A (running from 3-3.10), B (running from 3.15-3.30) and C (3.35-3.50).


To combine these, I would like to have a singular merged webm file with A running from 3 to 3.10, followed by a blank screen from 3.10-3.15, then B from 3.15 to 3.30, followed by a blank screen from 3.30 to 3.35 and then C from 3.35 to 3.50. Thus the entire video must be from 3 to 3:50 with the specifications.


So far, I have to obtain the filename and date/time from the directory as and when they are created to determine the specific timestamps. For the same, I am using this code snippet :


FANAME=\/bin/ls -1 *video.mjr | grep "$AGENTID" | sort -t- -k5 | head -1\
AGENTSTAT=`stat -c %y $FANAME`
ATIME=`date +%s -d"$AGENTSTAT"`



Running a loop through all the files, how do I obtain this functionality ?


-
FFMpeg joining audio files together, and the last file as the background [duplicate]
11 octobre 2020, par MezirI would like all audio files to be joined together and I always want the last audio file to be background.
I found an SSH command ready to do this but it only suits 3 audio files.
I wish it would work every time no matter how many audio files I put in.


ffmpeg -i 1.mp3 -i 2.mp3 -i background.mp3 -filter_complex "[0:0][1:0]concat=n=2:v=0:a=1,volume=1dB,aformat=fltp,pan=stereo|c0=c0|c1=c1[a0];[2]volume=0.5dB,aformat=fltp,pan=stereo|c0=c0|c1=c1[a1];[a0][a1]amerge,aformat=fltp[a]" -map "[a]" -strict -2 -y final.mp3



It would be best if it could be done using the php script and some library.


I found a solution to my problem here, but I would also like to make the background audio play to the end and not get cut off.


https://stackoverflow.com/a/57533505/10013762


-
Batch Script + FFmpeg — Use FOR loop to pipe AND concat all files found except last file
11 octobre 2020, par slyfox1186Im trying to convert all '.mp4' files in a folder into '.ts' files so I can use FFmpeg.exe to combine them all into one long '.mp4' video.


I have to use the
concat
command to combine the .ts files when using ffmpeg.

Below is a working line of code to do this the long way.... I want to use a for loop in case I have way more than just 3 files to combine.


ffmpeg.exe -hide_banner -y -i concat:"a.ts|b.ts|c.ts" -c copy -bsf:a aac_adtstoasc "COMBINED.mp4"



I can make this loop work by using the below
for command
but the last file found can not have a pipe after it|
likec.ts"
above didn't.

FOR /F "USEBACKQ TOKENS=* DELIMS= ,|" %%I IN ('%%~dpnG.ts') DO (
 SET FNAME=%%~dpnI
 ECHO.
 ECHO !FNAME!
 PAUSE>NUL
 EXIT
)



Does anyone know if it's even possible (maybe with tokens) to do this in a batch file ? If not any suggestions ? PowerShell ?


In response to Compo's question here is my working script :


@ECHO OFF
SETLOCAL
COLOR 0A
TITLE CONCAT MULTIPLE MP4 FILES

PUSHD "%~dp0"

SET FF="C:\MAB\local64\bin-video\ffmpeg.exe"

:: SET VIDEO NAME WITHOUT EXTENSION (.MP4)
SET IN01=a
SET IN02=b
SET IN03=c
SET COMBINED=FULL

:: CREATE TEMP .TS VIDEOS OF THE FILES YOU WANT TO COMBINE
%FF% -hide_banner -y -i "%IN01%.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "%IN01%.ts"
%FF% -hide_banner -y -i "%IN02%.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "%IN02%.ts"
%FF% -hide_banner -y -i "%IN03%.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "%IN03%.ts"

:: COMBINE TEMP .TS FILES INTO COMBINED .MP4
%FF% -hide_banner -y -i concat:"%IN01%.ts|%IN02%.ts|%IN03%.ts" -c copy -bsf:a aac_adtstoasc "%COMBINED%.mp4"

ECHO.
PAUSE
EXIT