Recherche avancée

Médias (91)

Autres articles (110)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

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

Sur d’autres sites (8979)

  • FFmpeg Question : Proper Format to use when no transition is being used ?

    23 juin 2021, par HHH-Messenger

    I can NOT fine any examples so can someone point me in the right direction please.
I have many images with to short duration time to add transitions, and would like to know what the proper syntax and format is, for a text file ?
Would only the images with transitions be indexed, or all of them ?

    


    Also if my files are located in the directory C :\temp\ what does the text file look like below ?

    


    $ ffmpeg \
    
-loop 1 -t 1.4 -i 001.jpg \ (no fade in or out)
    
-loop 1 -t 1.65 -i 002.jpg \ (no fade in or out)
    
-loop 1 -t 1.9 -i 003.jpg \ (no fade in or out)
    
-loop 1 -t 2.6 -i 004.jpg \ (with fade out .500)
    
-loop 1 -t 2.35 -i 005.jpg \ (with fade in .500)
    
-loop 1 -t 1.4 -i 006.jpg \ (no fade in or out)
    
-filter_complex \
    
"[0:v]fade=t=out:st=0:d=0[v0] ; \
    
[1:v]fade=t=in:st=0:d=0,fade=t=out:st=0:d=0[v1] ; \
    
[2:v]fade=t=in:st=0:d=0,fade=t=out:st=0:d=0[v2] ; \
    
[3:v]fade=t=in:st=0:d=0,fade=t=out:st=2.5:d=.5[v3] ; \
    
[4:v]fade=t=in:st=1.85:d=.5,fade=t=out:st=0:d=0[v4] ; \
    
[5:v]fade=t=in:st=0:d=0,fade=t=out:st=0:d=0[v5] ; \
    
[v0][v1][v2][v3][v4][v5]concat=n=6:v=1:a=0,format=yuv420p[v]" -map "[v]" -map 6:a -shortest output7.mp4

    


    Here is a common example : ALL IMAGES HAVE EFFECTS ADDED, PLEASE GIVE AN EXAMPLE WITH SOME HAVING EFFECTS AND SOME NOT HAVING EFFECTS ADDED.

    


    ffmpeg \
    
-t 5 -i 1.jpg
    
-t 5 -i 2.jpg
    
-t 5 -i 3.jpg
    
-filter_complex
    
"[0:v]zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-.0015))':d=125,fade=t=out:st=4:d=1[v0] ;
    
[1:v]zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-.0015))':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v1] ;
    
[2:v]zoompan=z='if(lte(zoom,1.0),1.5,max(1.001,zoom-.0015))':d=125,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v2] ;
    
[v0][v1][v2][concat=n=4:v=1:a=0,format=yuv420p[v]" -map "[v]" -s "800x450" -t 40 ./out_fade.mp4

    


  • How can I tell subprocess to answer "y" to a commandline question ?

    13 mai 2022, par Faindirnomainzein

    I'm automating an ffmpeg command but when the file exists already, it asks me if I have to "Overwrite [y/N]" and it stalls the entire script until I have to enter "y" myself in the console. How can I automate that ?

    


    for file in all_files_in_dir:
    output = file.split('.')[0]
    subprocess.call(f'ffmpeg -hide_banner -i {file} -map 0:s:1 {output}.srt')


    


    I have to enter "y" myself (as seen in green), then press enter everytime a file is already found. The answer will be "y", so I can hardcode the answer "y" if need be.

    


    enter image description here

    


  • Big question of Target size, or video bitrate must be specified when using two-pass

    14 juillet 2022, par Rojojun

    I tried to solve the error which is Target size, or video bitrate must be specified when using two-pass.

    


    But I couldn't find how to solve it and how to find path of video exactly I attached my code below this post

    


    Please give me some tips of solving the problem !

    


    @Service
public class ThumbnailService {

    public HashMap exportThumbnail(File file) throws Exception {
        // file is from controller and form-data
        //String inputPath = "Users/hojunna/Download/my/";
        //String outputPath = "/usr/local/video/thumbnail/";

        String ffmpegBasePath = "/opt/homebrew/bin/";
        FFmpeg ffmpeg = new FFmpeg(ffmpegBasePath+"ffmpeg");        
        FFprobe ffprobe = new FFprobe(ffmpegBasePath+"ffprobe");    
        
        FFmpegBuilder builder = new FFmpegBuilder()
                .setInput("/Users/hojunna/Desktop/" + file)                         
                //.overrideOutputFiles(true)                    
                //.addExtraArgs("-ss", "00:00:01")          
                .addOutput("/Users/hojunna/Desktop/test.jpg")       
                .setFrames(1)
                .setVideoFilter("select='gte(n\\,10)',scale=200:-1")
                .done();

        FFmpegExecutor executor = new FFmpegExecutor(ffmpeg, ffprobe);      
        executor.createJob(builder).run();                                  
        executor.createTwoPassJob(builder).run();                           

        HashMap resultMap = new HashMap();
        return resultMap;
    }
}