
Recherche avancée
Autres articles (67)
-
Modifier la date de publication
21 juin 2013, parComment changer la date de publication d’un média ?
Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
Dans la rubrique "Champs à ajouter, cocher "Date de publication "
Cliquer en bas de la page sur Enregistrer -
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (11971)
-
opus : export mapping family 2 (Ambisonic) as Ambisonic layout
28 mai 2019, par Anton Khirnov -
Convert from opus to ogg file using ffmpeg [python soundfile]
27 septembre 2021, par Zabir Al NaziI'm using python
soundfile
to audio files in one of my projects. I have a dataset that containsopus
files.

python
soundfile
can not read opus files directly but can read ogg files. (https://github.com/bastibe/python-soundfile/issues/252)

How can I convert all the opus files to ogg files with ffmpeg ?


I have tried the following command,


ffmpeg -i test_file_2.opus -c:a libvorbis -b:a 16k test_file_2.ogg




But I get an error,


ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
 configuration: --prefix=/opt/conda --cc=/opt/conda/conda-bld/ffmpeg_1597178665428/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-pic --enable-pthreads --enable-shared --disable-static --enable-version3 --enable-zlib --enable-libmp3lame
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
[ogg @ 0x55bad6b9cbc0] 543 bytes of comment header remain
Input #0, ogg, from 'test_file_2.opus':
 Duration: 00:00:14.10, start: 0.000000, bitrate: 34 kb/s
 Stream #0:0: Audio: opus, 48000 Hz, mono, fltp
 Metadata:
 album : Onder Moeders Vleugels
 ENCODER_OPTIONS : --quiet
 artist : Louisa May Alcott
 title : 02 - Een vroolijk kerstfeest
 encoder : opusenc from opus-tools 0.1.10;Lavf57.83.100
Unknown encoder 'libvorbis'




-
How to transcode discord opus bytes wav ?
13 décembre 2022, par TacokeetI am trying to convert discords opus audio bytes to wav bytes. I'm using the discord python library Pycord to receive opus audio. This receives opus aduio from a socket. This audio is 2 channel, 48khz.


I want transcode these bytes into 1 channel 16khz wav. So that I can pass it into Pico voice their porcupine (pvporcupine) wake word detection.


I tried convert the decoced data with audioop but this doesn't work.


converted = audioop.ratecv(data.decoded_data, 2, 2, 48000, 16000, None)
converted = audioop.tomono(converted[0], 2, 1, 0)



Pycord has a feature that it writes the bytes into a wav file. I can use ffmpeg to then transcode it into an 1 channel 16khz wav file. I can then feed this file into pvporcupine. It then detects the desired wake words.


But I want to transcode the decoded bytes and then pass them into pvpvporcupine.


Any help towards an answer would be appreciated.