Recherche avancée

Médias (91)

Autres articles (32)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (4529)

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

    


  • YouTube_dl doesn't find ffmpeg

    10 octobre 2019, par user702846

    I would like to download a set of youtube file as audio, mp3.

    import youtube_dl

    ydl_opts = {
       'format': 'bestaudio/best',
       'postprocessors': [{
           'key': 'FFmpegExtractAudio',
           'preferredcodec': 'mp3',
           'preferredquality': '192',
       }],
    }
    with youtube_dl.YoutubeDL(ydl_opts) as ydl:
       ydl.download(['https://www.youtube.com/watch?v=cmNEDz7YZSw'])

    It successfully download the file as m4a - however complains about ffmpeg installation.

    ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.

    I do have ffmpeg installed and located at /usr/local/bin/ffmpeg and also have added to my PATH using

    os.environ["PATH"] += '/usr/local/bin/ffmpeg'

    but still the error is there. I am using MacOS Mojave and my ffmpeg specification are as following,

    fmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers
     built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
     configuration: --disable-encoder=vorbis --enable-libvorbis --enable-libmp3lame --disable-x86asm
  • How to add filters to ffmpeg, mp

    20 novembre 2014, par Coderzelf

    I tried to use ffmpeg filter ’mp’ but it reports there is no such filter.

    what I tried :

    'ffmpeg -i input.avi -vf mp=ep2=xxx output.avi'

    And I build ffmpeg from this link :

    http://ffmpeg.org/download.html#LinuxBuilds