
Recherche avancée
Autres articles (38)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Contribute to documentation
13 avril 2011Documentation is vital to the development of improved technical capabilities.
MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
To contribute, register to the project users’ mailing (...)
Sur d’autres sites (4118)
-
where to put opencv2 ffmpeg.dll in path in conda environment ?
28 juillet 2020, par smaillisIm trying to load a saved mp4 video with opencv with th following code found somewhere on SO, and cap.isOpened() returns false. I looked around and some says its to do with the ffmpeg.dll not on PATH, but I found it in my conda env directory
env\Lib\site-packages\cv2\opencv_videoio_ffmpeg430_64.dll


How do I fix this ?


Also VideoCapture(0) works fine (camera stream works).


import cv2
import numpy as np

cap = cv2.VideoCapture('../sandbox/vid.mp4') 
if (cap.isOpened()== False):
 print("Error opening video stream or file")

while(cap.isOpened()):
 ret, frame = cap.read()
 if ret == True:
 cv2.imshow('Frame',frame)
 if cv2.waitKey(25) & 0xFF == ord('q'):
 break 

cap.release()
cv2.destroyAllWindows()



Platform Windows 10


>>>cv.__version__
'4.3.0'



-
Issue with adding FFMPEG to macOS path to convert mp3 to WAV in Python [closed]
30 mai 2024, par AndrewLittle1I am trying to use a simple program to convert a .MP3 file to a .WAV file in python :


from os import path
from pydub import AudioSegment

src = "test1.mp3"
dst = "test1.wav"

# convert wav to mp3 
sound = AudioSegment.from_mp3(src)
sound.export(dst, format="wav")



When I try to run the program in an IDE, I am getting a FileNotFoundError this is what the StackTrace looks like :


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

...

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



I know this error means that the IDE is not able to locate my FFMPEG (because it is not in the correct path). I downloaded FFMPEG, FFPROBE is located in the FFMPEG library using :


pip install FFMPEG



However, even when I try to run the program from the command line using


python soundtest.py



I am getting another FileNotFoundError :


File "soundtest.py", line 13, in <module>
 with open('simple.html') as html_file:
FileNotFoundError: [Errno 2] No such file or directory: 'simple.html'

</module>


I am not sure why this is happening because despite FFMPEG not being in the correct path to be accessed by the IDE I cannot run it from the command line either.


Ideally, I would like to add the FFMPEG library to the system path so that it can be accessed, but I can't even get it to run from the command line. Any ideas what's going on here ?


The answer provided here also helps give more insight, but I am still running into my same error, Ffmpeg on idle python Mac


-
fate : Use the correct, local path to samples for opus reference files
12 juillet 2014, par Martin Storsjö