Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (90)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (6789)

  • Including Youtube-dl in FFMPEG not working in Bash (OSX)

    14 juillet 2019, par user1029296

    I am trying to download 5 second samples for a list of youtube video. The traditional approach is to download the entire file with "youtube-dl" and then use "ffmpeg" to split it however you want it.

    I am trying to use the following method : https://github.com/ytdl-org/youtube-dl/issues/622#issuecomment-162337869

    It does work when I include the variables in the command, for example :

    ffmpeg -ss 0 -i $(youtube-dl -f best --get-url https://www.youtube.com/watch?v=ySVi-0RS5vI&t=5s) -t 10 -c:v copy -c:a copy title2.mp4

    However, I am having issues trying to automate the system. Specifically, I would like ffmpeg and youtube-dl to read a file and use the values. I created the file "youtube.txt" which includes the following codes :

    440.8,https://www.youtube.com/watch?v=0-4wOE_DNeA,661.2,881.6,0-4wOE_DNeA
    330,https://www.youtube.com/watch?v=0-AMWW6tHzw,495,660,0-AMWW6tHzw
    509.2,https://www.youtube.com/watch?v=0-Rmto2rgMw,763.8,1018.4,0-Rmto2rgMw
    427.6,https://www.youtube.com/watch?v=0-U53qm45cA,641.4,855.2,0-U53qm45cA
    320.4,https://www.youtube.com/watch?v=0-dja9Ys4Sg,480.6,640.8,0-dja9Ys4Sg
    343.6,https://www.youtube.com/watch?v=0-g_PulsqtM,515.4,687.2,0-g_PulsqtM
    415.6,https://www.youtube.com/watch?v=0-nniRyn7dU,623.4,831.2,0-nniRyn7dU
    431.2,https://www.youtube.com/watch?v=006BQU3BFxw,646.8,862.4,006BQU3BFxw

    I am using the following command :

    parallel -j 6 --colsep ',' ffmpeg -ss {1} -i $(youtube-dl -f best --get-url {2}) --t 5 -c:v copy -c:a copy {5} :::: youtube.txt

    However, I get the following errors :

    ERROR: '{2}' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:{2}" ) to search YouTube
    --t: No such file or directory

    Would you mind helping me ?

    Thanks !

  • Piping file to user after ffmpeg has finished

    9 août 2019, par Azrupt Clan

    Im making a youtube downloader and dont know how i can pipe the files to the user after FFMPEG has downloaded them and compressed the files

    app.get('/download', (req,res) => {
    var URL = req.query.URL;
    var stream = ytdl(URL);
    stream.on('info', (info) => {
    const readline = require('readline');
    const path   = require('path');
    const fs     = require('fs');
    const ffmpeg = require('fluent-ffmpeg');
    const audioOutput = path.resolve(__dirname,    info.title + 'sound.mp4')
    const mainOutput = path.resolve(__dirname,   info.title + '.mp4')
    console.log('downloading audio track');
    ytdl(URL, {
     filter: format => format.container === 'm4a' && !format.encoding
    }).on('error', console.error)
     .on('progress', (chunkLength, downloaded, total) => {
       const percent = downloaded / total;
       readline.cursorTo(process.stdout, 0);
       process.stdout.write(`${(percent * 100).toFixed(2)}% downloaded `);
       process.stdout.write(`(${(downloaded / 1024 / 1024).toFixed(2)}MB of ${(total / 1024 / 1024).toFixed(2)}MB)`);
     })


     .pipe(fs.createWriteStream(audioOutput))
     .on('finish', () => {
       console.log('\ndownloading video');
       ffmpeg()
         .input(ytdl(URL, { filter: format => {
           return format.container === 'mp4' && !format.audioEncoding; } }))
         .videoCodec('copy')
         .input(audioOutput)
         .audioCodec('copy')
         .save(mainOutput)
         .on('error', console.error)
         .on('progress', progress => {
           readline.cursorTo(process.stdout, 0);
           readline.clearLine(process.stdout, 1);
           process.stdout.write(progress.timemark);
         }).on('end', () => {
           fs.unlink(audioOutput, err => {
             if(err) console.error(err);
             else console.log('\nfinished downloading');
             res.header('Content-Disposition', 'attachment; filename=' + info.title + '.mp4');
           });
         });
     });
     })});

    Expected result File should be sent to the users downloads

  • Calling one CLU(command line utility) with argument from another CLU in cmd ( youtube-dl from ffmpeg with additional arguments)

    3 septembre 2019, par beastboy

    I am able to run youtube-dl using command prompt , I have already kept youtube-dl.exe in the ffmpeg main folder and the ffmpeg bin folder and also I have kept ffmpeg.exe in the youtube_dl folder,

    now I am trying to call ffmpeg.exe in command prompt from youtube-dl with some additional arguments in ffmpeg and vice versa with the below commands
    and getting the following erros.

    Command

    C:\ffmpeg>youtube-dl -f 160 https://www.youtube.com/watch?v=u3APNJYMrLo --hls-prefer-ffmpeg --external-downloader ffmpeg --external-downloader-args -ss 00:00:20 -to 00:00:30

    Command

    C:\youtube_dl>youtube-dl -f 160 https://www.youtube.com/watch?v=u3APNJYMrLo --hls-prefer-ffmpeg --external-downloader ffmpeg --external-downloader-args -ss 00:00:20 -to 00:00:30

    Error

    Usage: youtube-dl [OPTIONS] URL [URL...]

    youtube-dl: error: using output template conflicts with using title, video ID or auto number

    and

    Command

    ffmpeg -ss 00:00:20 -to 00:00:30 -i "$(youtube-dl -f 160 -g https://www.youtube.com/watch?v=u3APNJYMrLo)" -c copy youtube.mp4

    Error

    $(youtube-dl: No such file or directory

    Command

    ffmpeg -ss 00:00:20 -to 00:00:30 -i $(youtube-dl -f 160 -g https://www.youtube.com/watch?v=u3APNJYMrLo) -c copy youtube.mp4

    Error

    $(youtube-dl -f 160 -g https://www.youtube.com/watch?v=u3APNJYMrLo): Invalid argument

    as per my understanding and the documentation pages of youtube-dl and ffmpeg the commands should work and should download the videos in the specified resolution but its not working.
    Can someone guide me on this , what is wrong with the code and how to rectify it if any.