
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (42)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (5818)
-
How can I resolve the FileNotFoundError when attempting to convert an MP3 to WAV using ffmpeg in Python ?
3 juin 2023, par avocado123123I have an MP3 file that I want to convert into a WAV file, but no matter how I try writing the code, it keeps raising FileNotFoundError on the MP3 file and warns me about the installation of FFmpeg.


my code :


from pydub import AudioSegment

# Specify the path to the FFmpeg executable
ffmpeg_path = r"C:\Users\תמרה\AppData\Local\ffmpegio\ffmpeg-downloader\ffmpeg\bin\ffmpeg.exe"
AudioSegment.ffmpeg = ffmpeg_path
AudioSegment.ffprobe = ffmpeg_path

# Load the MP3 file
mp3_file = r"C:\Users\תמרה\Tea Time - Ofshane.mp3"
audio = AudioSegment.from_file(mp3_file, format="mp3")

# Export as WAV
wav_file = r"C:\Users\תמרה\Tea Time - Ofshane.wav"
audio.export(wav_file, format="wav")



when running :


C:\Users\תמרה\PycharmProjects\spotify\venv\Scripts\python.exe "C:\Users\תמרה\PycharmProjects\spotify\file stuff.py" C:\ffmpeg-2023-05-29-git-45fa85a777-full_build\bin\ffmpeg.exe 
C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py:170: 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)
C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py:198: 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)
Traceback (most recent call last):
 File "C:\Users\תמרה\PycharmProjects\spotify\file stuff.py", line 12, in <module>
 audio = AudioSegment.from_file(mp3_file, format="mp3")
 File "C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\audio_segment.py", line 728, in from_file
 info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
 File "C:\Users\תמרה\PycharmProjects\spotify\venv\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json
 res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
 File "C:\Users\תמרה\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 971, in __init__
