
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (92)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (12224)
-
How to create m3u8 playlist from mp4 video url ( stored in amazon S3 ) and store the video chunks ( .ts files) and .m3u8 file back to another S3 ?
19 mai 2019, par dexter2019I am building an application where user can upload video and others can watch them later. I am aiming for HLS streaming of the video on the client side, for which the video format should be .m3u8. I am using node fluent-FFmpeg module to do the processing, however, I have a huge doubt, that, how to ensure that all the .ts files (chunks) are also stored back in s3 bucket along with the m3u8 file after ffmpeg processed the mp4 file ?
Because the ffmpeg command only takes the location of the m3u8 file ? How handle it when I want the input and output location to be S3 ?
Any help will be greatly appreciated.
I am following the answer from this question Ffmpeg creating m3u8 from mp4, video file size , which is working absolutely fine in my local machine, how to achieve the same for s3 ?
-
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 ?