
Recherche avancée
Médias (3)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
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 (108)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 ;
Sur d’autres sites (17609)
-
How do I properly use Flutter FFmpegKit to convert video file formats to H.264 ?
21 août 2024, par SpencerI've been using GPT and publications from Medium to help with my how I'm supposed to use the FFmpeg kit for Flutter but they have been no help. Perhaps I need clarification on what the tool is supposed to do because links like these below have not been of any help and are very outdated :


https://dev.to/usp/flutter-live-streaming-a-complete-guide-2634




https://github.com/arthenica/ffmpeg-kit/blob/main/flutter/flutter/README.md


This is the code i've been trying to run to convert a video file before I upload to Firestore Database.


Future convertToH264(Uint8List bytes) async {
 try {
 final filename = const Uuid().v4();
 final tempDir = await getTemporaryDirectory();
 final tempVideoFile = File('${tempDir.path}/$filename.mp4');
 await tempVideoFile.writeAsBytes(bytes);
 final outputPath = '${tempDir.path}/$filename-aac.mp4';

 await FFmpegKit.execute(
 '-i ${tempVideoFile.path} -c:v libx264 -c:a aac $outputPath',
 );
 return await File(outputPath).readAsBytes();
 } catch (e) {
 rethrow;
 }
} 



-
How to add transition effects like fade in, fade out, slide in, etc, to a video [on hold]
31 mai 2018, par Janhavi SavlaI am trying to add crossfade effect to a series of images ina folder and then create a video but I am getting an error :’tuple’ object has no attribute ’crossfadein’.
How should I resolve it ?
Here’s the code :from moviepy.editor import *
import os
delay =1
H = 720
W = 1280
output = "out.mp4"
path = "/Users/test/Desktop/Image_test_data/testdata2"
dirs = os.listdir( path )
ext = '.jpg'
clips=[]
images = [img for img in os.listdir(path) if img.endswith(ext)]
for image in images:
img=ImageClip(path+'/'+image).set_duration(2).resize(height=H,width=W)
clips.append(img)
final = concatenate([clip.crossfadein(delay) for clip in enumerate(clips)],
padding=-delay, method="compose")
final.write_videofile(output,fps=24, audio_codec="aac") -
How to Concatenate bunch of videos using python ?
5 juillet 2023, par Saikat ChakrabortySo, I have over 5000 small clips that I need to combine. To apply various custom filter over their names, I want to do it with python. I have the following code :


import os
from moviepy.editor import *
os.chdir('D:/videos')
list1, list2 = os.listdir(), []

for i in list1: #filtering
 if i[-6:] != '-l.mp4' and i[-7:] != 'ALT.mp4':
 list2.append(i)
print('Getting Video Info:')

final = VideoFileClip(list2[0])


for i in range(1,len(list2)):
 final = concatenate_videoclips([final, VideoFileClip(list2[i])])
 print('\r' + str(i+1) + '/' + str(len(list2)), end='')


os.chdir('D:')
final.write_videofile('Merged.mp4')



But the program is creating lots of processes and just after reading 150 clips it's crashing.


It keeps increasing !
Is there any easier way/alternative to do this ? Thanks !


Edit :

I've tried using ffmpeg too, but concatenation removes the audio since concat protocol doesn't support .mp4 extension. In that case. Even if I convert all the files to .ts extension and try to concatenate them,WindowsError: [Error 206] The filename or extension is too long
pops up because too many files are separated by |. I did the following changes after converting all the files to .ts format :

import os
import ffmpeg
os.chdir('D:/videos')
list1 = os.listdir()
list2 = [i for i in list1 if i[-3:] == '.ts']
list2[0] = ffmpeg.input(list2[0])
for i in range(1, len(list2)):
 list2[i] = ffmpeg.concat(list2[i-1], ffmpeg.input(list2[i]))
 print('\r' + str(i) + '/' + str(len(list2)), end='')
ffmpeg.output(list2[-1], 'D:\Merged.mp4')
ffmpeg.run(list2[-1])



But now I'm getting
RecursionError: maximum recursion depth exceeded while calling a Python object
.