
Recherche avancée
Autres articles (49)
-
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 (...)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Other interesting software
13 avril 2011, parWe don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
We don’t know them, we didn’t try them, but you can take a peek.
Videopress
Website : http://videopress.com/
License : GNU/GPL v2
Source code : (...)
Sur d’autres sites (10079)
-
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.