Recherche avancée

Médias (3)

Mot : - Tags -/plugin

Autres articles (94)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (10915)

  • ffmpeg fails with "More than 1k frames duplicated" when merging with xfade

    1er mai 2021, par PadawanQ

    When I try to merge 8 or more video clips with the same codec (generated by ffmpeg in a previous step), I get a More than 1000 frames duplicated warning and the resulting output is not merged correctly. This doesn't happen with 7 video clips.

    


    I tried removing the 8th clip to check if there is a problem with that clip, but it happens the same. Also reordering the clips with no success.

    


    The command I use is :

    


    ffmpeg -i scenes/step-000.mp4 -i scenes/step-001.mp4 -i scenes/step-002.mp4 -i scenes/step-003.mp4 -i scenes/step-004.mp4 -i scenes/step-005.mp4 -i scenes/step-008.mp4 -i scenes/step-009.mp4 -filter_complex_script temp/2021-03-17-14-51-13-6.txt  -y -map "[video]" -map "[audio]" -pix_fmt yuv420p -movflags +faststart output.mp4


    


    The content of the filter_complex_script is :

    


    [0][1] xfade=transition=fade:duration=2:offset=2.48 [vtmp1]; [vtmp1][2] xfade=transition=fade:duration=2:offset=12.56 [vtmp2]; [vtmp2][3] xfade=transition=fade:duration=2:offset=100.58 [vtmp3]; [vtmp3][4] xfade=transition=fade:duration=2:offset=167.60 [vtmp4]; [vtmp4][5] xfade=transition=fade:duration=2:offset=222.62 [vtmp5]; [vtmp5][6] xfade=transition=fade:duration=2:offset=232.70 [vtmp6]; [vtmp6][7] xfade=transition=fade:duration=2:offset=282.72 [video]; [0:a][1:a] acrossfade=d=2:c1=tri:c2=tri [atmp1]; [atmp1][2:a] acrossfade=d=2:c1=tri:c2=tri [atmp2]; [atmp2][3:a] acrossfade=d=2:c1=tri:c2=tri [atmp3]; [atmp3][4:a] acrossfade=d=2:c1=tri:c2=tri [atmp4]; [atmp4][5:a] acrossfade=d=2:c1=tri:c2=tri [atmp5]; [atmp5][6:a] acrossfade=d=2:c1=tri:c2=tri [atmp6]; [atmp6][7:a] acrossfade=d=2:c1=tri:c2=tri [audio]


    


    FFMPEG version 4.3.2-tessus

    


  • Revert "avcodec : add FF_CODEC_CAP_INIT_CLEANUP for all codecs which use ff_mpv_common...

    24 décembre 2020, par Andreas Rheinhardt
    Revert "avcodec : add FF_CODEC_CAP_INIT_CLEANUP for all codecs which use ff_mpv_common_init()"
    

    This mostly reverts commit 4b2863ff01b1fe93d9a518523c9098d17a9d8c6f.
    Said commit removed the freeing code from ff_mpv_common_init(),
    ff_mpv_common_frame_size_change() and ff_mpeg_framesize_alloc() and
    instead added the FF_CODEC_CAP_INIT_CLEANUP to several codecs that use
    ff_mpv_common_init(). This introduced several bugs :

    a) Several decoders using ff_mpv_common_init() in their init function were
    forgotten : This affected FLV, Intel H.263, RealVideo 3.0 and V4.0 as well as
    VC-1/WMV3.
    b) ff_mpv_common_init() is not only called from the init function of
    codecs, it is also called from AVCodec.decode functions. If an error
    happens after an allocation has succeeded, it can lead to memleaks ;
    furthermore, it is now possible for the MpegEncContext to be marked as
    initialized even when ff_mpv_common_init() returns an error and this can
    lead to segfaults because decoders that call ff_mpv_common_init() when
    decoding a frame can mistakenly think that the MpegEncContext has been
    properly initialized. This can e.g. happen with H.261 or MPEG-4.
    c) Removing code for freeing from ff_mpeg_framesize_alloc() (which can't
    be called from any init function) can lead to segfaults because the
    check for whether it needs to allocate consists of checking whether the
    first of the buffers allocated there has been allocated. This part has
    already been fixed in 76cea1d2ce3f23e8131c8664086a1daf873ed694.
    d) ff_mpv_common_frame_size_change() can also not be reached from any
    AVCodec.init function ; yet the changes can e.g. lead to segfaults with
    decoders using ff_h263_decode_frame() upon allocation failure, because
    the MpegEncContext will upon return be flagged as both initialized and
    not in need of reinitialization (granted, the fact that
    ff_h263_decode_frame() clears context_reinit before the context has been
    reinited is a bug in itself). With the earlier version, the context
    would be cleaned upon failure and it would be attempted to initialize
    the context again in the next call to ff_h263_decode_frame().

    While a) could be fixed by adding the missing FF_CODEC_CAP_INIT_CLEANUP,
    keeping the current approach would entail adding cleanup code to several
    other places because of b). Therefore ff_mpv_common_init() is again made
    to clean up after itself ; the changes to the wmv2 decoder and the SVQ1
    encoder have not been reverted : The former fixed a memleak, the latter
    allowed to remove cleanup code.

    Fixes : double free
    Fixes : ff_free_picture_tables.mp4
    Fixes : ff_mpeg_update_thread_context.mp4
    Fixes : decode_colskip.mp4
    Fixes : memset.mp4

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/h261dec.c
    • [DH] libavcodec/h263dec.c
    • [DH] libavcodec/mpeg12dec.c
    • [DH] libavcodec/mpeg4videodec.c
    • [DH] libavcodec/mpegvideo.c
    • [DH] libavcodec/msmpeg4dec.c
    • [DH] libavcodec/rv10.c
  • FFmpeg giving a wierd "Permission denied" error (Digitalocean VPS Ubuntu 18.04)

    10 mai 2021, par DJ Danny

    I've set up a VPS server on Digitalocean. Installed Ubuntu 18.04, LAMP, etc.&#xA;Finally, I installed ffmpeg. It is working fine from terminal but when I try to execute it through php it gives a weird "Permission denied" error :

    &#xA;

    Here is some information :

    &#xA;root@vl :/# whereis ffmpeg
    &#xA;ffmpeg : /usr/local/bin/ffmpeg
    &#xA;root@vl :/# whereis ffprobe
    &#xA;ffprobe : /usr/local/bin/ffprobe

    &#xA;

    root@vl :/# ffmpeg -version
    &#xA;ffmpeg version N-102461-g8649f5dca6 Copyright (c) 2000-2021 the FFmpeg developers&#xA;built with gcc 7 (Ubuntu 7.5.0-3ubuntu1 18.04)&#xA;configuration : —prefix=/usr/local/ffmpeg_build —pkg-config-flags=—static —extra-cflags=-I/usr/local/ffmpeg_build/include —extra-ldflags=-L/usr/local/ffmpeg_build/lib —extra-libs='-lpthread -lm' —ld=g++ —bindir=/usr/local/bin —enable-gpl —enable-gnutls —enable-libaom —enable-libass —enable-libfdk-aac —enable-libfreetype —enable-libmp3lame —enable-libopus —enable-libsvtav1 —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libx265 —enable-nonfree&#xA;libavutil 57. 0.100 / 57. 0.100&#xA;libavcodec 59. 1.100 / 59. 1.100&#xA;libavformat 59. 0.101 / 59. 0.101&#xA;libavdevice 59. 0.100 / 59. 0.100&#xA;libavfilter 8. 0.101 / 8. 0.101&#xA;libswscale 6. 0.100 / 6. 0.100&#xA;libswresample 4. 0.100 / 4. 0.100&#xA;libpostproc 56. 0.100 / 56. 0.100&#xA;

    &#xA;

    My php file :

    &#xA;&#xA;echo shell_exec("ffmpeg -i mj.gif -profile:v baseline -pix_fmt yuv420p -vf scale=600 :-2 output.mp4 2>&1")
    &#xA; ?>

    &#xA;

    The ERROR ! :
    &#xA;ffmpeg version N-102461-g8649f5dca6 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 7 (Ubuntu 7.5.0-3ubuntu1 18.04) configuration : —prefix=/usr/local/ffmpeg_build —pkg-config-flags=—static —extra-cflags=-I/usr/local/ffmpeg_build/include —extra-ldflags=-L/usr/local/ffmpeg_build/lib —extra-libs='-lpthread -lm' —ld=g++ —bindir=/usr/local/bin —enable-gpl —enable-gnutls —enable-libaom —enable-libass —enable-libfdk-aac —enable-libfreetype —enable-libmp3lame —enable-libopus —enable-libsvtav1 —enable-libvorbis —enable-libvpx —enable-libx264 —enable-libx265 —enable-nonfree libavutil 57. 0.100 / 57. 0.100 libavcodec 59. 1.100 / 59. 1.100 libavformat 59. 0.101 / 59. 0.101 libavdevice 59. 0.100 / 59. 0.100 libavfilter 8. 0.101 / 8. 0.101 libswscale 6. 0.100 / 6. 0.100 libswresample 4. 0.100 / 4. 0.100 libpostproc 56. 0.100 / 56. 0.100 Input #0, gif, from 'mj.gif' : Duration : 00:00:01.60, start : 0.000000, bitrate : 22863 kb/s Stream #0:0 : Video : gif, bgra, 1400x1050, 10 fps, 10 tbr, 100 tbn output.mp4 : Permission denied&#xA;

    &#xA;From the past 24 hours I've tried installing ffmpeg in different ways (compiling & apt install), I've also tried changing the permission but still I'm stuck with this error.
    &#xA;Any help would be highly appreciated !
    &#xA;Thanks

    &#xA;