Recherche avancée

Médias (0)

Mot : - Tags -/upload

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

Autres articles (74)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accé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 (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Le profil des utilisateurs

    12 avril 2011, par

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

Sur d’autres sites (9081)

  • build video from images with a bash for loop using ffmpeg

    10 septembre 2021, par TheCodeNovice

    I am trying to take 50K images and turn them into a movie using ffmpeg. I am running this on a HPC setup, hence the slurm commands. My attempt does not work since I am running into a hard limit due to the shear volume of images. I cannot just list a start number since the pipeline will reject some images so I do not have a proper sequence.

    


    I know a loop could circumvent both issues but I am not sure how to use that with ffmpeg so that it builds one long movie.

    


    The cat command has worked for shorter movies but i just have too many images now.

    


    #!/bin/bash&#xA;&#xA;img_dir=&#x27;foo/bar/1/2/123456&#x27;&#xA;folder=&#x27;fooo&#x27;&#xA;#BATCH -p general&#xA;#SBATCH -N 1&#xA;#SBATCH -t 03-00:00:00&#xA;#SBATCH --mem=8g&#xA;#SBATCH -n 1&#xA;#SBATCH --mail-type=BEGIN,REQUEUE,END,FAIL,REQUEUE   &#xA;#SBATCH --mail-user=<snip>&#xA;&#xA;singularity exec /$img_dir/foo_container cat /$img_dir/processed_images/$folder/*.jpeg | ffmpeg -f image2pipe -i pipe:.jpeg -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2" /$img_dir/processed_images/$folder/$folder.mp4&#xA;&#xA;</snip>

    &#xA;

  • ffmpeg audio convert not working

    11 janvier 2012, par Andrew

    I cannot get the ffmpeg audio convert working on my site. The idea is that file should be converted when it's uploaded on the site.

    I've got this on my upload form determining the audio file's format :

    if(isset($_POST[&#39;audio&#39;]) &amp;&amp; $_POST[&#39;audio&#39;] != &#39;&#39;){
                   $ext1 = substr($_POST[&#39;audio&#39;], -4);

    This is the best I've come up with for converting m4a to mp3 :

    if(isset($_POST[&#39;audio&#39;]) &amp;&amp; $_POST[&#39;audio&#39;] != &#39;&#39;){ $file = $_POST[&#39;audio&#39;];     if($ext1==".m4a"){ $call="/usr/local/bin/ffmpeg -i ".$file." -ab 192k -f -acodec mp3";}
    $convert = (popen("start /b ".$call, "r")); pclose($convert);

    The problem is, it won't convert. The path to ffmpeg is correct.

    Now I may be way over my head with this one, but if there's a simple solution for this, I'd love to hear it.

    EDIT.

    With this :

    if(isset($_POST[&#39;audio&#39;]) &amp;&amp; $_POST[&#39;audio&#39;] != &#39;&#39;){
       $file = $_POST[&#39;audio&#39;];
                       $ext1 = substr($_POST[&#39;audio&#39;], -4); /*get the last 4 chars*/
                       $mp3 = echo &#39;mp3&#39;;
    if($ext1=".m4a"){
    "/usr/local/bin/ffmpeg -i \"". $file . "\" -ab 192k -y -f mp3 \"".ext1.$mp3."\"";
    }
    }

    I think I'm right on the money with conversion itself, but the form just loads infinitly when submitted. So I'm guessing the conversion is happening, but the form does not know when it's done. Any ideas on that ?

  • Discord bot stop playing music in random time of song

    25 janvier 2021, par Jusmejtr

    I have a discord to let me play a random song from the list.

    &#xA;

    How bot works :&#xA;Bot IS connected to firestore Cloud (firebase) where i have economy data from my server. Price for playing random song is 75 coins.

    &#xA;

    Everything worked as it should, but yesterday I used command, the bot started playing and after a while it stopped playing music and also no other commands worked, bot probably get freezed.

    &#xA;

    I have no errors in the console until after a minute it showed me this error.

    &#xA;

    https://pastebin.com/ay9gV75T

    &#xA;

    The bot is hosted on Heroku and I also added this buildpack to ffmpeg in the settings.

    &#xA;

    https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest

    &#xA;

    This is my code :

    &#xA;

    module.exports = {&#xA;    name: "buy-music",&#xA;    description: "buy a music",&#xA;&#xA;    async execute(message, config, db){&#xA;        const PREFIX = (config.prefix);&#xA;&#xA;        if(message.content === PREFIX &#x2B; "buy music"){&#xA;            const ytdl = require("ytdl-core");&#xA;            message.delete();&#xA;            let uzivatel = message.author.tag;&#xA;&#xA;            let voiceChannel = message.member.voice.channel;&#xA;            if(!voiceChannel) return message.reply("Mus&#xED;š byť vo voice roomke");&#xA;&#xA;            let cena = 75;&#xA;    &#xA;            db.collection(&#x27;economy&#x27;).doc(uzivatel).get().then(async (q) => {&#xA;                if(!q.exists) return message.reply("Nem&#xE1;š vytvoren&#xFD; &#xFA;čet");&#xA;                var hodnota = q.data().money;&#xA;                if(hodnota &lt; cena) return message.reply("Nem&#xE1;š dostatok financi&#xED;");&#xA;&#xA;                db.collection(&#x27;statusy&#x27;).doc(&#x27;music&#x27;).get().then(async (asaj) => {&#xA;                    let stav = asaj.data().stav;&#xA;                    if(stav == "off"){&#xA;                        db.collection(&#x27;statusy&#x27;).doc(&#x27;music&#x27;).update({&#xA;                            "stav": "on",&#xA;                            "autor": message.author.tag,&#xA;                        });&#xA;                        hodnota -= cena;&#xA;                        db.collection(&#x27;economy&#x27;).doc(uzivatel).update({&#xA;                            &#x27;money&#x27;: hodnota&#xA;                        });&#xA;                        function randomhraj(){&#xA;                            var pole = [&#xA;                     My YT links&#xA;&#xA;                            ]&#xA;                            let rnd = Math.floor(Math.random() * pole.length);&#xA;                            let output = pole[rnd];&#xA;                            return output;&#xA;                        }&#xA;        &#xA;                        try{&#xA;                            var pripojenie = await voiceChannel.join();&#xA;                            message.reply(`&#xDA;spešne si si k&#xFA;pil chuťovečku`);&#xA;                        }catch(error){&#xA;                            console.log(`Error pri pripajani do room (music join) ${error}`);&#xA;                        }&#xA;                        &#xA;                        const dispatcher = pripojenie.play(ytdl(randomhraj())).on("finish", async() => {&#xA;                            await voiceChannel.leave();&#xA;                            await db.collection(&#x27;statusy&#x27;).doc(&#x27;music&#x27;).update({&#xA;                                "stav": "off",&#xA;                                "autor": "nikto",&#xA;                            });&#xA;                        }).on("error", error => {&#xA;                            console.log(error)&#xA;                        })&#xA;                        dispatcher.setVolumeLogarithmic(5 / 5)&#xA;                    }else{&#xA;                        message.reply("Moment&#xE1;lne si hudbu k&#xFA;pil niekto in&#xFD; alebo ak si hudbu k&#xFA;pil a chceš ju zastaviť použi pr&#xED;kaz *stop");&#xA;                    }&#xA;                    &#xA;                });&#xA;            });&#xA;    &#xA;        }else if(message.content === PREFIX &#x2B; "stop"){&#xA;            message.delete();&#xA;            db.collection(&#x27;statusy&#x27;).doc(&#x27;music&#x27;).get().then((n) => {&#xA;                let kto = n.data().autor;&#xA;                let meno = message.author.tag;&#xA;                if(!message.member.voice.channel) return message.channel.send("Mus&#xED;š byť vo voice roomke pre stopnutie hudby");&#xA;                if(kto == meno){&#xA;                    message.member.voice.channel.leave();&#xA;                    message.channel.send("&#xDA;spešne odpojen&#xFD;");&#xA;                    db.collection(&#x27;statusy&#x27;).doc(&#x27;music&#x27;).update({&#xA;                        "stav": "off",&#xA;                        "autor": "nikto",&#xA;                    });&#xA;                }else{&#xA;                    message.reply("Zastaviť hudbu m&#xF4;že len ten kto si ju k&#xFA;pil");&#xA;                }&#xA;            });&#xA;        }&#xA;        &#xA;    }&#xA;}&#xA;

    &#xA;