Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (81)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (13273)

  • Video player scroll doesn't work after ffmpeg audio and video merge (NodeJS)

    1er novembre 2022, par Pietro Leto

    I made youtube downloader to download video from youtube using nodejs library ytdl-core. If I wanted to download video with best quality I had to download them without sound. So, in my script, I download audio and video separately and I merge them into an mp4 file.
What's the problem ? Video player scroll doesn't work. I can see the video but I can't going back or move on, and I can't see video duration.

    


    const express = require("express");
const cors = require("cors");
const app = express();
const ffmpeg = require('ffmpeg-static');
const cp = require('child_process');
const ytdl = require("ytdl-core");

app.use(cors());

app.listen(3000, () => {
    console.log("Server is working at port 3000 !!");
});

app.get('/download', (req,res) => {
    var url = req.query.URL;
    var formato = req.query.FORMAT;

    try {
        let vid = ytdl(url,{filter:'videoonly', quality:'highestvideo'})
        let aud = ytdl(url, {filter: 'audioonly', quality:'highestaudio'});

        ytdl.getInfo(url).then(info => {
            titolo = info.videoDetails.title;

            res.header("Content-Disposition", 'attachment;  filename=' + titolo + '.mp4');

            const ffmpegProcess = cp.spawn(ffmpeg, [
                '-i', `pipe:3`,
                '-i', `pipe:4`,
                '-map','0:v:0',
                '-map','1:a:0',
                '-c:v', 'copy',
                '-c:a', 'aac',
                '-crf','27',
                '-preset','veryfast',
                '-movflags','frag_keyframe+empty_moov',
                '-f','mp4',
                '-loglevel','error',
                '-'
            ], {
                stdio: [
                'pipe', 'pipe', 'pipe', 'pipe', 'pipe',
                ],
            });
              
            aud.pipe(ffmpegProcess.stdio[4]);
            vid.pipe(ffmpegProcess.stdio[3]);
            ffmpegProcess.stdio[1].pipe(res);
        });
    }
    catch(err) {
        console.log("Error with URL: " + url + "\nERROR: " + err + "\n\n");
    }
});


    


    I have not found alternatives to do this. I need a working script to download youtube videos with good quality.

    


  • ffmpeg : Generate empty audio and video (working for video)

    17 septembre 2021, par David Ferris

    I'm trying to generate a black video with FFMPEG. I have accomplished this with the following :

    


    ffmpeg -t 5 -f lavfi -i color=c=black:s=1920x1080 -c:v libx264 -tune stillimage -pix_fmt yuv420p out.mp4


    


    Unfortunately this video doesn't have any audio tracks. Following this, I have tried to insert -i anullsrc=channel_layout=stereo:sample_rate=44100 :

    


    ffmpeg -t 5 -i anullsrc=channel_layout=stereo:sample_rate=44100 -f lavfi -i color=c=black:s=1920x1080 -c:v libx264 -tune stillimage -pix_fmt yuv420p out.mp4


    


    Unfortunately this gives the error :

    


    


    anullsrc=channel_layout=stereo:sample_rate=44100 : No such file or
directory

    


    


    How can I modify my initial script to generate a video with empty audio ?

    


  • about c # ffmpeg

    12 mai 2012, par 정재훈
    private void btnStart_Click(object sender, EventArgs e)
    {
    this.btnStart.Enabled = false;
    this.progressBar1.Value = 0;

    string srcFile = Path.Combine(this.txtSource.Text, this.lstFiles.SelectedItem.ToString());
    MessageBox.Show(srcFile);
    string dstFile = Path.Combine(this.txtOutput.Text,
    Path.GetFileNameWithoutExtension(this.lstFiles.SelectedItem.ToString())) + "." + this.cboOutputFormat.SelectedItem;
    MessageBox.Show(dstFile);
    string imafile = Path.Combine("movie= "+this.openFileDialog1.SafeFileName);
    MessageBox.Show(imafile);


    string videoRateOption = string.Empty;
    if (this.cboVideoRate.SelectedIndex != 0)
    {
    videoRateOption = " -b:v " + this.cboVideoRate.SelectedItem.ToString().Split(' ')[0] + "k ";
    MessageBox.Show(videoRateOption);
    }

    string videoSizeOption = string.Empty;
    if (this.lstVideoSize.SelectedIndex != 0)
    {
    videoSizeOption = " -s " + this.lstVideoSize.SelectedItem.ToString().Split(' ')[0] + " ";
    }


    this.Text = "Converting...";
    ThreadPool.QueueUserWorkItem((object state) =>
    {
    ConvertFile(srcFile, imafile, dstFile, videoRateOption, videoSizeOption);
    });
    }


    string strFFMPEGOut;
    ProcessStartInfo psiProcInfo = new ProcessStartInfo();
    TimeSpan estimatedTime = TimeSpan.MaxValue;

    StreamReader srFFMPEG;

    string ste = ""movie=watermarklogo.png [wm];[in][wm] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]"";
    string strFFMPEGCmd = " -i "" + srcFile + "" -ar 44100 " + videoRateOption + videoSizeOption +"-vf"+ ste + "-y ""
    + dstFile + """;

    psiProcInfo.FileName = Application.StartupPath + ((IntPtr.Size == 8) ? "\x64" : "\x86") + "\ffmpeg.exe";
    psiProcInfo.Arguments = strFFMPEGCmd;
    psiProcInfo.UseShellExecute = false;
    psiProcInfo.WindowStyle = ProcessWindowStyle.Hidden;
    psiProcInfo.UseShellExecute = false;
    psiProcInfo.RedirectStandardError = true;
    psiProcInfo.ErrorDialog = true;
    psiProcInfo.RedirectStandardOutput = true;
    psiProcInfo.CreateNoWindow = true;

    prcFFMPEG.StartInfo = psiProcInfo;

    prcFFMPEG.Start();

    The current study tries to insert a logo to your project but I like and fix error-start button pressed and the Bobcats have a reaction whenNot sure I understand this : this movie = watermarklogo.png. Do not write down the path to the logo file directly simply put this path in c :\graphics\watermarklogo.png ?