
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (88)
-
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (10943)
-
sting up ffmpeg to work in XAMPP
1er juin 2012, par dannyI'm trying to figuring out how to install and use ffmpeg on windows 64 with XAMPP.
I have flow this tutorial and install the ffmpeg-php librarys and I can see the expansion in the phpinfo().
Now I put my ffmpeg.exe in the site root folder and I run this php script :
extension_loaded('ffmpeg') or die('Error in loading ffmpeg');
function convertTo( $input, $output )
{
echo $cmd = "ffmpeg -i $input $output";
$outputData = array();
exec( $cmd , $outputData);
echo "<br />";
print_r($outputData);
}
convertTo( "input.mp4", "output.flv" );and I get this output :
ffmpeg -i input.mp4 output.flv
Array ( )but no encoded file.
My php safe mode is off and the movie file is in the root folder too.workplace info :
- win7 64bit
- XAMPP 1.7.2
- Apache 2.2
- php 5.3.5
Help will be appreciated.
-
ffmpeg doesn't see yt_dlp stream
24 décembre 2022, par matiz22I making discord bot and i am trying to move from youtube_dl to yt_dlp to get +18 videos from youtube, I am getting error Output file #0 does not contain any stream.


self.YTDL_OPTIONS = {'format': 'bestaudio', 'nonplaylist': 'True', 'youtube_include_dash_manifest': False}

self.FFMPEG_OPTIONS = {
 'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5',
 'options': '-vn'
}



with YoutubeDL(self.YTDL_OPTIONS) as ydl:
 try:
 info = ydl.extract_info(url, download=False)
 except:
 return False
return {
 'link': 'https://www.youtube.com/watch?v=' + url,
 'thumbnail': 'https://i.ytimg.com/vi/' + url + '/hqdefault.jpg?sqp=-oaymwEcCOADEI4CSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLD5uL4xKN-IUfez6KIW_j5y70mlig',
 'source': info['formats'][0]['url'],
 'title': info['title']
}



self.vc[id].play(discord.FFmpegPCMAudio(
 song['source'], **self.FFMPEG_OPTIONS), after=lambda e: self.play_next(interaction))



This config works with youtube_dl, but not with yt_dlp. Any ideas what i should change ?


-
Discord.js v14 : AudioPlayer isn't working
6 septembre 2023, par colonelPanicI'm new to javascript in general, and I'm making a Discord bot that can join a voice channel and play some audio. When I run the slash command that I set up, I get no errors and a reply that suggests that everything is running correctly, but no audio is playing. I've looked at the documentation for the audio player and some examples of how to do this on youtube, but I can't find any hints as to why there's no audio.


The command that I'm using to handle the audio player is shown below :


// These are the contents of the 'play.js' file where I'm defining and exporting the slash command 

const { SlashCommandBuilder } = require('discord.js');
const { createAudioPlayer, 
 NoSubscriberBehavior, 
 AudioPlayerStatus,
 getVoiceConnection,
 createAudioResource,
 joinVoiceChannel
 } = require('@discordjs/voice');

module.exports = {
 data: new SlashCommandBuilder()
 .setName('play')
 .setDescription('Plays a song/sound in the voice channel you are in.')
 .addStringOption((option) => 
 option
 .setName('sound')
 .setDescription('The sound/song to play.')
 .setRequired(true)
 .addChoices(
 {name: 'spiderman-pizza', value: 'https://www.youtube.com/watch?v=czTksCF6X8Y'},
 {name: 'royaltyfree-1', value: 'C:/resources/sounds/royaltyfree-1.mp3'}
 )
 ),
 async execute(interaction) {
 // Create the audio player
 const audioPlayer = createAudioPlayer({
 behaviors: {
 noSubscriber: NoSubscriberBehavior.Pause,
 },
 });
 // Get the existing voice connection
 var connection = getVoiceConnection(interaction.guild.id);
 // If there is no existing connection, create one
 if (!connection) {
 connection = joinVoiceChannel({
 channelId: interaction.member.voice.channel.id,
 guildId: interaction.guild.id,
 adapterCreator: interaction.guild.voiceAdapterCreator
 });
 }
 // Get the chosen audio resource and play it in the voice channel
 const resource = createAudioResource(interaction.options.getString('sound'));
 audioPlayer.play(resource);
 connection.subscribe(audioPlayer);

 interaction.reply({content: `Playing ${interaction.options.getString('sound')}`, ephemeral: true});
 }
}



I don't get any errors when I execute this command with either of the available choices, but the audio player doesn't play anything. On the Discord server, I've given the bot all permissions except for Administrator, and the intents that I've specified in the code can be seen below :


const { 
 Client, 
 Collection, 
 Events, 
 GatewayIntentBits,
 } = require('discord.js');

// Create a new client instance
const client = new Client({ 
 intents: [
 GatewayIntentBits.Guilds,
 GatewayIntentBits.MessageContent,
 GatewayIntentBits.GuildMessages,
 GatewayIntentBits.GuildMembers,
 GatewayIntentBits.GuildVoiceStates
 ] 
 }
 );



I know that the '/play' command is registered and that the bot can join the user's voice channel when '/play' is executed. I've installed 'libsodium-wrappers' (encryption package), 'ffmpeg-static', and '@discordjs/voice' using npm so I don't think there should be any dependency issues. Does anyone have an idea of why the audio isn't playing ?