
Recherche avancée
Médias (3)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (109)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (11869)
-
ffmpeg with zoom, combine video & audio
30 août 2021, par P JewelleryI have 4 input,


- 

- Main video (No audio in the video)
- logo.png (always stay on top right corner)
- image.jpg (Locate at the end of video, Have different ratio with main video)
- audio.mp3 (The only audio input)










The below code helped me to edit the main video.


for %%a in ("*.mp4") do c:\ffmpeg.exe -i "%%a" 
-filter_complex " 
[0:v]trim=0.13:2.5, setpts=PTS-STARTPTS [v0]; 
[0:v]trim=0.13:2.5, reverse,setpts=PTS-STARTPTS[v1]; 
[0:v]trim=28.5:31, reverse,setpts=PTS-STARTPTS [v2]; 
[0:v]trim=28.5:31,setpts=PTS-STARTPTS [v3]; 
[0:v]tpad=stop_mode=clone:stop_duration=2, trim=0.13:31,setpts=0.5*PTS-STARTPTS [v4];
[0:v]trim=30.95:31,tpad=stop_mode=clone:stop_duration=5,setpts=PTS-STARTPTS [v5]; 
[v0][v1][v2][v3][v4][v5]concat=n=6:v=1:a=0[out]" -map "[out]" "%%~dpnaf.mp4"



However, I want to


- 

-
add a logo at top right of the video throughout the whole video.


-
add an image.jpg at the end of my edited main video.


-
add the audio.mp3 throughout the whole final output video. (duration depends on the video.)


-
apply a continuous zoom in for [v0]&[v1] (Since v1 is reverse of v0, after the zooming, ending image of v1 is bigger than starting image of v0, so v0,v1 looks like a smooth zoom in video)












"scale=2160x2160,zoompan=z='min(max(zoom,pzoom)+0.01,5.0)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=125:s=2160x2160",



and a continuous zoom out for [v3] & [v4]


All the about to be able to run through a single bat file.


-
Error opening ffmpeg subprocess in Python
16 mai 2015, par HyperionWhat I want to do is opening a ffmpeg process in Python. My code look like this :
import subprocess
import os
def Main():
ffmpeg = "C:\ffmpeg\bin\ffmpeg.exe"
args = " -i C:\video.mp4 -r 1 -f image2 C:\FRAMES\frame-%03d.jpg"
subprocess.Popen(ffmpeg + args).wait()
Main()But even in this simple form I got always the same error :
Traceback (most recent call last):
File "C:/Users/Francesco/Desktop/test.py", line 9, in <module>
Main()
File "C:/Users/Francesco/Desktop/test.py", line 7, in Main
subprocess.Popen(ffmpeg + args).wait()
File "C:\Users\Francesco\Desktop\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\subprocess.py", line 710, in __init__
errread, errwrite)
File "C:\Users\Francesco\Desktop\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] Impossibile trovare il file specificato
>>>
</module>What’s wrong ?
-
libavformat / ffmpeg c program "not suitable input format"
15 novembre 2013, par JonMorehouseHello I'm attempting to encode videos using the C ffmpeg libraries. For some reason, when I attempt to create a format context I get an error with :
[NULL @ 0x7ff574006600] Requested output format 'mp4' is not a suitable output format
I know that my ffmpeg is compiled with the x264 flags, as a simple
ffmpeg -i test.mov test.mp4
works fine. I'm also linking with all of the generated pch files and everything else from the libav* libraries is working fine. Here's a full working example with the error's I'm recieving :
#include <libavformat></libavformat>avformat.h>
#include <libavcodec></libavcodec>avcodec.h>
#include <libavutil></libavutil>avutil.h>
#include <libswscale></libswscale>swscale.h>
#include <libavutil></libavutil>opt.h>
#include <libswscale></libswscale>swscale.h>
#include <libavutil></libavutil>imgutils.h>
#include
int main() {
AVFormatContext * output = NULL;
// now lets initialize the actual format element
if (avformat_alloc_output_context2(&output, NULL, "mp4", "test.mp4") < 0) {
printf("%s", "INVALID");
}
return 0;
}