
Recherche avancée
Autres articles (107)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (13260)
-
dxva : verbose-log decoder GUID list
22 juin 2017, par wm4 -
FFMPEG Concatenate X video at time from a list.txt
25 octobre 2019, par Lorenzo CastagnoneI’m trying to concatenate 3 videos at time from a list.txt, i can concatenate all the videos in the list in a single long video, but i wish to concatenate x videos from the list in a single output, then concatenate the next x videos from the same list in another single output and so on.
The script i’m developing it’s written in python, it fetches some videos from a server and save them locally in a folder and write my concat.txt, then ffmpeg read the concat.txt and create a single output.mp4
#this merge all video in concat file in a single output
os.system("ffmpeg -f concat -i downloaded/concat.txt -safe 1 -r 30 -fflags +genpts -c:a copy downloaded/output.mp4")I’m looking for a way to make ffmpeg read the first x row from the concat.txt , concatenate them in output1.mp4, then read the next x row from cancat.txt , concatenate them in output2.mp4 and so on.
Thank you for your time to help me, i really appreciate that !
---EDIT
Thank to @Tejas for the reply, i solved how to split the concat.txt file, now i’m trying to apply a filter to every clipimport os
x = 3 #Number of files you want to concatenate
#Making directories so that the working directory stays organized
txtFileName = "./splits/output{}.txt"
outputFile = "./clip/output{}.mp4"
postFile = "./media/post{}.mp4"
os.makedirs(os.path.dirname(txtFileName), exist_ok=True)
os.makedirs(os.path.dirname(outputFile), exist_ok=True)
os.makedirs(os.path.dirname(postFile), exist_ok=True)
#While splitting the files store their path to a list
listofSplitFiles = []
with open('./downloaded/concat.txt','r') as concat:
lines = concat.readlines()
for i in range(0,lines.__len__()//x):
with open(txtFileName.format(i+1),'w') as split:
listofSplitFiles.append(txtFileName.format(i+1))
for j in range(0,x):
if( (i*x)+j < lines.__len__() ):
split.write(lines[(i*x)+j])
#Call ffmpeg on the list
for i in listofSplitFiles:
outputBaseName = os.path.basename(i)
outputFileName = os.path.splitext(outputBaseName)[0]
postFileName = os.path.splitext(outputBaseName)[0]
os.system("ffmpeg -f concat -i {} -safe 1 -r 30 -fflags +genpts -c:a copy ./clip/{}.mp4".format(i,outputFileName))
os.system('''ffmpeg -loglevel error -r 30 -i sfondo/bkg.png -i ./clip/output{}.mp4 -b:v 1M -filter_complex ''' + '''"[1:v]scale=''' + "750" + ''':''' + "1080" + ''' [ovrl], [0:v][ovrl]overlay=(main_w-overlay_w)/2:((main_h-overlay_h)/2)"''' + ''' ./media/{}.mp4''' .format(outputFileName,postFileName))Unfortunately i have this error
./clip/{}.mp4: No such file or directory
-
Concat video from list.txt using ffmpeg library с++
24 novembre 2019, par OrestI am new in ffmpeg. I use ffmpeg library in c++. I try concat video from list.txt. I find this https://github.com/FFmpeg/FFmpeg/tree/master/libavformat but I don’t know how to use it