
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (53)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (10279)
-
Can't write video using moviepy. output format error
23 décembre 2022, par Ronnie KisorI'm trying to concatenate videos in each folder so that I get one video in each folder instead of multiple short ones. This is an external USB drive if that matters.


My code seems to iterate over the files as expected, but I keep getting this error after the audio is written, during the "writing video" action, I believe :
b"[NULL @ 000002a8340ae640] Unable to find a suitable output format for 'D:\\taxes\\folder\\test'\r\nD:\\taxes\\folder\\test: Invalid argument\r\n"


I haven't found a way to force an output format yet. Any thoughts ?


import os
from moviepy.editor import *

startingDir = r'D:\taxes'

avoid = ['0incomplete', 'old', 'that', 'this']

for thing in os.listdir(startingDir):
 clips = []
 name = ''
 
 if thing in avoid:
 print(' avoided {}'.format(thing))
 continue

 folder = os.path.join(startingDir, thing)

 if os.path.isdir(folder):
 for clip in os.listdir(folder):
 print (clip)
 clips.append(VideoFileClip(os.path.join(folder, clip)))
 print('\n')

 try:
 final = concatenate_videoclips(clips)
 final.write_videofile(os.path.join(folder, 'test'), audio=True, codec='libx264', threads=10)
 final.close() 
 except Exception as e:
 print (e)
 print('\n Continuing... \n\n')
 continue



-
How to trim and merge using Fluent FFMpeg ?
29 juillet 2016, par John D.Here’s what I want to do with fluent-ffmpeg :
I have 3 input files. An intro, main, and outro video. I wish to merge the three, while trimming the main video. Here is my code :
var ffmpegCommand = ffmpeg();
ffmpegCommand.addInput(introVideo);
ffmpegCommand.addInput(mainVideo).seekInput(20).duration(3);
ffmpegCommand.addInput(outroVideo);
ffmpegCommand.on('error', function(err, stdout, stderr){
console.log("FAILED!\n\t"+err+"\n\t"+stdout+"\n\t"+stderr);
});
ffmpegCommand.on('end', function(){
console.log('COMPLETE!');
});
ffmpegCommand.on('start', function(commandLine) {
console.log('Spawned Ffmpeg with command: ' + commandLine);
});
ffmpegCommand.mergeToFile('final.mp4', './vid_files/tmp');The program executes fine, but when I ffplay final.mp4, the result is that introVideo plays then the video appears to freeze. According to the fluent-ffmpeg documentation, it states "Each of these [Input options] methods apply on the last input added". So I can’t figure out why that syntax doesn’t seem to work...
How can I trim the main video to send to mergeToFile ?
Note that this works fine if I don’t have .seekinput(20).duration(3) on the second addInput.
Oh, here’s the outputted commandLine value :
ffmpeg -i ./vid_files/intro.mp4 -ss 20 -i ./vid_files/main.mp4 -i ./vid_files/outro.mp4 -y -filter_complex concat=n=3:v=1:a=1 -t 3 final.mp4
-
Change pitch of audio file without altering the duration of audio file (FFMPEG)
13 janvier 2016, par VickySI am in a bit of trouble.
I am working on FFMPEG for android and now my task is to modify the pitch of the audio file without altering the duration of the audio file.I used these commands but they alter the duration :
ffmpeg -i /sdcard/emoj/final.wav -filter:a atempo=1.5 -vn /sdcard/emoj/final1.wav
ffmpeg -i /sdcard/emoj/final.wav -filter:a asetrate=r=35K -vn /sdcard/emoj/final1.wavI know I can use Sonic NDK for this purpose. But I want to know if its possible with the help of FFMPEG.
In documentation I have seend something called "Rubberband" I think that can help. But I dont know how to use that.I just want the command to do that.
I would appreciate any help in this regard.