Recherche avancée

Médias (91)

Autres articles (71)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (8574)

  • How to split video into parts audio/video/text in one command ?

    22 novembre 2020, par lockwise

    I have one video file .mkv.
Inside this file, there is a video track, 3 audio tracks, 2 subtitles, a poster file, and a backdrop file.
Does ffmpeg know how to split .mkv into separate parts, video / 3 audio / 2 subtitles ?

    


    ~# ffmpeg -hide_banner -i input.mkv
Input #0, matroska,webm, from 'input.mkv':
  Duration: 01:37:03.90, start: 0.000000, bitrate: 3605 kb/s
    Metadata:
      title           : 01:33:51.582
    Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1024x576 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      title           : Video
    Stream #0:1(rus): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : MVO «West Video»
    Stream #0:2(spa): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : MVO Spain-1
    Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title           : MVO TRK
    Stream #0:4(eng): Subtitle: subrip (default)
    Metadata:
      title           : RUS
    Stream #0:5(eng): Subtitle: subrip
    Metadata:
      title           : Eng
    Stream #0:6(und): Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 780x1170 [SAR 1:1 DAR 2:3], 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : poster.jpg
      mimetype        : image/jpeg
      title           : poster
      LANGUAGE        : und
    Stream #0:7(und): Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 1280x719 [SAR 1:1 DAR 1280:719], 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : backdrop.jpg
      mimetype        : image/jpeg
      title           : backdrop
      LANGUAGE        : und


    


    I need :

    


      

    • Video

        

      • input0.mp4
      • 


      


    • 


    • Audio

        

      • input0.m4a
      • 


      • input1.m4a
      • 


      • input2.m4a
      • 


      


    • 


    • Subtitle

        

      • input0.vtt
      • 


      • input1.vtt
      • 


      


    • 


    


    These commands do the splitting, but I need to know exactly how many audio files and how many subtitle files are in the mkv.

    


    ffmpeg -y -i input.mkv \
  -map 0:v:0 -c:v libx264 output0.mp4


    


    ffmpeg -y -i input.mkv \
  -map 0:a:0 -c:a aac output0.m4a \
  -map 0:a:1 -c:a aac output1.m4a \
  -map 0:a:2 -c:a aac output2.m4a


    


    ffmpeg -y -i input.mkv \
  -map 0:s:0 output0.vtt \
  -map 0:s:1 output1.vtt


    


    Is it possible to make such divisions without knowing the file number 0:a:2, 0:s:1 ?

    


  • 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 ?

    


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