
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (67)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9706)
-
FFmpeg : encoding a PCM audio file to AAC using AAC codec info from another file
7 septembre 2022, par Siddharth KumarI have two audio files :


- 

audio_0.wav
: PCM audioaudio_1.aac
: encoded audio using some parameters






I'm trying to achieve the following outcome with FFmpeg :


Create a new file
audio_2.aac
which contains audio fromaudio_0.wav
encoded using the codec parameters fromaudio_1.aac
.

If I run the following :

ffmpeg -i audio_0.wav -i audio_1.aac -c copy audio_2.aac
then I get streams from both muxed together.
I do not want content fromaudio1.aac
. Any pointers to solve this would be appreciated.

-
File contains data in an unknown format. (m4a load from librosa)
2 août 2022, par Moriyama AikoSo I am currently working on a DNN that takes in m4a files. I have ffmpeg, it creates a few batches and then dies on this error :


Traceback (most recent call last):
 File "/users/work/s163838/./main.py", line 126, in <module>
 
 File "/users/work/s163838/./main.py", line 96, in main
 print("e")
 File "/apl/tryton/python/3.9.5/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 521, in __next__
 data = self._next_data()
 File "/apl/tryton/python/3.9.5/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data
 return self._process_data(data)
 File "/apl/tryton/python/3.9.5/lib/python3.9/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data
 data.reraise()
 File "/apl/tryton/python/3.9.5/lib/python3.9/site-packages/torch/_utils.py", line 425, in reraise
 raise self.exc_type(msg)
EOFError: Caught EOFError in DataLoader worker process 0.
Original Traceback (most recent call last):
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/librosa/core/audio.py", line 164, in load
 y, sr_native = __soundfile_load(path, offset, duration, dtype)
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/librosa/core/audio.py", line 195, in __soundfile_load
 context = sf.SoundFile(path)
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/soundfile.py", line 629, in __init__
 self._file = self._open(file, mode_int, closefd)
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/soundfile.py", line 1183, in _open
 _error_check(_snd.sf_error(file_ptr),
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/soundfile.py", line 1357, in _error_check
 raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Error opening 'vox2/dev/aac/id08194/QnBYPze-x9A/00079.m4a': File contains data in an unknown format.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/apl/tryton/python/3.9.5/lib/python3.9/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
 data = fetcher.fetch(index)
 File "/apl/tryton/python/3.9.5/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
 data = [self.dataset[idx] for idx in possibly_batched_index]
 File "/apl/tryton/python/3.9.5/lib/python3.9/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
 data = [self.dataset[idx] for idx in possibly_batched_index]
 File "/users/work/s163838/vox_celeb_loader.py", line 53, in __getitem__
 load(speaker2utt1, self.num_samples)
 File "/users/work/s163838/vox_celeb_loader.py", line 13, in load
 wav, sr = librosa.load(path, sr=16000)
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/librosa/util/decorators.py", line 88, in inner_f
 return f(*args, **kwargs)
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/librosa/core/audio.py", line 170, in load
 y, sr_native = __audioread_load(path, offset, duration, dtype)
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/librosa/core/audio.py", line 226, in __audioread_load
 reader = audioread.audio_open(path)
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/audioread/__init__.py", line 111, in audio_open
 return BackendClass(path)
 File "/users/kdm/s163838/.local/lib/python3.9/site-packages/audioread/rawread.py", line 65, in __init__
 self._file = aifc.open(self._fh)
 File "/apl/tryton/python/3.9.5/lib/python3.9/aifc.py", line 917, in open
 return Aifc_read(f)
 File "/apl/tryton/python/3.9.5/lib/python3.9/aifc.py", line 358, in __init__
 self.initfp(f)
 File "/apl/tryton/python/3.9.5/lib/python3.9/aifc.py", line 314, in initfp
 chunk = Chunk(file)
 File "/apl/tryton/python/3.9.5/lib/python3.9/chunk.py", line 63, in __init__
 raise EOFError
EOFError

</listcomp></module>


I am using this command


wav, sr = librosa.load(path, sr=16000)



is it just a broken file ? How do I skip such then ? Or is it something about loading a m4a file even with ffmpeg and the desired output when tested on a single m4a file ?


-
Error with LocalAudioFile(file) returns OSError : [Errno 2] No such file or directory
5 mars 2016, par beriukayMuch like the question here http://developer.echonest.com/forums/thread/3843#reply, I am having the following error :
File
"/usr/local/lib/python2.7/dist-packages/echonest/remix/audio.py", line
944, in init
sampleRate=sampleRate, numChannels=numChannels) File "/usr/local/lib/python2.7/dist-packages/echonest/remix/audio.py", line
403, in init
self.load() File "/usr/local/lib/python2.7/dist-packages/echonest/remix/audio.py", line
421, in load
numChannels=self.numChannels, sampleRate=self.sampleRate, verbose=self.verbose) File
"/usr/local/lib/python2.7/dist-packages/echonest/remix/support/ffmpeg.py",
line 91, in ffmpeg
close_fds=(not win) File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception OSError : [Errno 2] No such file or directoryI checked input and output file permissions, made sure that both files and all related file paths existed, and that I have all the relevant python tools installed. The first clue is that Subprocess.py is having trouble. Looking at ffmpeg.py on line 88, I started playing around with the Popen function call to see how and why it was misbehaving.
Solution :
After messing around with the ffmpeg.py file, I piped the input to the shell (shell=True instead of shell=False), which raised the following error :
check raise Run timeError(ffmpeg_install_instructions) RuntimeError: en-ffmpeg not found! Please make sure ffmpeg is installed and create a link as follows: sudo ln -s which ffmpeg /usr/local/bin/en-ffmpeg Alternatively, import echonest.remix.support.ffmpeg and modify ffmpeg.FFMPEG to name the appropriate binary.
So, to finalize the solution, you need to get the binary from https://ffmpeg.org/download.html#build-linux, which in Ubuntu 14.04 means you just need to :
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install ffmpeg
sudo ln -s `which ffmpeg` /usr/local/bin/en-ffmpegThat should clear this problem right up.