
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (62)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...) -
Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs
12 avril 2011, parLa manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.
Sur d’autres sites (8650)
-
TypeError : 'function' object is not subscriptable Python with ffmpeg
25 novembre 2019, par S1mpleclips = []
def clipFinder(CurrentDir, fileType):
clips.clear()
for r,d,f in os.walk(CurrentDir):
for file in f:
if fileType in file:
clips.append(r+file)
random.shuffle(clips)
def removeVods(r):
for f in clips:
if 'vod' in clips:
os.remove(r+f)
def clipString():
string = 'intermediate'
clipList = []
clipNum = 1
for f in clips:
clipList.append(string+str(clipNum)+'.ts'+'|')
clipNum+=1
string1 = ''.join(clipList)
string2 = string1[0:len(string1)-1]
return string2
def concatFiles():
clipFinder('***', '.mp4')
removeVods('***')
i = 0
intermediates = []
for f in clips:
subprocess.call(['***', '-i', clips[i], '-c', 'copy', '-bsf:v', 'h264_mp4toannexb', '-f', 'mpegts', 'intermediate'+ str(i+1) +'.ts'])
i += 1
clipsLength = len(clips)
subprocess.call['***', '-i', '"concat:' + clipString() + '"', '-c', 'copy', '-bsf:a
aac_adtstoasc', 'output.mp4']I am trying to make a clip concatenator, but the last subprocess call won’t run and gives me the error shown in the question.
Problematic code :
subprocess.call(['***', '-i', '"concat:' + clipString() + '"', '-c', 'copy', '-bsf:a aac_adtstoasc', 'output.mp4'])
all places with * were paths such as :
/davidscomputer/bin/ffmpeg/ -
Merge video clips together with FFMPEG's concat, where some clips have no audio
23 février 2023, par Patrick VelliaI have a grouping of files in a videos.txt file :


file 'title.mp4'
file 'welcome.mp4'
file 'introductions_slide.mp4'
file 'introductions.mp4'
file 'presentation_part_1_slide.mp4'
file 'presentation_part_1.mp4'
file 'presentation_part_2_slide.mp4'
file 'presentation_part_2a.mp4'
file 'presentation_part_2b.mp4'
file 'questions_and_answers_slide.mp4'
file 'questions_and_answers.mp4'



Some of these files (title.mp4, introductions_slide.mp4, presentation_part_1_slide.mp4, presentation_part_2_slide.mp4 and questions_and_answers_slide.mp4) are generated from PowerPoint's export to MP4 files and do not contain an audio stream.


I tried to follow this thread to add an audio stream to title.mp4, but when I then run the concat command, it's full of errors in the input stream. The resulting file is a silent one with no audio stream.


I know it's possible to merge a mixed silent-noise audio video files together because I was able ot achieve it in QuickTime. However, I am trying to figure out how to do it using ffmpeg.


Here's my current concat command :


ffmpeg -f concat -i videos.txt -c:v copy -c:a copy output.mp4



How can I run concat so that it will include the audio where audio is present, but maintain silence where it isn't ?


-
FFmpeg video from image plus audio length issue
1er juin, par blackbraynI'm having issues regarding the output video length when using the following code which seems to work for everybody else.


On a input mp3 of 04:56 I get a 05:09, the last part is only the image, no sound, for a longer mp3 input file I get more silent video at the end.


I'm using the "-shortest" option just before the output file as an argument , as suggested in other threads around stackoverflow/superuser.


ffmpeg -loop 1 -i image.jpg -i audio.mp3 -c:v libx264 -tune stillimage -c:a aac -strict experimental -b:a 192k -shortest out.mp4



I already changed the input file type - wav , and the image - png, jpg, same silent "overhead" at the end of the video.