Recherche avancée

Médias (0)

Mot : - Tags -/navigation

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

Autres articles (60)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains 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 ;

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

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

Sur d’autres sites (10987)

  • How do I include libraries in a ruby project ?

    9 janvier 2013, par user1860596

    I installed rvideo.

    gem install rvideo
    aptitude install ffmpeg

    I wrote the following using rvideo while reading a manual.

    #!/usr/bin/env ruby

    file = RVideo::Inspector.new(:file => "/home/user/r/input.mp4")
    file.fps        # => "29.97"
    file.duration   # => "00:40:23.4"

    transcoder = RVideo::Transcoder.new

    recipe = "ffmpeg -i $input_file$ -ar 22050 -ab 64 -f flv -r 29.97 -s"
    recipe += " $resolution$ -y $output_file$"
    recipe += "\nflvtool2 -U $output_file$"
    begin
    transcoder.execute(recipe, {:input_file => "/home/user/r/input.mp4",
    :output_file => "/home/user/r/output.flv", :resolution => "640x360"})
    rescue TranscoderError => e
    puts "Unable to transcode file: #{e.class} - #{e.message}"
    end

    transcoder.original     # RVideo::Inspector object
    transcoder.processed    # RVideo::Inspector object

    When I do :

    $ ruby hw.rb

    I get :

    first.rb:3: uninitialized constant RVideo (NameError)

    In the manual, I found this code :

    require 'test/unit/assertions'
    include Test::Unit::Assertions
    puts assert_equal nil == nil, nil.nil?

    How do I include rvideo library in my case ? How do I know the path to the library ?

  • Is it good to use minterpolate in FFmpeg for reducing blurred frames

    30 mars 2022, par Udi

    I'm using FFMPEG to slice png files from videos.

    


    I'm slicing the videos in fps between 1-3 depending on some video metadata.
I can see that when the subjects in the video moving fast or the camera are not steady I will get blurred frames. I try to research how I can solve it (The quality of these frames is my main goal) and I tackled the minterpolate option.

    


    I think that if I will use the blend option that will mean the 3 frames to 1 the "noise" of the blurred subjects will reduce.

    


    So my current command now is like this :

    


    ./ffmpeg -i "/home/dev/ffmpeg/test/input/@3.mp4" -vf minterpolate=fps=1:mi_mode=blend,mpdecimate=hi=11456:lo=6720:frac=0.5 -vsync 0  "/home/dev/ffmpeg/test/output/3/(#%04d).png"


    


    Am I right ? Do you think of a better way to use FFMPEG to solve my problem ?

    


  • Discord.js music bot : TypeError : this.inputMedia.pipe is not a function

    7 août 2019, par Ivs

    I’m writing a music Discord bot using Discord.js. The bot uses ytdl-core, node-opus, and I have installed ffmpeg on my OS (Ubuntu 19.04). When I try to make the bot join a voice channel and start playing a YouTube URL, it throws the following error :

    TypeError: this.inputMedia.pipe is not a function
       at FfmpegProcess.connectStream (/home/ivan/.../node_modules/discord.js/node_modules/prism-media/src/transcoders/ffmpeg/FfmpegProcess.js:73:21)
       at new FfmpegProcess (/home/ivan/.../node_modules/discord.js/node_modules/prism-media/src/transcoders/ffmpeg/FfmpegProcess.js:28:14)
       at FfmpegTranscoder.transcode (/home/ivan/.../node_modules/discord.js/node_modules/prism-media/src/transcoders/ffmpeg/Ffmpeg.js:34:18)
       at MediaTranscoder.transcode (/home/ivan/.../node_modules/discord.js/node_modules/prism-media/src/transcoders/MediaTranscoder.js:27:31)
       at Prism.transcode (/home/ivan/.../node_modules/discord.js/node_modules/prism-media/src/Prism.js:13:28)
       at AudioPlayer.playUnknownStream (/home/ivan/.../node_modules/discord.js/src/client/voice/player/AudioPlayer.js:97:35)
       at VoiceConnection.playStream (/home/ivan/.../node_modules/discord.js/src/client/voice/VoiceConnection.js:478:24)
       at voiceChannel.join.then.connection (/home/ivan/.../commands/play.js:32:47)
       at process._tickCallback (internal/process/next_tick.js:68:7)

    Here is my code :

    const ytdl = require("ytdl-core");

    exports.run = (client, message, args, config) => {
       return new Promise((resolve, reject) => {
           if (args.length !== 1) {
               message.channel.send("Play command takes 1 YouTube link.");
               reject("Wrong number of arguments");
               return;
           }
           const voiceChannel = message.member.voiceChannel;
           if(!voiceChannel) {
               message.channel.send("You need to connect to a voice channel first");
               reject("Not connected to voice channel");
               return;
           }
           const perms = voiceChannel.permissionsFor(message.client.user);
           if (!perms.has("CONNECT")) {
               message.channel.send("You need to add the 'connect' permission for this bot");
               reject("NO CONNECT PERMISSION");
               return;
           }
           if (!perms.has("SPEAK")) {
               message.channel.send("You need to add the 'speak' permission for this bot");
               reject("NO SPEAK PERMISSION");
               return;
           }
           const streamOptions = { seek: 0, volume: 1, passes: 2 };
           voiceChannel.join()
               .then(connection => {
                   const stream = ytdl(args[0], {filter: 'audioonly'});
                   const dispatcher = connection.playStream(ytdl, streamOptions);
                   dispatcher.on("end", reason => {
                       console.log("reason: " + reason);
                       voiceChannel.leave();
                   })
                   dispatcher.on("error", err => {
                       console.log(err);
                   })
               })
           .catch(err => console.log(err));
       });    
    }

    I have tried reinstalling ffmpeg, node and npm, discord.js and node-opus. I have the newest version of Discord.js installed, and ffmpeg version 4.1.3-0ubuntu1. Anyone have any suggestions ?

    Thanks.