
Recherche avancée
Autres articles (112)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
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 (13557)
-
Add custom metadata tag to video file without altering anything else
9 juin 2020, par salgarjiI'm modifying DASH-formatted segments, and my aim is to add extra information to the video segment using metadata tags.



I'm using ffmpeg to record video from my webcam and store segments named like : init-video0-0.mp4 for the initial and video-0-0-N.mp4 for the following, where N is the segment number (beginning at N=1).



For ffmpeg to 'understand' video files, they must have a playable video file format, for that purpose I concat initial segment with Nth segment :



cat init-video-0-mp4 video0-0-N.mp4 > video0-0-N_mod.mp4




Once I have a proper/correct file, I can use ffmpeg to add tags.
I've tried the following command :



ffmpeg -y -i /path/to/file.mp4 -movflags use_metadata_tags -metadata customtag='whatEverYouWantToAdd' /path/to/new/file.mp4




My problem is that the ffmpeg modifies the file changing other information regarding start, duration, progressive and fragmented flags...



I've used this tool : https://download.tsi.telecom-paristech.fr/gpac/mp4box.js/filereader.html, to analyze my files in a more intuitive way :






Do you have any clue on how to add tags without altering DASH segments in any other way ? Even if it requires using another tool different from ffmpeg.



Thank you in advance !


-
Deprecation error when using imageio.ffmpeg.download()
29 novembre 2022, par SHASHIKUMAR B JI'm trying to merge the prerecorded videos using python Opencv.
But i'm getting the error while importing.



"Traceback (most recent call last):
 File "video.py", line 4, in <module>
 from moviepy. editor import VideoFileClip,concatenate_videoclips 
 File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/moviepy/editor.py", line 26, in <module>
 imageio.plugins.ffmpeg.download()
 File "/home/pi/.virtualenvs/cv/lib/python3.5/site-packages/imageio/plugins/ffmpeg.py", line 40, in download
 "imageio.ffmpeg.download() has been deprecated. "
RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'"
</module></module>



would anyone please help to get out of this problem



Here is the code :



import cv2 
import os 
import time 
from moviepy.editor import VideoFileClip,concatenate_videoclips 
def vidcapt():
 a = time.strftime("%H,%M,%S")
 cap = cv2.VideoCapture(0)
 fourcc = cv2.VideoWriter_fourcc(*'XVID')
 out = cv2.VideoWriter(a+'.avi', fourcc, 24.0, (640,480))
 t1 = time.time()
 while(cap.isOpened()):
 ret, frame = cap.read() 
 if ret == True:
 out.write(frame)
 cv2.imshow('frame',frame)
 t2 = time.time()
 time_diff = t2-t1
 if time_diff >= 5:
 break
 else:
 break
 cap.release()
 out.release()
 cv2.destroyAllWindows()

while True:
 vidcapt()


clip1 = VideoFileClip("11,05,42.avi")
clip2 = VideoFileClip("11,05,47.avi").subclip(50,60)
final_clip = concatenate_videoclips([clip1,clip2])
final_clip.write_videofile("merged.avi")



-
Added nosniff header to prevent IE download dialogs.
28 juillet 2011, par Sebastian Tschanm example/upload.php Added nosniff header to prevent IE download dialogs. Thanks to Don Bowden for the hint.