Recherche avancée

Médias (0)

Mot : - Tags -/albums

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (40)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

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

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

Sur d’autres sites (4429)

  • Modify code so each snippets start from begin instead end

    13 décembre 2022, par Ohiowizard

    source : https://davidwalsh.name/video-preview#comment-515168
    
the part of code that trim videos into snippets :

    


     # Loop and generate video snippets
    mkdir $tempdir
    interval=$(($length/$desiredsnippets-$starttimeseconds))
    for i in $(seq 1 $desiredsnippets)
    do
        # Format the second marks into hh:mm:ss format
        start=$(($(($i*$interval))+$starttimeseconds))
        formattedstart=$(printf "%02d:%02d:%02d\n" $(($start/3600)) $(($start%3600/60)) $(($start%60)))
        echo 'Generating preview part ' $i $formattedstart
        # Generate the snippet at calculated time
        ffmpeg -i $sourcefile -vf scale=$dimensions -preset fast -qmin 1 -qmax 1 -ss $formattedstart -t $snippetlengthinseconds -threads $(nproc) $tempdir/$i.mp4
    done


    


    `

    


    Video length is 3600 (60mins)
    
Desired snippets = 30, that mean 2mins each
    
It always start at 0:02:00 to 0:04:00 -> and so on
    
but i want it start at 0:00:00 (1st snippet) -> 0:02:00 (2nd snippet) -> (this put in code because it said invalid code format)

    


      

    • I want to make it trim from start of each snippets instead end of each snippets.
    • 


    • This code trim video into multiple parts(snippets) that set by user, and then merged all snippets into one video.
    • 


    


  • modify code of ffmpeg [closed]

    12 juillet 2012, par toutou0091

    Possible Duplicate :
    ffmpeg code changes

    To install FFmpeg, I followed the instructions in this web site http://buildall.wordpress.com/2011/05/09/how-to-compile-and-install-ffmpeg-in-ubuntu-11-04/ and it works well. In the file "mpegvideo_enc.c" there is a variable called "qp". I added in this file in the istruction printf to display this varaible. I redid after : ". / configure" and "make" and it works as well. The Result of this compilation gives no executable file. I would like to know why the printf that I added in the code is not displayed ?

  • iterate through linex directory to apply same line of code

    25 juillet 2018, par J.D

    In my terminal (Linux), I have a directory of videos (001.mp4, 002.mp4 ... 300.mp4) that I want to split into frames using ffmpeg (ffmpeg -i 1.mp4 -vf fps=20 frame%04d.jpg -hide_banner). How can I apply this code to every video in the directory, specifically making the frames generated in a folder labeled after the video’s name (001.mp4 frames generated in a folder called 001). Running the code on a single video would generate the frames directly in that working directory. Note : the ffmpeg code must be changed to fit the filename each time.