True
 self._execute_child(args, executable, preexec_fn, close_fds,
 File "C:\Users\תמרה\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1440, in _execute_child
 hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Process finished with exit code 1

</module>


What should I do to make this work ?


-
How to use FFSampledSP to play gsm files
25 novembre 2014, par QuentinTanioartinoI am trying to use FFSampledSP on MacOSX but I couldn’t make it working
These are the steps I executed :
- I downloader the jar here :
- I added the jar into my build path using eclipse
- I downloaded the native library ffsampledsp-universal-0.9.9.jnilib here
- I renamed the library to
libffsampledsp.jnilib
- I put the library into the java.library.path
Then I tried to play the file with the java audio player developed but without any success
It fails on
AudioInputStream pcmStream = AudioSystem.getAudioInputStream(encodedFile);
This is the error :
java.lang.UnsatisfiedLinkError: no ffsampledsp-x86_64-darwin in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
at com.tagtraum.ffsampledsp.FFNativeLibraryLoader.loadLibrary(FFNativeLibraryLoader.java:107)
at com.tagtraum.ffsampledsp.FFNativeLibraryLoader.loadLibrary(FFNativeLibraryLoader.java:89)
at com.tagtraum.ffsampledsp.FFNativeLibraryLoader.loadLibrary(FFNativeLibraryLoader.java:73)
at com.tagtraum.ffsampledsp.FFAudioFileReader.<clinit>(FFAudioFileReader.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at java.lang.Class.newInstance(Class.java:438)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at com.sun.media.sound.JSSecurityManager.getProviders(JSSecurityManager.java:216)
at com.sun.media.sound.JDK13Services.getProviders(JDK13Services.java:107)
at javax.sound.sampled.AudioSystem.getProviders(AudioSystem.java:1631)
at javax.sound.sampled.AudioSystem.getAudioFileReaders(AudioSystem.java:1406)
at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1175)
at com.audioplayer.AudioPlayer.load(AudioPlayer.java:47)
at com.view.PlayerView$2.run(PlayerView.java:375)
at java.lang.Thread.run(Thread.java:745)
Nov 25, 2014 9:20:14 AM com.tagtraum.ffsampledsp.FFNativeLibraryLoader loadLibrary
SEVERE: Failed to load native library 'ffsampledsp'. Please check your library path. FFSampledSP will be dysfunctional.
</clinit>Apparently it does not find the ffsampledsp-x86_64-darwin library
Therefore I tried to import it directly using the following but still without any result
static
{
try
{
System.load("/Users/server/Desktop/libffsampledsp.jnilib");
}
catch (UnsatisfiedLinkError e)
{
System.err.println("Native code library failed to load.\n" + e);
System.exit(1);
}
}Do you know where the issue is ?
-
Missing ffmpeg in deployed application
30 décembre 2017, par DexstrumI have created a python GUI which utilizes ffmpy and tkinter. It works fine running in PyCharm and also in py2app’s alias mode. After I deployed it using py2app and ran the program, it loaded up, but nothing happened. After doing some digging, I found that the error was ’ffmpeg executable is missing.’
I tried using pyinstaller to remedy the issue, but the application did not even run.
The warning.txt output file gave me this :
missing module named org - imported by copy
missing module named _sha512 - imported by hashlib
missing module named _sha256 - imported by hashlib
missing module named _md5 - imported by hashlib
missing module named _sha - imported by hashlib
missing module named 'org.python' - imported by pickle, xml.sax
missing module named _subprocess - imported by subprocess
missing module named msvcrt - imported by subprocess, getpass, youtube_dl.utils
missing module named riscosenviron - imported by os
missing module named riscospath - imported by os
missing module named riscos - imported by os
missing module named ce - imported by os
missing module named _emx_link - imported by os
missing module named os2 - imported by os
missing module named nt - imported by os, ntpath
missing module named 'urllib.parse' - imported by pafy.util, youtube_dl.compat, pafy.backend_internal, pafy.backend_shared, pafy.playlist
missing module named _winreg - imported by mimetypes, urllib, winreg, platform
missing module named OverrideFrom23 - imported by Carbon.Res
missing module named SOCKS - imported by ftplib
missing module named rourl2path - imported by urllib
missing module named _dummy_threading - imported by dummy_threading
missing module named 'urllib.error' - imported by pafy.pafy, pafy.util, youtube_dl.compat, pafy.backend_shared
missing module named 'urllib.request' - imported by pafy.g, youtube_dl.compat, pafy.backend_shared
missing module named ElementC14N - imported by xml.etree.ElementTree
missing module named 'java.lang' - imported by platform, xml.sax._exceptions
missing module named _xmlplus - imported by xml
missing module named sgi - imported by pty
missing module named vms_lib - imported by platform
missing module named java - imported by platform
missing module named winreg.HKEY_LOCAL_MACHINE - imported by winreg, platform
missing module named winreg.CloseKey - imported by winreg, platform
missing module named winreg.QueryValueEx - imported by winreg, platform
missing module named winreg.OpenKeyEx - imported by winreg, platform
missing module named win32pipe - imported by platform
missing module named netbios - imported by uuid
missing module named win32wnet - imported by uuid
missing module named lazy_extractors - imported by youtube_dl.extractor
missing module named Crypto - imported by youtube_dl.downloader.hls
missing module named xattr - imported by youtube_dl.utils
missing module named 'dbm.ndbm' - imported by future.moves.dbm.ndbm
missing module named gdbm - imported by anydbm, future.moves.dbm.gnu
missing module named 'dbm.gnu' - imported by future.moves.dbm.gnu
missing module named 'dbm.dumb' - imported by future.moves.dbm.dumb
missing module named bsddb3 - imported by bsddb
missing module named _pybsddb - imported by bsddb, bsddb.db
missing module named 'test.support' - imported by future.moves.test.support
missing module named reprlib.recursive_repr - imported by reprlib, future.backports.misc
missing module named _thread.get_ident - imported by _thread, future.backports.misc
missing module named _datetime - imported by future.backports.datetime
missing module named 'urllib.response' - imported by youtube_dl.compatI am not sure where to go from here. I don’t know how to include ffmpeg into the deployed application, and when I include the modules in the setup.py file it throws me a different error. Is there a reason why the py2app is not deploying the application with ffmpeg ?