
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 (68)
-
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 (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (8540)
-
Pydub installation and ffmpeg
6 août 2021, par Lone LunaticI was trying to get raw sound data out of a
.mp3
file. Therefor I used the pydub module as stated here. I created avenv
for this project and installed all necessary modules. But for some reason, pydub decided to give me anFileNotFoundError
:


(venv) Python-IT:LightsDev pythonit$ which python
/Users/pythonit/Documents/Programmieren/Python/LightsDev/venv/bin/python
(venv) Python-IT:LightsDev pythonit$ which pip3
/Users/pythonit/Documents/Programmieren/Python/LightsDev/venv/bin/pip3
(venv) Python-IT:LightsDev pythonit$ pip3 list 
------------- -------
ffmpeg 1.4
pip 18.1
pydub 0.23.0
pyee 5.0.0
python-ffmpeg 1.0.5
setuptools 39.0.1




My exact code looks like that :



from pydub import AudioSegment
sound = AudioSegment.from_mp3('test.mp3')
raw_data = sound._data
print(raw_data)




and I get this error :



FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe': 'ffprobe'




alongside this runtime warning :



RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)




I don't know if it is me, but some similar questions stating I should install ffmpeg or python-ffmpeg won't work. I can even import the ffmpeg module but nothing happens. I can work with ffmpeg and load files but using it with pydub won't work.



EDIT : Today I changed to my windows machine and looked at the error in-depth. However I didn't manage to get it working, even with the solution provided in the comments (thank you though). I installed the ffmpeg binary as stated and i was able to get
ffmpeg
running in the shell, however not withpydub
... I have no clue what is going on. I guess my mistake is very obvious and I am just not able to get it. Even not subprocess was able to solve this problem despite the fact, that I am able to use ffmpeg in shell. I even was able to convert the file using ffmpeg in shell...


ffmpeg -i test.mp3 test.wav 
 > Output #0, wav, to 'test.wav':




I think I am close to solve the problem myself anyways, but thank you anyways.


-
MoviePy Is Able To Print Video Duration But When Performing Edit It Cannot Find Duration ? | Python
10 avril 2021, par PythonProgrammerI have been troubled by this issue when I am making a video downloader.
The Code Below :


videoclip = VideoFileClip(fr'{directory}\audio\{yt.title}.mp4')

 duration = videoclip.duration

 print(duration)

 audioclip = videoclip.audio
 audioclip.write_audiofile(fr"{directory}\{yt.title}.mp3")
 audioclip.close()
 videoclip.close()



Output :


145
MoviePy error: failed to read the duration of file C:\Users\achut\Desktop\Movies\audio\Winning With Half A Heart | Minecraft Skywars.mp4.
Here are the file infos returned by ffmpeg:

ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 9.2.1 (GCC) 20200122
 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
C:\Users\achut\Desktop\Movies\audio\Winning With Half A Heart | Minecraft Skywars.mp4: Invalid argument



For some odd reason it is able to print the video duration but apparently cannot find it when I am trying to save the audio from the video as a separate file.


Thanks for the help ! I am using latest version of moviepy and its dependencies, I just installed it today.


-
Official Debian Package for Piwik now available
We are excited to announce the release of Piwik package for Debian based linux distributions !
There are several ways to use Piwik :
Download and upload to your server
or use 1-click Piwik installers
or use Microsoft web app gallery
or buy Piwik Cloud
or as of today, you may get Piwik using our Debian package
What are the benefits of using Debian package over direct download ?
For some system administrators, using Debian package is an easier alternative than directly downloading the code. It allows sysadmins to deploy Piwik within seconds using “apt-get install piwik -V”.
How do I install Piwik using official debian package ?
The package supports Apache and Nginx web servers. Read the documentation at debian.piwik.org.
Do I have to use the Debian Package on my debian system ?
No, you may still want to use Piwik using the direct download approach. You can keep Piwik upgraded quite easily using the popular 1-click automatic update.
How do I report a bug or feedback ?
Create a ticket on the Github project Issues page.
Will the debian repository be maintained in the future ?
Yes, Aurélien Requiem (github) along with the Piwik team are committed to maintain the Debian Piwik repository in the future.
Thank you to Aurélien for his great work on preparing, testing, and maintaining the Debian repository for Piwik.
References
- Source code for the Debian package is on Github : piwik/package-debian
- How do I enable automatic updates to latest development release ?
- How do I install Piwik on Debian type servers ?