Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (2401)

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

    


    My problem and question :

    


    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.

    


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

    


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


    


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

    


    file cut_1.mp4
file cut_2.mp4
...
...


    


    Then I run my concat command :

    


    ffmpeg -f concat -i concat_manifest.txt -c copy -y concat_video.mp4


    


    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.

    


    What I have tried :

    


      

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


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


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


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


    


    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

    


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

    


    Thanks

    


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

    


  • FFmpeg, how to skip late input ?

    14 novembre 2017, par user3343357

    I’m running ffmpeg to display incoming stream on a Decklink BlackMagic card with the following command line :

    ffmpeg -y -f ourFmt -probesize 32 -i - -f decklink -preset ultrafast
      -pix_fmt uyvy422 -s 1920x1080 -r 30 -af volume=0.1 -max_delay 10000
        DeckLink Mini Monitor

    Basically I get the video over the internet by UDP and stream it to ffmpeg stdin. Both audio and video streams have pts and dts and are fully in sync, if the connection is good there is no problems.

    However if there are issues with the connection i start getting errors, sometimes the video delay grows significantly, and audio stops working.
    The errors i get are :

    ffmpeg : [decklink @ 0x26cc600] There are not enough buffered video
    frames. Video may misbehave ! ffmpeg : [decklink @ 0x26cc600] There’s no
    buffered audio. Audio will misbehave ! ffmpeg : Last message
    repeated 4 times ffmpeg : [decklink @ 0x26cc600] There are not enough
    buffered video frames. Video may misbehave ! ffmpeg : [decklink @
    0x26cc600] There’s no buffered audio. Audio will misbehave ! ffmpeg :
    Last message repeated 3 times ffmpeg : frame= 5204 fps= 30 q=-0.0
    size=N/A time=00:02:53.76 bitrate=N/A dup=385 drop=5 speed=0.993x
    ffmpeg : [decklink @ 0x26cc600] There’s no buffered audio. Audio will
    misbehave ! ffmpeg : Last message repeated 18 times ffmpeg :
    [decklink @ 0x26cc600] There are not enough buffered video frames.
    Video may misbehave ! ffmpeg : [decklink @ 0x26cc600] There’s no
    buffered audio. Audio will misbehave !

    The problem is when the connection is back to normal, the video keeps misbehaving until I restart the stream. What I want to do is for FFmpeg to skip to the content of the last second and play synchronized video from there, drop all the late data in between, is it possible ?

  • avdevice/decklink : 10 Bit support for Decklink input device

    18 janvier 2015, par Georg Lippitsch
    avdevice/decklink : 10 Bit support for Decklink input device
    

    Example to capture video clip at 1080i50 10 bit :
    ffmpeg -bm_v210 1 -f decklink -i ’UltraStudio Mini Recorder@11’ -acodec copy -vcodec copy output.avi

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavdevice/decklink_common_c.h
    • [DH] libavdevice/decklink_dec.cpp
    • [DH] libavdevice/decklink_dec_c.c