Recherche avancée

Médias (91)

Autres articles (66)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • XMP PHP

    13 mai 2011, par

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

Sur d’autres sites (6223)

  • Two pass high quality theora/vorbis ffmpeg encoding

    25 septembre 2017, par Lea Chescotta

    I want to achieve the same video encoding that I had with ffmpeg2theora with standard ffmpeg, this is because i need the flexibility ffmpeg has to make the container mkv, with subtitles other than srt.

    In ffmpeg2theora i have the following command that output a very high quality and very small filesize file :

    $ ffmpeg2theora --videobitrate 2000 --two-pass --first-pass firstpass --speedlevel 0 --width 640 --height 360 --resize-method lanczos --noaudio input.mkv
    $ ffmpeg2theora --videobitrate 2000 --two-pass --second-pass firstpass --speedlevel 0 --width 640 --height 360 --resize-method lanczos --noaudio input.mkv --output output.ogv

    Being the most interesting options here i think (From ffmpeg2theora manual page) :

    --two-pass
    --first-pass <filename>
    --second-pass <filename>
    --speedlevel
       encoding is faster with higher values the cost is quality and bandwidth (default 1)
    </filename></filename>

    But i can only found a simple way to encode theora/vorbis in standard ffmpeg (from : https://trac.ffmpeg.org/wiki/TheoraVorbisEncodingGuide) :

    ffmpeg -i input.mkv -codec:v libtheora -qscale:v 7 -codec:a libvorbis -qscale:a 5 output.ogv

    That produces a very bad quality output even in the best quality setting (10)

    How can I do a 2 pass ’high quality’/’not so big filesize’ theora/vorbis in plain ffmpeg ?

  • FFMPEG Seeking with concat demuxer causes video & audio to be out of sync

    20 février 2023, par Garuuk

    I have a very simple use case that's driving me bananas.

    &#xA;

    My problem and question :

    &#xA;

    I'm using ffmpeg version 5.1.2 on a MacOS and i'm using ffmpeg seeking and concat demuxer to cut many 1 minute videos into 15 seconds chopped up over 12 clips where every clip is just 2 seconds from the same video (kind of like a mini teasers for the video). I would really like to not have to re-encode to make the video processing as fast as possible.

    &#xA;

    First, I take each 1 minute video and cut it up into 12 clips (I do all this programmatically in python fwiw)

    &#xA;

    ffmpeg -ss 0 -i input.mp4 -t 2 -c copy -y cut_1.mp4&#xA;ffmpeg -ss 4 -i input.mp4 -t 2 -c copy -y cut_2.mp4&#xA;ffmpeg -ss 8 -i input.mp4 -t 2 -c copy -y cut_3.mp4&#xA;...&#xA;...&#xA;

    &#xA;

    I then write all the output file names to my concat_manifest.txt

    &#xA;

    file cut_1.mp4&#xA;file cut_2.mp4&#xA;...&#xA;...&#xA;

    &#xA;

    Then I run my concat command :

    &#xA;

    ffmpeg -f concat -i concat_manifest.txt -c copy -y concat_video.mp4&#xA;

    &#xA;

    This works really fast but the audio and video at the stitch point get out of sync and sometimes the video just chokes & lags. It's mostly not a smooth experience.

    &#xA;

    What I have tried :

    &#xA;

      &#xA;
    1. using the concat protocol with intermediate profiles : ffmpeg.org/wiki/Concatenate#demuxer
    2. &#xA;

    3. Putting the -ss when I seek after the -i. This makes everything worse
    4. &#xA;

    5. Playing around with different -ss values. This has some noticeable affects but it's not obvious why yet.
    6. &#xA;

    7. I've also read from the ffmpeg resource regarding seeking and copying :
    8. &#xA;

    &#xA;

    Which leads me to believe that maybe because ffmpeg is using timestamps instead of frames, seeking isn't accurate using -ss when using the concat demuxer

    &#xA;

    Is there a way to get concat demuxer cutting and concatenating the video where the audio is somewhat in sync with the video ?

    &#xA;

    Thanks

    &#xA;

    EDIT : I found an answer and i'll be posting the solution in the coming few days.

    &#xA;

  • Revision 51752 : Noisette d’affichage du bouton "j’aime" de FaceBook

    23 septembre 2011, par yffic@… — Log

    Noisette d’affichage du bouton "j’aime" de FaceBook ?