
Recherche avancée
Médias (16)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (43)
-
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (5638)
-
How to add album art with ffmpeg ?
8 février 2024, par Adi Ricky kI've been stuck in adding album art to mp3 files.


I've already researched and Googled this issue but haven't found a solution yet. The
ffmpeg
documentation recommends this script to add image (album art) to mp3 :

ffmpeg -i input.mp3 -i cover.png -c copy -map 0 -map 1 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (Front)" out.mp3



But it doesn't work. My console output is :


Unrecognized option 'c'
Failed to set value 'copy' for option 'c'



I looked for another solution and got this :


ffmpeg -i input.mp3 -i cover.png -map 0:0 -map 1:0 -c copy -id3v2_version 3 -metadata:s:v title="Album cover" -metadata:s:v comment="Cover (Front)" out.mp3



This returns the same output :


Unrecognized option 'c'
Failed to set value 'copy' for option 'c'



Anybody can help me, please ?


I am using ubuntu 12.04 and ffmpeg version 0.8.6-4:0.8.6-0.


Thanks.


-
mp4 to hls ffmpeg during upload to Google storage
13 février 2018, par Sofiia VynnytskaI have an API written on Java, which is used for uploading mp4 videos on front-end. We store those videos on google cloud and our application is running in google cloud. For Android clients, we need to convert uploaded videos to hls. Unfortunately, Google cloud does not have transcoder for videos and I need to convert video in another way. I found that ffmpeg can do this. But I cannot find a good solution for this and I need an advice.
One of ideas is to deploy cloud function on google cloud, which will convert mp4 to hls after uploading video. Can I need to upload this m3u8 and ts videos to storage ? Will be this approach okay ? Is there any other possible solution ? -
installed ffmpeg not detected. Can't convert audio (python 2.7, mac os x)
18 novembre 2017, par trezcastGeneral information :
I have a project in python that deals with audio classification ; the backend is complete but I’m suffering with the front-end. The backend requirement (that I can’t change) is that the audio file must be in wav format but I want users to be able to upload mp3 files as well. My front-end is a web server using python 2.7 and flask.
So, I basically want to convert mp3 to wav, but keep on getting errors.
(The complete code is at the bottom in case it is needed to understand the problem more clearly)My attempts :
1- I used pydub libraryI installed homebrew, libav, and ffmpeg
libav installation method : brew install libav —with-libvorbis —with-sdl —with-theora
ffmpeg installation method : brew install ffmpeg —with-libvorbis —with-ffplay —with-theoraMethod1
sound = AudioSegment.from_file(filename[i], format="mp3") #filename[i]=nameOfFile
sound.export("input.wav", format="wav")Method2
AudioSegment.from_file(filename[i], format="mp3").export("input.wav", format="wav")
=> Kept getting "file not found" and "cannot detect ffmpeg or avconv" runtime warning even though I installed ffmpeg and libav
=> Got same error above ("file not found") when I used "from_mp3" instead of "from_file"
=> Tried using "raw" instead of "mp3" and got "key error : sample_width" (couldn’t find what this error meant)
Note : I made sure I’m in the right directory2- Used subprocess
import subprocess
subprocess.call(["ffmpeg", "-i",filename[i],"inputAudio.wav"])=> Got "OSError : No such file or directory"
I hope you can help me understand what the problem is and how to solve it...
Complete Code :
I have this at the topapp = Flask(__name__)
APP_ROOT = os.path.dirname(os.path.abspath(__file__))
os.chdir(APP_ROOT)Inside the function that deals with the audio files
data = request.files.getlist('file') #get all uploaded audio files
fsize = len(data) #number of audio files
i = 0 #index counter
filename = ["" for x in range(fsize)] #LIST TO STORE EACH FILE'S NAME
audiofile = ["" for x in range(fsize)] #LIST TO STORE CLASSIFICATION RESULTS OF EACH FILE
#LOOP THROUGH EACH UPLOADED FILE
for file in data:
filename[i] = file.filename #ADD FILENAME TO LIST ABOVE
destination = str(APP_ROOT)Problematic Part :
if file.filename.endswith(".mp3"):
from pydub import AudioSegment
t = destination + "/" + filename[i]
file.save(t) #SAVE UPLOADED MP3 FILE TO EXTRACT IT USING PYDUB
sound = AudioSegment.from_file(filename[i], format="mp3")
sound.export("input.wav", format="wav")
os.remove(t) #DELETE MP3 FILE, WE ONLY WANT WAV
destination += "/inputAudio.wav"Code Continuation :
#STORE AUDIO FILE TO PREPARE FOR PROCESSING (CLASSIFICATION)
else:
destination += "/inputAudio.wav"
file.save(destination)
#FINAL STEP
audiofile[i]=Raudio.start() #AUDIO PROCESSING (CLASSIFICATION)
os.remove(destination) #DELETE AUDIO FILE TO PREVENT CLUTTERING OF FILES
i += 1 #INCREMENT FILE INDEX