
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (86)
-
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (8058)
-
FFmpeg output video file much smaller than uncompressed input audio file, using option to preserve original audio quality
17 mars 2021, par JanI attempt to create a video slideshow from a number of image files and an audio file in 2 steps :


- 

- Create a temporary video file from a sequence of image files
- Add an audio file to the temporary video file with a delay of 5 seconds






The audio file is an uncompressed stereo wav file, encoded with a sample rate of 44100 Hz and a bit depth of 32 bits, with a size of 40.1 MB. To preserve the lossless quality of the input audio file I use the option -c:a aac -b:a 192k as per Slideshow Wiki. However, the final output video file has a size of only 4.49 MB.


How can the output video file be about 10 times smaller than the input audio file and still preserve the original lossless quality ?


My code :


ffmpeg -f concat -i slide-sequence.txt -c:v libx264 -r 30 -filter_complex format=yuv420p temp.mp4
ffmpeg -i temp.mp4 -i audio.wav -af "adelay=5000|5000" -c:v copy -c:a aac -b:a 192k out.mp4



-
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 ?


-
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.