Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (68)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

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

Sur d’autres sites (7191)

  • How to solve the problem of low performance of complex video generation using ffmpeg ?

    21 novembre 2019, par Zedd

    I use ffmpeg to generate a complex video.

    This video consists of the following materials :

    1. Original video

    2. Video dub

    3. Background music

    4. Subtitle

    My code logic is as follows

    1. Combine ’Original video’ and ’Video dub’ into ’Video A’

    2. Subtitle ’Video A’ as ’Video B’

    3. Add ’Background music’ for ’Video B’ as ’Video C’

    The ’Video C’ is the video I want.

    My Code

    // Step1:
    ffmpeg -i VideoDub.mp3 -i OriginalVideo.mp4 VideoA.mp4
    // Step2:
    ffmpeg -i VideoA.mp4 -vf subtitles=Subtitle.srt -y VideoB.mp4
    // Step3:
    ffmpeg -i VideoB.mp4 -i BackgroundMusic.mp3 -filter_complex "[1:a]aloop=loop=-1:size=2e+09[out];[out][0:a]amix" -ss 0 -t 100 -y VideoC.mp4

    Design defect

    • I think my code is very redundant
    • poor performance
    • There are many times of encoding
    • It takes too long to generate such a video
    • The CPU usage has reached 100%.

    My Question

    How to solve the above problem?

  • Revision 5437474c54 : Merge "Revert "Layer based rate control for CBR mode.""

    3 février 2014, par Marco Paniconi

    Merge "Revert "Layer based rate control for CBR mode.""

  • Extract frames from video with ffmpeg - header problem ?

    19 juillet 2019, par Jehol

    I want to convert .AVI files coming from a camera-trap to individuals frames, ideally using ffmpeg. Up to now I am not succeeding.

    The most simple thing I tried, to try to locate the problem, is this (I want all frames and my test file is test.avi) :

    ffmpeg -i test.avi output_%04d.png

    It fails with the following console message :

    [avi @ 0x559fb596f8c0] unknown stream type 73647578
    [avi @ 0x559fb596f8c0] Something went wrong during header parsing, tag [0][0]id has size 338702712, I will ignore it and try to continue anyway.
    [mjpeg @ 0x559fb59709e0] No JPEG data found in image
       Last message repeated 100 times
    [avi @ 0x559fb596f8c0] decoding for stream 0 failed
    [avi @ 0x559fb596f8c0] Could not find codec parameters for stream 0 (Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown), 1280x720): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [avi @ 0x559fb596f8c0] Could not find codec parameters for stream 1 (Video: none (JUNK / 0x4B4E554A), none, 11025x22050): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, avi, from 'test.avi':
     Duration: 00:00:10.50, start: 0.000000, bitrate: 28129 kb/s
       Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), none(bt470bg/unknown/unknown), 1280x720, 20.01 fps, 20.01 tbr, 20.01 tbn, 20.01 tbc
       Stream #0:1: Video: none (JUNK / 0x4B4E554A), none, 11025x22050, 11025 tbr, 11025 tbn, 11025 tbc
    Stream mapping:
     Stream #0:1 -> #0:0 (? (?) -> png (native))
    Decoder (codec none) not found for input stream #0:1

    The actual video duration is 10s (when read using vlc for instance, and this is indeed the length of video programmed on the camera-trap. ffmpeg says the duration is 10.50s, and says there is a problem with header parsing (see above).

    I have no idea how to sort this, despite having looked at more than many ffmpeg ’convert video to frames’ post. Any hint would be appreciated, thanks.