Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (48)

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

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Les images

    15 mai 2013

Sur d’autres sites (7179)

  • Revision 87599 : $GLOBALS[’visiteur_session’] au lieu de global $auteur_session ; et ...

    22 février 2015, par kent1@… — Log

    $GLOBALSvisiteur_session ? au lieu de global $auteur_session ; et $auteur_session
    Indentation / Formatage

  • I'm running a process in Java and am getting stuck when I wait for it to finish

    31 juillet 2020, par nottAbott

    I have a Java program that is supposed to make copies of segments of a video and then stitch them back together, using ffmpeg. My "snip" method, the one that makes the segment files, has a problem, it gets stuck when I call "process.waitfor()". When I take it out, the videos load partly, but cannot be accessed until I close the program. When I try to delete them, while the program is running, it says that they cannot be deleted because they are in use. Could anyone lead me in the right direction ? Here is the method :

    


    //snips out all the clips from the main video
public void snip() throws IOException, InterruptedException {
    
    for(int i = 0; i < snippets.size(); i++) {
        //Future reference: https://stackoverflow.com/questions/9885643/ffmpeg-executed-from-javas-processbuilder-does-not-return-under-windows-7/9885717#9885717
        //Example: ffmpeg -i 20sec.mp4 -ss 0:0:1 -to 0:0:5 -c copy foobar.mp4
        String newFile = "foobar" + String.valueOf(i) + ".mp4";
        ProcessBuilder processBuilder = new ProcessBuilder("ffmpeg", "-i", videoName, "-ss",
                snippets.get(i).getStartTime(), "-to", snippets.get(i).getEndTime(), newFile);
        
        //I tried this first and then added in the process/process.waitfor below
        //processBuilder.start();
        
        Process process = processBuilder.start();
        process.waitFor();
        
        System.out.println("Snip " + i + "\n");
        
        //add to the formatted list of files to be concat later
        if(i == snippets.size() - 1) {
            stitchFiles += newFile + "\"";
        }
        
        else {
            stitchFiles += newFile + "|";
        }
    }
}


    


  • ffmpeg for merging vfr videos

    20 avril 2021, par Rupsha Chaudhuri

    I'm trying to generate a timelapse with images taken roughly at 10 Hz and for about an hour. Maintaining the relative timestamps is important. So I've split the images into roughly 1 min chunks and I generated 60 small videos in parallel (I've handled the duration for the boundary images). After that I stitch the videos. However when I look at the final contiguous video I realize that at the chunk boundaries after stitching the video either has an extra frame or falls behind the images.. the timestamps don't line up.

    


    The smaller videos are variable frame rate, so I convert them to mpeg-ts before applying the concat protocol to merge them.

    


    

    

    Generate small video:
ffmpeg -f concat -safe 0 -i input.txt -vsync vfr -pix_fmt yuv420p output.mp4

Convert to mpeg-ts
ffmpeg -i output.mp4 -c copy -bsf h264_mp4toannexb output.ts

Merge multiple small mpeg-ts videos
ffmpeg -i input.txt -c copy final_output.mp4