Recherche avancée

Médias (1)

Mot : - Tags -/sintel

Autres articles (33)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

Sur d’autres sites (4890)

  • avformat/dashdec, hls : Update correct pointer to AVDictionary

    7 septembre 2020, par Andreas Rheinhardt
    avformat/dashdec, hls : Update correct pointer to AVDictionary
    

    open_url() in the DASH as well in the hls demuxer share a common bug :
    They modify an AVDictionary (i.e. set a new entry) given to them as
    AVDictionary *, yet if this new entry leads to reallocation and
    relocation of the AVDictionary, the caller's pointer will become
    dangling, leading to use-after-frees. So pass an AVDictionary **.

    (With the current implementation of AVDictionary the above can only
    happen if the AVDictionary was empty initially (in which case the
    new AVDictionary leaks) ; furthermore if the I/O is ordinary (i.e. opened
    by avio_open2() or ffio_open_whitelist()), the dict is never empty (it
    contains an rw_timeout entry from save_avio_options()). So this issue
    could only happen if the caller sets a nondefault io_open callback, but
    no AVIOContext (the AVFMT_FLAG_CUSTOM_IO flag won't be set in this
    case). In case of the HLS demuxer, it was also necessary that setting
    the "seekable" entry failed. Yet one should simply not rely on internals
    of the AVDict API.)

    Reviewed-by : Steven Liu <lq@chinaffmpeg.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/dashdec.c
    • [DH] libavformat/hls.c
  • Proprietary codecs on Linux. What is legal ?

    17 octobre 2016, par George Eco

    So, assuming we got a distribution without proprietary codecs installed.
    Let’s take Linux Mint for example. I want to store and playback wav and ogg format sounds, either by using my own software, or by using another developer’s software. So far so good right ?

    Imagine now that we have the following scenario. For some reason, I wanna playback a file that is either an mp4 or mp3 or mpeg or any other format, made by proprietary codecs. Instantly, I will need a codec for these formats.

    I read somewhere that Fluendo sells solutions for "legal codec usage" for linux distros.
    URL of fluendo : http://www.fluendo.com/en/

    So here comes the questions :

    Using VLC and ffmpeg is enough for me to convert a file to an ogg or ogv so I can playback a song or a video using an open format. You can also playback playback files made by proprietary formats. But are VLC and ffmpeg legal to use, to playback such files made by proprietary codecs ? For example, ss VLC codecs okay to be used without paying anyone for mp4 playback ? Is it okay to convert a file from mp4 to ogv ?
    If not, are there any legal and open source and free (as in freedom) codecs around that can solve the issue, or does someone have to pay a product, to be ethically correct, to the developers of the proprietaty codecs ?

    Note that I do not ask for Windows, since codec licenses are included to the price of the operating system. I ask exclusively for a free linux distribution.

  • How to map frame extracted with ffmpeg and subtitle of a video ? (frame accuracy problem)

    14 novembre 2019, par Abitbol

    would like to generate text files for frames extracted with ffmpeg, containing subtitle of the frame if any, on a video for which I have burn the subtitles using ffmpeg also.

    I use a python script with pysrt to open the subrip file and generate the text files.
    What I am doing is that each frames is named with the frame number by ffmpeg, then and since they are extracted at a constant rate, I can easily retrieve the time position of the frame using the formula t1 = fnum/fps, where fnum is the number of the frame retrieved with the filename, and fps is the frequency passed to ffmpeg for the frame extraction.

    Even though I am using the same subtitle file to retrieve the text positions in the timeline, that the one that has been used in the video, I still get accuracy errors. Most I have some text files missing or some that shouldn’t be present.

    Because time is not really continuous when talking about frames, I have tried recalibrating t using the fps of the video wih the hardcoded subtitles, let’s call that fps vfps for video fps (I have ensured that the video fps is the same before and after subtitle burning). I get the formula : t2 = int(t1*vfps)/vfps.
    It still is not 100% accurate.

    For example, my video is at 30fps (vfps=30) and I extracted frames at 4fps (fps=4).
    The extracted frame 166 (fnum=166) shows no subtitle. In the subrip file, the previous subtitle ends at t_prev=41.330 and the next subtitle begins at t_next=41.400, which means that t_sub should satisfy : t_prev &lt; t_sub and t_sub &lt; t_next, but I can’t make this happen.

    Formulas I have tried :

    t1 = fnum/fps  # 41.5 > t_next
    t2 = int(fnum*vfps/fps)/vfps  # 41.5 > t_next
    # is it because of a indexing problem? No:
    t3 = (fnum-1)/fps  # 41.25 &lt; t_prev
    t4 = int((fnum-1)*vfps/fps)/vfps  # 41.23333333 &lt; t_prev
    t5 = int(fnum*vfps/fps - 1)/vfps  # 41.466666 > t_next
    t6 = int((fnum-1)*vfps/fps + 1)/vfps  # 41.26666 &lt; t_prev

    Command used :

    # burning subtitles
    # (previously)
    # ffmpeg -r 25 -i nosub.mp4 -vf subtitles=sub.srt withsub.mp4
    # now:
    ffmpeg -i nosub.mp4 -vf subtitles=sub.srt withsub.mp4
    # frames extraction
    ffmpeg -i withsub.mp4 -vf fps=4 extracted/%05.bmp -hide_banner

    Why does this happen and how can I solve this ?

    One thing I have noticed is that if I extract frames of the original video and the subtitle ones, do a difference of the frames, the result is not only the subtitles, there are variations in the background (that shouldn’t happen). If I do the same experience using the same video two times, the difference is null, which means that the frame extraction is consistant.

    Code for the difference :

    ffmpeg -i withsub.mp4 -vf fps=4 extracted/%05.bmp -hide_banner
    ffmpeg -i no_sub.mp4 -vf fps=4 extracted_no_sub/%05.bmp -hide_banner
    for img in no_sub/*.bmp; do
       convert extracted/${img##*/} $img -compose minus -composite diff/${img##*/}
    done

    Thanks.