Recherche avancée

Médias (91)

Autres articles (78)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

Sur d’autres sites (7668)

  • How to convert webp images to MP4 video using ffmpeg

    12 octobre 2016, par Sunny Tambi

    I have tried many possible command line options with ffmpeg, however not getting this to work. I want to convert series of webp images to a mp4 video.
    Some commands that i tried are :

    ffmpeg -i img%04d.webp out.mp4

    ffmpeg -i img%04d.webp -c:v libx264 out.mp4

    ffmpeg -i img%04d.webp -pix_fmt yuv420p out.mp4

    ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 out.mp4

    ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 -b:v 0 out.mp4

    None of them creates an mp4 video. A mp4 file, though, gets created, however it is of 0 sec. Here is a sample output of one of the execution :

    ffmpeg -i img%04d.webp -c:v libx264 -pix_fmt yuv420p -crf 25 -y out.mp4

    ffmpeg version N-81045-g450cf40 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
    libavutil      55. 28.100 / 55. 28.100
    libavcodec     57. 50.100 / 57. 50.100
    libavformat    57. 42.100 / 57. 42.100
    libavdevice    57.  0.102 / 57.  0.102
    libavfilter     6. 47.100 /  6. 47.100
     libswscale      4.  1.100 /  4.  1.100
    libswresample   2.  1.100 /  2.  1.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, image2, from 'img%04d.webp':
     Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: webp, yuva420p(tv, bt470bg/unknown/unknown), 320x568, 25 tbr, 25 tbn, 25 tbc
    [libx264 @ 00000000006dbbc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 00000000006dbbc0] profile High, level 2.1
    [libx264 @ 00000000006dbbc0] 264 - core 148 r2705 3f5ed56 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=25.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [mp4 @ 00000000006d8700] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Output #0, mp4, to 'out.mp4':
    Metadata:
    encoder : Lavf57.42.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 320x568, q=-1--1, 25 fps, 12800 tbn, 25 tbc
    Metadata:
    encoder : Lavc57.50.100 libx264
    Side data:
    cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream mapping:
    Stream #0:0 -> #0:0 (webp (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame= 1 fps=0.0 q=30.0 Lsize= 3kB time=00:00:00.00 bitrate=265435.9kbits/s speed=0.011x video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 44.661823%
    [libx264 @ 00000000006dbbc0] frame I:1     Avg QP:23.37  size:  1100
    [libx264 @ 00000000006dbbc0] mb I  I16..4: 24.4% 71.5%  4.0%
    [libx264 @ 00000000006dbbc0] 8x8 transform intra:71.5%
    [libx264 @ 00000000006dbbc0] coded y,uvDC,uvAC intra: 6.1% 5.4% 4.2%
    [libx264 @ 00000000006dbbc0] i16 v,h,dc,p: 80% 14%  6%  1%
    [libx264 @ 00000000006dbbc0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46%  5% 48%  0%  0%  0%  0%  0%  0%
    [libx264 @ 00000000006dbbc0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 20% 42%  2%  2%  2%  2%  2%  3%
    [libx264 @ 00000000006dbbc0] i8c dc,h,v,p: 89%  9%  1%  0%
    [libx264 @ 00000000006dbbc0] kb/s:220.00

    Excerpt from the above :

    frame=1
    fps=0.0
    time=00:00:00.00
    video:2kB

    This should give the idea of what I am trying to say.

    Need help if someone can tell how to convert a series of webp images to MP4 video.

  • Using libav-tools versus libav built from source - video quality much worse

    17 juin 2015, par kislo

    We are trying to create a video from still images, running on Ubuntu 14.04.

    If we have installed libav-tools then the output video is much higher quality than if we have installed libav manually. Unfortunately, we need to run a solution where libav is built from source, so we want to find out how to improve the quality.

    Here is the console output for the libav-tools (higher quality) :

    avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the Libav developers
     built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
    [image2 @ 0x22ae120] max_analyze_duration reached
    Input #0, image2, from 'frame.%04d.jpg':
     Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: mjpeg, yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], 8 fps, 8 tbr, 8 tbn
    [libx264 @ 0x22afac0] using SAR=1/1
    [libx264 @ 0x22afac0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
    [libx264 @ 0x22afac0] profile High, level 3.1
    [libx264 @ 0x22afac0] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=8 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.25 aq=1:1.00
    Output #0, mp4, to 'a1.mp4':
     Metadata:
       encoder         : Lavf54.20.4
       Stream #0.0: Video: libx264, yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], q=-1--1, 8 tbn, 8 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg -> libx264)
    Press ctrl-c to stop encoding
    frame=  159 fps= 43 q=32766.0 Lsize=    1580kB time=19.62 bitrate= 659.3kbits/s    
    video:607kB audio:0kB global headers:0kB muxing overhead 160.388953%
    [libx264 @ 0x22afac0] frame I:21    Avg QP:14.32  size: 21142
    [libx264 @ 0x22afac0] frame P:132   Avg QP:16.12  size:  8691
    [libx264 @ 0x22afac0] frame B:6     Avg QP:13.61  size:  3874
    [libx264 @ 0x22afac0] consecutive B-frames: 95.0%  0.0%  0.0%  5.0%
    [libx264 @ 0x22afac0] mb I  I16..4: 37.4% 61.4%  1.2%
    [libx264 @ 0x22afac0] mb P  I16..4:  9.1% 19.2%  0.3%  P16..4:  6.2%  2.8%  1.3%  0.0%  0.0%    skip:61.1%
    [libx264 @ 0x22afac0] mb B  I16..4:  1.8%  2.0%  0.0%  B16..8: 31.9%  7.1%  0.7%  direct: 9.2%  skip:47.3%  L0:69.8% L1:29.5% BI: 0.8%
    [libx264 @ 0x22afac0] 8x8 transform intra:65.0% inter:92.8%
    [libx264 @ 0x22afac0] coded y,uvDC,uvAC intra: 36.3% 31.8% 7.1% inter: 3.6% 6.0% 0.7%
    [libx264 @ 0x22afac0] i16 v,h,dc,p: 74% 14%  6%  6%
    [libx264 @ 0x22afac0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 24% 32%  5%  2%  3%  2%  1%  3%
    [libx264 @ 0x22afac0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 51% 23%  9%  2%  3%  6%  3%  1%  2%
    [libx264 @ 0x22afac0] i8c dc,h,v,p: 52% 20% 25%  2%
    [libx264 @ 0x22afac0] Weighted P-Frames: Y:6.8% UV:6.1%
    [libx264 @ 0x22afac0] ref P L0: 58.1%  6.2% 12.1% 22.6%  0.9%
    [libx264 @ 0x22afac0] ref B L0: 83.0% 16.3%  0.7%
    [libx264 @ 0x22afac0] ref B L1: 93.5%  6.5%
    [libx264 @ 0x22afac0] kb/s:649.85

    Here is the console output for libav built manually (lower quality) :

    avconv version 11.4, Copyright (c) 2000-2014 the Libav developers
     built on Jun 17 2015 02:19:28 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
    [image2 @ 0x329f140] max_analyze_duration 5000000 reached
    Input #0, image2, from 'frame.%04d.jpg':
     Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
       Stream #0.0: Video: mjpeg, yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], 8 fps, 8 tbn
    Output #0, mp4, to 'a2.mp4':
     Metadata:
       encoder         : Lavf56.1.0
       Stream #0.0: Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 8 fps, 8 tbn, 8 tbc
       Metadata:
         encoder         : Lavc56.1.0 mpeg4
    Stream mapping:
     Stream #0:0 -> #0:0 (mjpeg (native) -> mpeg4 (native))
    Press ctrl-c to stop encoding
    frame=  159 fps=  0 q=31.0 Lsize=     902kB time=19.75 bitrate= 374.2kbits/s    
    video:900kB audio:0kB other streams:0kB global headers:0kB muxing overhead: 0.239928%

    In case it helps : the images are named frame.0000.jpg, frame.0001.jpg, etc., so our command is :
    avconv -y -f image2 -r 8 -i frame.%04d.jpg -vf "setpts=2*PTS" videofile.mp4 for both runs shown above. Any help would be hugely appreciated !

  • ffmpeg saves only first frame

    2 juin 2021, par DuDa

    I generated rotating pictures in Python and now I want to create an animation from it using ffmpeg. But the generated video includes only the first frame (viewed in VLC) and is way to small (half the size of one png) for all 36 pictures. What am I doing wrong ? Thank you.

    


    command in shell : ffmpeg -framerate 5 -i "./mov/movie%03d.png" -y "movie.mp4"

    


    Files in Folder mov :

    


      

    • movie000.png
    • 


    • movie010.png
    • 


    • ..
    • 


    • movie350.png
    • 


    


    ffmpeg version ffmpeg-20170620-ae6f6d4-win64-static

    


    output

    


    ffmpeg version N-86537-gae6f6d4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.1.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
e --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable
-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
  libavutil      55. 66.100 / 55. 66.100
  libavcodec     57. 99.100 / 57. 99.100
  libavformat    57. 73.100 / 57. 73.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 94.100 /  6. 94.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, image2, from './mov/movie%03d.png':
  Duration: 00:00:00.20, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 1152x864 [SAR 2834:2834 DAR 4:3], 5 tbr,
5 tbn, 5 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 00000000003ec140] using SAR=1/1
[libx264 @ 00000000003ec140] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 00000000003ec140] profile High 4:4:4 Predictive, level 3.2, 4:4:4 8-b
it
[libx264 @ 00000000003ec140] 264 - core 150 r2833 df79067 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed
_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pski
p=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decim
ate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_a
dapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=5
scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60
qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'movie.mp4':
  Metadata:
    encoder         : Lavf57.73.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1152x8
64 [SAR 1:1 DAR 4:3], q=-1--1, 5 fps, 10240 tbn, 5 tbc
    Metadata:
      encoder         : Lavc57.99.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame=    1 fps=0.0 q=23.0 Lsize=      19kB time=00:00:00.00 bitrate=1581142.9kb
its/s speed=0.00138x
video:18kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ov
erhead: 4.403838%
[libx264 @ 00000000003ec140] frame I:1     Avg QP:17.26  size: 17865
[libx264 @ 00000000003ec140] mb I  I16..4: 29.6% 56.0% 14.5%
[libx264 @ 00000000003ec140] 8x8 transform intra:56.0%
[libx264 @ 00000000003ec140] coded y,u,v intra: 11.5% 2.3% 6.3%
[libx264 @ 00000000003ec140] i16 v,h,dc,p: 77% 22%  1%  0%
[libx264 @ 00000000003ec140] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33%  3% 62%  0%  0%
 0%  0%  0%  0%
[libx264 @ 00000000003ec140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 53% 25% 12%  1%  1%
 2%  1%  2%  1%
[libx264 @ 00000000003ec140] kb/s:714.60