
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (88)
-
Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur
8 février 2011, parLa visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
Configuration de la boite multimédia
Dès (...) -
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 -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (8729)
-
Convert ogg byte array to wav byte array Python
2 février 2023, par Ramish RasoolI want to convert ogg byte array/bytes with Opus codec to wav byte array/bytes without saving to disk. I have downloaded audio from telegram api and it is in byte array format with .ogg extension. I do not want to save it to filesystem to eliminate filesystem io latencey.


Currently what I am doing is after saving the audio file in .ogg format using code the below code using telegram api for reference https://docs.python-telegram-bot.org/en/stable/telegram.file.html#telegram.File.download_to_drive


# listen for audio messages
async def audio(update, context):
 newFile = await context.bot.get_file(update.message.voice.file_id)
 await newFile.download_to_drive(output_path)



I am using the code


subprocess.call(["ffmpeg", "-i", output_path, output_path.replace(".ogg", ".wav"), '-y'], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)



to convert ogg file to wav file. But this is not what I want.


I want the code


async def audio(update, context):
 newFile = await context.bot.get_file(update.message.voice.file_id)
 byte_array = await newFile.download_as_bytearray()



to get byte_array and now I want this byte_array to be converted to wav without saving to disk and without using ffmpeg. Let me know in comments if something is unclear. Thanks !


Note : I have setted up a telegram bot at the backend which listens for audios sent to private chat which I do manually for testing purposes.


-
Revision 40642 : Une action et un bouton dans le CFG pour appliquer la pochette par défaut ...
10 septembre 2010, par kent1@… — LogUne action et un bouton dans le CFG pour appliquer la pochette par défaut à tous les docs sonores (mp3 pour l’instant) qui n’ont pas de vignette perso
-
FFmpeg : How to merge all audio streams into stereo
8 janvier 2019, par swamiI have 4 audio streams in my video file. They are from 4 microphones placed at 4 different people speaking. I want to transcode to a preview file that can be listened to on headphones where everybody’s voice can be heard.
I have seen the -ac 2 option, but I can’t tell if this will merge all the audio streams or just select the 1st two. I’ve also seen the amerge filter, but the docs say this will produce 4 audio channels in the output file. So I’m wondering how headphones will deal with the additional 2 channels