Recherche avancée

Médias (91)

Autres articles (73)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (10506)

  • ffmpeg doesn't show download progress [closed]

    10 mars 2013, par Siddharth Ramakrishnan

    I run a mp3 site which converts video to mp3 from youtube and i have working script which works well on my another server. Recently changed my server and found that it is not showing download progress when downloading song from youtube instead it shows white page untill in downloads and then display the conversion progress. Confirmed with my site coder and he said that it is not php error. Error with ur server.

    You can check it here http://mp3world.mobi/details.php?code=jVl5s1e0Oo4&name=Chester+See+-+God+Damn+You%27re+Beautiful+%28Official+Music+Video%29

    I am unable to figure it out. Can anyone help me in this.

  • electron app fluent-ffmpeg " Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height"

    27 juillet 2020, par Martin

    I am trying to run an ffmpeg command in my electron app. I have created the function ffmpegTest() based off instructions for setting up ffmpeg here :

    


    https://alexandercleasby.dev/blog/use-ffmpeg-electron

    


    and the example query for ffmpeg-fluent here :

    


    https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/master/examples/image2video.js

    


    function ffmpegTest(){
    console.log('ffmpeg-test')
    //require the ffmpeg package so we can use ffmpeg using JS
    const ffmpeg = require('fluent-ffmpeg');
    //Get the paths to the packaged versions of the binaries we want to use
    const ffmpegPath = require('ffmpeg-static').replace(
        'app.asar',
        'app.asar.unpacked'
    );
    const ffprobePath = require('ffprobe-static').path.replace(
        'app.asar',
        'app.asar.unpacked'
    );
    //tell the ffmpeg package where it can find the needed binaries.
    ffmpeg.setFfmpegPath(ffmpegPath);
    ffmpeg.setFfprobePath(ffprobePath);
    
    var imgPath = "C:\\Users\\marti\\Documents\\martinradio\\uploads\\israel song festival 1979\\front.jpg"
    var outputPath = "C:\\Users\\marti\\Documents\\martinradio\\uploads\\israel song festival 1979\\output.m4v"

    // make sure you set the correct path to your video file
    var proc = ffmpeg(imgPath)
    // loop for 5 seconds
    .loop(5)
    // using 25 fps
    .fps(25)
    // setup event handlers
    .on('end', function() {
    console.log('file has been converted succesfully');
    })
    .on('error', function(err) {
    console.log('an error happened: ' + err.message);
    })
    // save to file
    .save(outputPath);

    console.log("end of ffmpeg-test")
}


    


    it is trying to convert an image to a video, my filepaths are accurate, but when I run this function, I get this output in console :

    


    ffmpeg-test
index.js:137 end of ffmpeg-test
index.js:132 an error happened: ffmpeg exited with code 1: Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!


    


    After the error prints out, I can see my output.m4v file inside my output folder, but it is 0KB in size and wont open. Is there some way I can specify my bit_rate / rate / width / height in my fluent-ffmpeg command so I can run this simple ffmpeg command ?

    


    thanks

    


  • ffmpeg cut video and put audio in the middle of it

    20 septembre 2020, par deathangel908

    I have

    


      

    • a video file of 60s duration.
    • 


    • an audio file of 35s duration
    • 


    


    I want to cut a video from 5th second to 50th and put an audio file in the middle that starts playing at 5th second of the output. So first 5 and last 5 seconds output video is silent. I also don't want to reencode the video so compilation would be fast and quality would stay exactly the same.

    


    enter image description here

    


    I'm trying the following command

    


    ffmpeg -y -i DJI_0325.mp4 -ss 00:00:40.5 -i song.mp3 -c:v copy -c:a copy out.mp4

    


    but the audio starts playing in the middle.
I also tried different combination of the things below, but no luck :(

    


      

    • -async 1 -map 0:v:0
    • 


    • -c:v copy -c:a copy
    • 


    • different sets of -ss and -to
    •