Recherche avancée

Médias (0)

Mot : - Tags -/publication

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une 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 (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (9672)

  • sting up ffmpeg to work in XAMPP

    1er juin 2012, par danny

    I'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 matiz22

    I 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.

    &#xA;

    self.YTDL_OPTIONS = {&#x27;format&#x27;: &#x27;bestaudio&#x27;, &#x27;nonplaylist&#x27;: &#x27;True&#x27;, &#x27;youtube_include_dash_manifest&#x27;: False}&#xA;&#xA;self.FFMPEG_OPTIONS = {&#xA;    &#x27;before_options&#x27;: &#x27;-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5&#x27;,&#xA;    &#x27;options&#x27;: &#x27;-vn&#x27;&#xA;}&#xA;

    &#xA;

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

    &#xA;

    self.vc[id].play(discord.FFmpegPCMAudio(&#xA;    song[&#x27;source&#x27;], **self.FFMPEG_OPTIONS), after=lambda e: self.play_next(interaction))&#xA;

    &#xA;

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

    &#xA;

  • Discord.js v14 : AudioPlayer isn't working

    6 septembre 2023, par colonelPanic

    I'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.

    &#xA;

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

    &#xA;

    // These are the contents of the &#x27;play.js&#x27; file where I&#x27;m defining and exporting the slash command &#xA;&#xA;const { SlashCommandBuilder } = require(&#x27;discord.js&#x27;);&#xA;const { createAudioPlayer, &#xA;        NoSubscriberBehavior, &#xA;        AudioPlayerStatus,&#xA;        getVoiceConnection,&#xA;        createAudioResource,&#xA;        joinVoiceChannel&#xA;      } = require(&#x27;@discordjs/voice&#x27;);&#xA;&#xA;module.exports = {&#xA;    data: new SlashCommandBuilder()&#xA;        .setName(&#x27;play&#x27;)&#xA;        .setDescription(&#x27;Plays a song/sound in the voice channel you are in.&#x27;)&#xA;        .addStringOption((option) => &#xA;            option&#xA;            .setName(&#x27;sound&#x27;)&#xA;            .setDescription(&#x27;The sound/song to play.&#x27;)&#xA;            .setRequired(true)&#xA;            .addChoices(&#xA;                {name: &#x27;spiderman-pizza&#x27;, value: &#x27;https://www.youtube.com/watch?v=czTksCF6X8Y&#x27;},&#xA;                {name: &#x27;royaltyfree-1&#x27;,   value: &#x27;C:/resources/sounds/royaltyfree-1.mp3&#x27;}&#xA;            )&#xA;        ),&#xA;    async execute(interaction) {&#xA;        // Create the audio player&#xA;        const audioPlayer = createAudioPlayer({&#xA;            behaviors: {&#xA;                noSubscriber: NoSubscriberBehavior.Pause,&#xA;            },&#xA;        });&#xA;        // Get the existing voice connection&#xA;        var connection = getVoiceConnection(interaction.guild.id);&#xA;        // If there is no existing connection, create one&#xA;        if (!connection) {&#xA;            connection = joinVoiceChannel({&#xA;                channelId: interaction.member.voice.channel.id,&#xA;                guildId: interaction.guild.id,&#xA;                adapterCreator: interaction.guild.voiceAdapterCreator&#xA;            });&#xA;        }&#xA;        // Get the chosen audio resource and play it in the voice channel&#xA;        const resource = createAudioResource(interaction.options.getString(&#x27;sound&#x27;));&#xA;        audioPlayer.play(resource);&#xA;        connection.subscribe(audioPlayer);&#xA;&#xA;        interaction.reply({content: `Playing ${interaction.options.getString(&#x27;sound&#x27;)}`, ephemeral: true});&#xA;    }&#xA;}&#xA;

    &#xA;

    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 :

    &#xA;

    const { &#xA;    Client, &#xA;    Collection, &#xA;    Events, &#xA;    GatewayIntentBits,&#xA; } = require(&#x27;discord.js&#x27;);&#xA;&#xA;// Create a new client instance&#xA;const client = new Client({ &#xA;    intents: [&#xA;            GatewayIntentBits.Guilds,&#xA;            GatewayIntentBits.MessageContent,&#xA;            GatewayIntentBits.GuildMessages,&#xA;            GatewayIntentBits.GuildMembers,&#xA;            GatewayIntentBits.GuildVoiceStates&#xA;            ] &#xA;        }&#xA;    );&#xA;

    &#xA;

    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 ?

    &#xA;