
Recherche avancée
Autres articles (64)
-
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (9110)
-
How can I get the volume of sound of a video in Python using moviepy ?
15 juillet 2022, par IordanouGiannisI want to get the volume of sound of a video so I use the following :



import numpy as np # for numerical operations
from moviepy.editor import VideoFileClip, concatenate

clip = VideoFileClip("soccer_game.mp4")
cut = lambda i: clip.audio.subclip(i,i+1).to_soundarray(fps=22000)
volume = lambda array: np.sqrt(((1.0*array)**2).mean())
volumes = [volume(cut(i)) for i in range(0,int(clip.audio.duration-2))] 




But I get these errors :



Exception AttributeError: "VideoFileClip instance has no attribute 'reader'" in <bound method="method" of="of" instance="instance" at="at" 0x084c3198="0x084c3198">> ignored

WindowsError: [Error 5] Access is denied
</bound>



I am using IPython notebook and Python 2.7. 
I assume something doesn't have the appropriate permissions. I have changed run this program as an administrator for ffmpeg.exe, ffplay.exe, ffprobe.exe.


-
ffmpeg low volume - original just fine
22 juillet 2012, par thevoipmanFor some reason my mp4's I reencode has such low volume, not sure what I'm doing wrong. Please help me if you could :
ffmpeg -i "\"$FILENAME\"" -sameq -vf "\""movie=/files/logo.png [watermark] ; [in][watermark] overlay=main_w-overlay_w-10:main_h-overlay_h-10[out]\""" -ac 2 -vcodec libx264 -threads 0 -acodec libfaac -async 2 "\""$OUTPUT_DIRECTORY/abc$OUTPUTFILENAME"
I hadded a few syntax to keep the audio in sync etc.
-
ffmpeg concat videos with own audio and add a soundtrack 50% volume
17 novembre 2020, par fedep11I have a list of file in a txt, I need to concat (files are same codec and size and have sound), than i need to add a soundtrack with 50% volume. Thanks


This is the command I use to concat but this substitute the audio with the new soundtrack, instead I need to mix with the original sound in the file, and I need to control the volume of the soundtrack.
ffmpeg -f concat -safe 0 -i "concat:file.txt" -i "soundtrack.mp3" -c copy "output.mp4"