Advanced search

Medias (91)

Other articles (60)

  • Le profil des utilisateurs

    12 April 2011, by

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 November 2010, by

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 May 2011, by

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

On other websites (4039)

  • Modify code so each snippets start from begin instead end

    13 December 2022, by 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 July 2012, by 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 July 2018, by 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.