
Recherche avancée
Médias (3)
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (73)
-
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 -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
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" ;
Sur d’autres sites (7543)
-
Révision 17377 : chargement js du date picker et time picker, renommage sans majuscule.
12 mars 2011, par cedric -Mais on va y revenir
-
ffmpg - Overlay merged video from a bunch of small videos on another video
31 août 2022, par Krishna ChebroluI have a situation where 3-4 small 5secs video clips to be merged and placed at a specific point in time of another video within a fixed frame of 800x600.


For example, main video is of 40 secs of 1280x720 resolution and have 4 small clips of 5 secs each to be placed in a frame of 800x600 from 10 to 30 secs one after the other (or) merge them before placing within the frame.


I tried multiple filters and failing to get the required output.


ffmpeg -y -i bg.mp4 -i c0.mp4 -i f.mp4 -filter_complex "split [main][tmp]; [tmp][1:v][1:a][2:v][2:a]concat=n=2:v=1:a=1[tmp1]; [main][tmp1] overlay=enable='between(t,10,24)':x=50:y=50[v]; [v]drawtext=enable='between(t,26,29)':font='DejaVu Serif':text='Kris Cheb':x=(w-tw)/2:y=((h-text_h)/4): fontsize=80: fontcolor=white, drawtext=enable='between(t,27,29)':text='Awesome Work..':x=(w-tw)/2:y=(((h-text_h)/3)+20): fontsize=38: fontcolor=white, drawtext=enable='between(t,27,29)':text='Congratulations!!':x=(w-tw)/2:y=(((h-text_h)/2)+10): fontsize=38: fontcolor=white"[v] -map [v] out.mp4



Of course, in the above command, I'm yet to add
scale
withforce_original_aspect_ratio=decrease
filter and associated attributes.

Could someone please suggest how to achieve this with ffmpeg ?


Thanks


[EDIT-1] :


To overcome this issue, as an alterative, I had split
bg.mp4
into multiple segmentsintro.mp4
,outro.mp4
&frame.png
and concatenated them with the following command, which is working fine. Of course, there is slight deviation from original requirement of placingc0.mp4
&f.mp4
as overlay in the middle segment and nowframe.png
is being used as overlay on these middle segment clips.

ffmpeg -y -i intro.mp4 -i c0.mp4 -i f.mp4 -i outro.mp4 -i frame.png 
-filter_complex "[0:v][0:a][1:v][1:a][2:v][2:a][3:v][3:a]concat=n=4:v=1:a=1[vv][a];
[vv][4:v]overlay=enable='between(t,4,16)':x=0:y=0[v];
[v]drawtext=text='NAME': font='Serif':fontsize=70: fontcolor=white: x=((w-tw)/2):y=(((h-text_h)/4)+10):enable='between(t,16,20)', 
drawtext=text='TEXT2':font='Serif':fontsize=40: fontcolor=black:x=((w-tw)/2): y= ((h/2)+30):enable='between(t,16,20)',
drawtext=text='<text3>':font='Serif':fontsize=40: fontcolor=black:x=((w- 
tw)/2):y=((h/2)+70):enable='between(t,16,20)'[v]" -vsync 2 -map 
[v] -map [a] out.mp4
</text3>


But, need help in replacing the audio of middle segment clips
c0.mp4
&f.mp4
with the audio frombgm.mp3
which will be given as a new input.

Appreciate all the help..


-
Repeating a small mp3 overlay after each 10 seconds on a MP3 using SOX
3 mai 2014, par Gopal RathoreIs there any way to repeat a overlay after each 10 seconds with mp3 file, using sox without trimming the original file. My code adds using trimming original file then adds overlay. Any help will be appreciated.
if(isset($_POST['submit']) && $_POST['submit']!="")
{
require_once 'class.mp3.php';
$mp3 = new mp3;
print_r($_FILES);
move_uploaded_file($_FILES["file"]["tmp_name"],$_FILES["file"]["name"]);
/*Split MP3*/
$mp3->cut_mp3($_FILES["file"]["name"], 'check1.mp3', 0, 700, 'frame', true);
$mp3->cut_mp3($_FILES["file"]["name"], 'check2.mp3', 700, -1, 'frame', true);
/*Part 1*/
$path1= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check1.mp3";
/*Part 2*/
$path2= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check2.mp3";
/*Overlay Sound*/
$overlay= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/overlay.mp3";
/*Mix overlay with Part1 Sound*/
$new_path1= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check4.mp3";
/*Mix overlay with Part2 Sound*/
$new_path2= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check5.mp3";
/* Merge Both*/
$new_path3= $_SERVER['DOCUMENT_ROOT']."/ffmpeg/check6.mp3";
/*Mix overlay with Part1 Sound*/
echo exec('/usr/bin/sox --combine mix '.$path1. ' ' .$overlay . ' '.$new_path1 );
/*Mix overlay with Part2 Sound*/
echo exec('/usr/bin/sox --combine mix '.$path2. ' ' .$overlay . ' '.$new_path2 );
/* Merge Both*/
echo exec('/usr/bin/sox --combine sequence '.$new_path1. ' ' .$new_path2 . ' '.$new_path3 );
}