Recherche avancée

Médias (91)

Autres articles (105)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

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

  • ffmpeg perspective filter animation error

    17 mars 2021, par eeun

    I'm trying to create a pseudo-3d pan effect in ffmpeg using the perspective filter.

    


    Here is a sample for the starting point...

    


    ffmpeg -y -filter-complex "color=black:s=1600x900,trim=0:5,drawgrid=width=100:height=100:thickness=2:color=white,perspective=x0=200:y0=200:x1=1600:y1=0:x2=200:y2=700:x3=1600:y3=900[skew]" -an -map [skew] "skew-start.mp4"


    


    And here is a sample for the end point...

    


    ffmpeg -y -filter-complex "color=black:s=1600x900,trim=0:5,drawgrid=width=100:height=100:thickness=2:color=white,perspective=x0=0:y0=0:x1=1600:y1=0:x2=0:y2=900:x3=1600:y3=900[skew]" -an -map [skew] "skew-end.mp4"


    


    So far so good. Adding the animation would give this...

    


    ffmpeg -y -filter-complex "color=black:s=1600x900,trim=0:5,drawgrid=width=100:height=100:thickness=2:color=white,perspective=eval=frame:x0='200-(200*t/5)':y0='200-(200*t/5)':x1=1600:y1=0:x2='200-(200*t/5)':y2='700+(200*t/5)':x3=1600:y3=900[skew]" -an -map [skew] skew.mp4


    


    This is where the problem occurs. I get an error saying [Eval @ 000000f36ebfebf0] Undefined constant or missing '(' in 't/5)' Error while filtering: Invalid argument

    


    The perspective docs say it should work with an eval=frame option. Anyone got any ideas ? Does this look like a bug in ffmpeg ? I'm using the latest version, 4.3.2.

    


  • ffmpeg : audio sync issue with video (too many approaches ?)

    31 mai 2019, par Serg

    I have input video which is out of sync. Either audio is ahead either video is ahead.

    How can I make them sync correctly and keeping the length of video(offset is known)

    There are so many ways in the internet with different approaches... so I’m confusing which one is better ?

    -ss time1 -i input.mp4 -t time2

    or

    -i input.mp4 -ss 2-t time2

    same with

    -ss -to

    -itsoffset

    adelay

    should I also use -shortest ?

    Do I need to separate audio and video before sync ?

    ffmpeg -i input-video.mp4 -vn -acodec copy output-audio.aac
    ffmpeg -i input-video.mp4 -vcodec copy -an output-video.mp4

    are the above approaches faster then trim ?

    and the last question : is it possible to have them together - sync with above command and then trim ?

    Thanks in advance !

  • Write EPIPE error when using ffmpeg with copy option with ytdl-core

    20 juillet 2022, par squeaky2137

    Using the following code i get a write EPIPE error. This is caused by the copy option as when i remove that option it works just takes forever. Any idea what would be the fix to this ?

    


    const audio = ytdl(videoURL, { quality: 'highestaudio', filter: 'audioonly', highWaterMark: 1 << 25 })
            .on('progress', (_, downloaded, total) => {
                tracker.audio = { downloaded, total };
            });
const video = ytdl(videoURL, { quality: 'highestvideo' })
  .on('progress', (_, downloaded, total) => {
      tracker.video = { downloaded, total };
   });

const ffmpegProcess = cp.spawn(ffmpeg, [
            '-loglevel', '8', '-hide_banner',
            '-progress', 'pipe:3',
            '-i', 'pipe:4',
            '-i', 'pipe:5',
            '-map', '0:a',
            '-map', '1:v',
            '-c:v', 'copy',
            'out.webm',
        ], {
            windowsHide: true,
            stdio: [
                'inherit', 'inherit', 'inherit',
                'pipe', 'pipe', 'pipe',
            ],
        });
        ffmpegProcess.on('close', () => {
            console.log('done');
        });

  
        ffmpegProcess.stdio[3].on('data', chunk => {
            if (!progressbarHandle) progressbarHandle = setInterval(showProgress, progressbarInterval);
            const lines = chunk.toString().trim().split('\n');
            const args = {};
            for (const l of lines) {
                const [key, value] = l.split('=');
                args[key.trim()] = value.trim();
            }
            tracker.merged = args;
        });
        audio.pipe(ffmpegProcess.stdio[4]);
        video.pipe(ffmpegProcess.stdio[5]);