
Recherche avancée
Médias (3)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (104)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (11948)
-
Can ffmpeg write metadata encoder when transcoding alac/flac to aac audio file ?
11 juin 2022, par David II have a collection of alac and flac files from Bandcamp and an ffmpeg instance compiled with libfdk_aac https://trac.ffmpeg.org/wiki/CompilationGuide/Centos#libfdk_aac and am trying to convert these to lossy audio aac files for non-critical listening.


With
ffmpeg -i Liholesie\ -\ Shamanic\ Twilight\ -\ 09\ Gray\ Wings.m4a -c:a libfdk_aac -vbr 4 -c:v copy 09_Gray_wings_vbr4.m4a
an expected aac .m4a audio file is produced, album art included, works well. There's one slight detail missing :

During the ffmpeg conversion process ffmpeg says :


Output #0, ipod, to '09_Gray_wings_vbr4.m4a':
 Metadata:
 major_brand : M4A 
 minor_version : 512
 compatible_brands: M4A isomiso2
 title : Gray Wings
 artist : Liholesie
 album_artist : Liholesie
 album : Shamanic Twilight
 comment : Visit https://liholesie.bandcamp.com
 date : 2021
 track : 9
 encoder : Lavf59.24.100
 Stream #0:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 700x700 [SAR 72:72 DAR 1:1], q=2-31, 90k tbr, 90k tbn (attached pic)
 Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16 (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 encoder : Lavc59.33.100 libfdk_aac 
..





and the file produced looks like that when ffprobed except that the Metadata : encoder field is missing :


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '09_Gray_wings_vbr4.m4a':
 Metadata:
 major_brand : M4A 
 minor_version : 512
 compatible_brands: M4A isomiso2
 title : Gray Wings
 artist : Liholesie
 album_artist : Liholesie
 album : Shamanic Twilight
 date : 2021
 encoder : Lavf59.24.100
 comment : Visit https://liholesie.bandcamp.com
 track : 9
 Duration: 00:06:57.78, start: 0.000000, bitrate: 155 kb/s
 Stream #0:0[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 152 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
 Stream #0:1[0x0]: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 700x700 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn (attached pic)



Is there a way to write the encoder field in the Metadata section when transcoding (or is "encoder" not supported for aac m4a ? That would be weird since ffmpeg says what it says when specifying output during transcoding) .


Any hints on how to write a self-defined text to said tag during transcoding are also welcome.


-
Discord.py bot joins voice channel but when using voicechannel.play i get error:Command raised an exception : ClientException : Not connected to voice
25 mai 2023, par AudibleDruidSo i've managed to get my discord bot to join a voice channel but when i use the play command it gives me an error that its not conencted to voice
Command raised an exception: ClientException: Not connected to voice.


Here is my code :


import discord
import random
import glob
from discord.ext import commands

##discord intents 
intents = discord.Intents()
intents.members = True
intents.messages = True
intents.guilds = True
intents.voice_states = True



connect the bot to a voice channel :



##called when user wants bot to join voice channel
@bot.command(name ='join', help = 'Make the bot join a voice channel')
async def join(context):
 
 botVoice = context.message.guild.voice_client
 if context.guild.voice_client:
 botvoicechannel = context.message.guild.voice_client.channel
 else:
 botvoicechannel = None
 authorVoice = context.author.voice
 if context.author.voice:
 authorvoicechannel = context.author.voice.channel
 else:
 authorvoicechannel = None
 
 ##await context.reply('bot voice channel: {}\n\nbot voice:\n{}\n\nauthor voice channel: {}\n\nauthor voice voice:\n{}\n\n'.format(botvoicechannel, botVoice, authorvoicechannel, authorVoice))
 
 if not authorVoice and not botVoice:
 await context.reply('Connect to a voice channel first.')
 return
 elif authorVoice and not botVoice:
 await context.reply('Connecting to {}'.format(authorvoicechannel))
 await authorvoicechannel.connect()
 return
 elif not authorVoice and botVoice:
 await context.reply("You aren't in a channel, I'm in {}".format(botvoicechannel))
 return
 elif authorVoice and botVoice:
 if (botvoicechannel == authorvoicechannel):
 await context.reply("I'm already in here.")
 return
 else:
 await context.reply('Moving to you!')
 await botVoice.move_to(authorvoicechannel)
 return
 return



and have it play a url :


@bot.command(name ='play', help = 'Make the bot play a url')
async def play(context, url):
 botVoice = context.message.guild.voice_client
 audioSource = discord.FFmpegPCMAudio(url, executable="ffmpeg")
 botVoice.play(audioSource, after = None)



the code works and the bot joins the voice channel. i see it in the voice channel with me, however i get an error when it gets to
botVoice.play(audioSource, after = None)


the error message is :

error: Command raised an exception: ClientException: Not connected to voice.


i changed
botVoice = context.message.guild.voice_client
frombotVoice = context.guild.voice_client
but that didnt seem to change anything. not sure what to try next. It seems like it wants to play the url the bot just doesnt realize its in the voice channel with me.

maybe a related error. if i kill my python script the bot remains in the channel even though its not running. then when i start it up and do the !join command it says its joining even though its already in the channel with me. its weird because on the join command it checks to see if its already in a voice channel so it should know that its in there with me. idk what to try next. thanks for any suggestions. i only posted relevant code. let me know if you think im missing something else.


thanks for the help


-
Problem accessing audio track from mp4 file
20 décembre 2019, par Thomas SpycherFor a TV Project we want to transcode the source videofiles to other formats. The Sourcefiles are fragmented mp4 files. Destination format could be mp4 or any other format.
The sourcefile contains multiple audio tracks for different codes (aac, eac3, aac-otherlanguage).Something with this files is odd. I can play them without problems on quicktime or VLC. Import them into Premiere for example ends up with the video but without sound.
Converting them on AWS MediaConvert results in weird issues as well like (depending on the settings) :
- No audio frames decoded on [selector-(Audio Selector 1)-track-1-drc] (selecting aac audiotrack (Track:1))
- Decoder : [Dolby decoder error : failed to configure to stream in first 100 frames] (selecting eac3 audiotrack (Track:2) )
I’m able to convert the files with Handbreak and the result is a MP4 file with one audiotrack which is working everywhere. I’m trying to figure out whats odd with this file to make them working with AWS MediaConvert.
Here is the ffprobe output of one of the files :
ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers
built with Apple LLVM version 10.0.0 (clang-1000.10.44.4)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfreetype --enable-opencl --enable-videotoolbox
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '123893.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isomiso2iso5dashavc1dby1mp41
Duration: 00:01:24.02, start: 0.000000, bitrate: 5600 kb/s
Stream #0:0(deu): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 4869 kb/s, 50 fps, 50 tbr, 1k tbn, 100 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(deu): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:2(deu): Audio: eac3 (ec-3 / 0x332D6365), 48000 Hz, 5.1(side), fltp, 256 kb/s
Metadata:
handler_name : SoundHandler
Side data:
audio service type: mainAn example file can get downloaded here : https://wilmaa-rnd.s3-eu-west-1.amazonaws.com/124041.mp4