Recherche avancée

Médias (91)

Autres articles (76)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (8070)

  • Ffmpeg generated movie (png -> mp4) has no video

    21 avril 2016, par ILiveForVR

    I have a whole bunch of png’s which I would like to convert into a mp4 video.
    I am using the following command to stich them together :
    ffmpeg -i _2016-04-20_14-51-00-500_%06d.png -pix_fmt yuv420p movie.mp4

    I am getting a file, which has a size so it isn’t empty. But when I play it in VLC or Quicktime it shows the time going by, but it has no video in it. Any idea what I’m doing wrong ?
    I also tried :

    ffmpeg -framerate 1/5 -i _2016-04-20_14-51-00-500_%06d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4

    and

    ffmpeg -r 45 -f image2 -s 1920x1080 -i _2016-04-20_14-51-00-500_%06d.png -vcodec libx264 -crf 25  -pix_fmt yuv420p test.mp4

    But still no video.
    This is the commandline output :

    >ffmpeg -i _2016-04-20_14-51-00-500_%06d.png -pix_fmt yuv420p movie.mp4
    ffmpeg version N-79546-g13406b6 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.3.0 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --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-libmfx --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. 22.100 / 55. 22.100
     libavcodec     57. 35.100 / 57. 35.100
     libavformat    57. 34.102 / 57. 34.102
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 44.100 /  6. 44.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, image2, from '_2016-04-20_14-51-00-500_%06d.png':
     Duration: 00:00:02.60, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgba(pc), 8192x4096 [SAR 3779:3779 DAR 2:1], 25 tbr, 25 tbn
    [libx264 @ 00000000025851e0] using SAR=1/1
    [libx264 @ 00000000025851e0] frame MB size (512x256) > level limit (36864)
    [libx264 @ 00000000025851e0] DPB size (4 frames, 524288 mbs) > level limit (1 frames, 184320 mbs)
    [libx264 @ 00000000025851e0] MB rate (3276800) > level limit (2073600)
    [libx264 @ 00000000025851e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 00000000025851e0] profile High, level 5.2
    [libx264 @ 00000000025851e0] 264 - core 148 r2665 a01e339 - 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=18 lookahead_threads=3 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=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    [mp4 @ 0000000002583fc0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    Output #0, mp4, to 'movie.mp4':
     Metadata:
       encoder         : Lavf57.34.102
       Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 8192x4096 [SAR 1:1 DAR 2:1], q=2-31, 25 fps, 12800 tbn
       Metadata:
         encoder         : Lavc57.35.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 (png (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   65 fps=3.2 q=-1.0 Lsize=   13498kB time=00:00:02.48 bitrate=44585.2kbits/s speed=0.123x    6x
    video:13497kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.009971%
    [libx264 @ 00000000025851e0] frame I:1     Avg QP:16.71  size:1373751
    [libx264 @ 00000000025851e0] frame P:52    Avg QP:23.59  size:234822
    [libx264 @ 00000000025851e0] frame B:12    Avg QP:21.17  size: 19609
    [libx264 @ 00000000025851e0] consecutive B-frames: 73.8%  3.1%  4.6% 18.5%
    [libx264 @ 00000000025851e0] mb I  I16..4: 14.7% 73.8% 11.5%
    [libx264 @ 00000000025851e0] mb P  I16..4:  3.1%  5.9%  0.5%  P16..4: 23.2%  7.7%  2.0%  0.0%  0.0%    skip:57.5%
    [libx264 @ 00000000025851e0] mb B  I16..4:  0.1%  0.1%  0.0%  B16..8:  9.0%  0.2%  0.0%  direct: 0.2%  skip:90.3%  L0:33.0% L1:66.6% BI: 0.4%
    [libx264 @ 00000000025851e0] 8x8 transform intra:63.5% inter:78.5%
    [libx264 @ 00000000025851e0] coded y,uvDC,uvAC intra: 33.7% 3.1% 1.0% inter: 10.1% 0.4% 0.0%
    [libx264 @ 00000000025851e0] i16 v,h,dc,p: 24% 57%  3% 17%
    [libx264 @ 00000000025851e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 31% 38%  2%  3%  2%  5%  2%  4%
    [libx264 @ 00000000025851e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 63% 10%  2%  2%  1%  5%  1%  4%
    [libx264 @ 00000000025851e0] i8c dc,h,v,p: 94%  2%  3%  0%
    [libx264 @ 00000000025851e0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 00000000025851e0] ref P L0: 71.6% 13.1% 10.8%  4.4%
    [libx264 @ 00000000025851e0] ref B L0: 69.0% 30.6%  0.4%
    [libx264 @ 00000000025851e0] ref B L1: 89.7% 10.3%
    [libx264 @ 00000000025851e0] kb/s:42522.38
  • Video encoding fail when change speed and add watermark

    24 août 2020, par Nguyễn Trọng

    I have a video needing speed change and add watermark

    


    "[-y, -i, /storage/3665-3031/DCIM/Camera/VID_20200821_195124.mp4, -i, /storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png, -filter_complex, [1:v]scale=1920/4:-1[logo1];[0:v]trim=0.0:135.869,setpts=0.3125*(PTS-STARTPTS)[v2];[0:a]atrim=0.0:135.869,asetpts=PTS-STARTPTS,atempo=2.0,atempo=1.600000023841858[a2];[v2][a2]concat=n=1:v=1:a=1[video];[video][logo1]overlay=main_w-overlay_w-10:main_h-overlay_h-10[vw], -map, [vw], -c:v, libx264, -c:a, aac, -crf, 18, -preset, veryfast, /storage/emulated/0/FXMotion/FXMotion-200821a.mp4, -hide_banner]"


    


    However when I ran the above command, it got the error below, I tried searching on google but it didn't solve the problem,
how to resolve this error ? , Thank advance.

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/storage/3665-3031/DCIM/Camera/VID_20200821_195124.mp4':
              Metadata:
                major_brand     : mp42
    minor_version   : 0
                compatible_brands: isommp42
    creation_time   : 2020-08-21T14:23:42.000000Z
    location        : +28.6812+077.4592/
                location-eng    : +28.6812+077.4592/
                com.android.version: 9
              Duration: 00:02:15.87, start: 0.000000, bitrate: 17160 kb/s
    Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p(tv, unknown/bt470bg/unknown), 1920x1080, 17009 kb/s, SAR 1:1 DAR 16:9, 30.01 fps, 30 tbr, 90k tbn, 180k tbc (default)
    Metadata:
                  rotate          : 90
                  creation_time   : 2020-08-21T14:23:42.000000Z
      handler_name    : VideoHandle
    Side data:
                  displaymatrix: rotation of -90.00 degrees
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 128 kb/s (default)    Metadata:      creation_time   : 2020-08-21T14:23:42.000000Z
      handler_name    : SoundHandle
Input #1, png_pipe, from '/storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png':
              Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 335x51, 25 tbr, 25 tbn, 25 tbcStream mapping:
              Stream #0:0 (h264) -> trim
  Stream #0:1 (aac) -> atrim
  Stream #1:0 (png) -> scale
  concat:out:a0 -> Stream #0:0 (aac)
              overlay -> Stream #0:1 (libx264)
            Press [q] to stop, [?] for helpframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
[graph 0 input from stream 1:0 @ 0x7c2a9520] sws_param option is deprecated and ignored
[graph 0 input from stream 0:0 @ 0x7c2a97c0] sws_param option is deprecated and ignored
[libx264 @ 0x90415c00] using SAR=1/1
[libx264 @ 0x90415c00] using cpu capabilities: ARMv6 NEON[libx264 @ 0x90415c00] profile High, level 4.0, 4:2:0, 8-bit
[libx264 @ 0x90415c00] 264 - core 159 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 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=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
            Output #0, mp4, to '/storage/emulated/0/FXMotion/FXMotion-200821a.mp4':
              Metadata:
                major_brand     : mp42
    minor_version   : 0    compatible_brands: isommp42
    com.android.version: 9
                location        : +28.6812+077.4592/
                location-eng    : +28.6812+077.4592/
                encoder         : Lavf58.35.101
                Stream #0:0: Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)
    Metadata:      encoder         : Lavc58.65.102 aac
    Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1080x1920 [SAR 1:1 DAR 9:16], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
    Metadata:
                  encoder         : Lavc58.65.102 libx264
    Side data:
                  cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
frame=    2 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
frame=    7 fps=6.9 q=0.0 size=       0kB time=00:00:00.10 bitrate=   3.6kbits/s dup=0 drop=7 speed=0.106x    
Video encoding failed[aac @ 0x90414800] Qavg: 126.876
            [aac @ 0x90414800] 2 frames left in the queue on closingConversion failed!


    


  • ffmpeg Videos Won't Play Centos

    17 mai 2016, par Dan

    My exported videos from ffmpeg won’t play on anything. I am trying to create a simple slideshow type video from images. It will create the video, the video will add 5 seconds in duration for each image I add but it just doesn’t play on anything. It’s driving me crazy.

    /usr/local/bin/ffmpeg -y -f image2 -r 1/5 -i uploads/img%03d.jpg vid/video.mp4

    And here is the output :

    Array ( [0] => ffmpeg version n2.8.7 Copyright (c) 2000-2016 the FFmpeg developers [1] => built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16) [2] => configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-libvpx --enable-libmp3lame [3] => libavutil 54. 31.100 / 54. 31.100 [4] => libavcodec 56. 60.100 / 56. 60.100 [5] => libavformat 56. 40.101 / 56. 40.101 [6] => libavdevice 56. 4.100 / 56. 4.100 [7] => libavfilter 5. 40.101 / 5. 40.101 [8] => libswscale 3. 1.101 / 3. 1.101 [9] => libswresample 1. 2.101 / 1. 2.101 [10] => libpostproc 53. 3.100 / 53. 3.100 [11] => [mjpeg @ 0x4213ac0] Changeing bps to 8 [12] => Input #0, image2, from 'uploads/img%03d.jpg': [13] => Duration: 00:00:05.00, start: 0.000000, bitrate: N/A [14] => Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 2021x1117 [SAR 100:100 DAR 2021:1117], 0.20 tbr, 0.20 tbn, 0.20 tbc [15] => No pixel format specified, yuvj444p for H.264 encoding chosen. [16] => Use -pix_fmt yuv420p for compatibility with outdated media players. [17] => [libx264 @ 0x4214040] using SAR=1/1 [18] => [libx264 @ 0x4214040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX [19] => [libx264 @ 0x4214040] profile High 4:4:4 Predictive, level 5.0, 4:4:4 8-bit [20] => [libx264 @ 0x4214040] 264 - core 148 r2694 3b70645 - 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=4 threads=12 lookahead_threads=2 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=1 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 [21] => Output #0, mp4, to 'vid/video.mp4': [22] => Metadata: [23] => encoder : Lavf56.40.101 [24] => Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj444p(pc), 2021x1117 [SAR 100:100 DAR 2021:1117], q=-1--1, 0.20 fps, 16384 tbn, 0.20 tbc [25] => Metadata: [26] => encoder : Lavc56.60.100 libx264 [27] => Stream mapping: [28] => Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) [29] => Press [q] to stop, [?] for help [30] => frame= 1 fps=0.0 q=17.0 Lsize= 85kB time=00:00:05.00 bitrate= 139.4kbits/s [31] => video:84kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.931709% [32] => [libx264 @ 0x4214040] frame I:1 Avg QP:10.98 size: 85605 [33] => [libx264 @ 0x4214040] mb I I16..4: 25.7% 55.1% 19.2% [34] => [libx264 @ 0x4214040] 8x8 transform intra:55.1% [35] => [libx264 @ 0x4214040] coded y,u,v intra: 28.2% 25.3% 21.6% [36] => [libx264 @ 0x4214040] i16 v,h,dc,p: 20% 54% 11% 15% [37] => [libx264 @ 0x4214040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 27% 24% 3% 4% 1% 3% 1% 2% [38] => [libx264 @ 0x4214040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 31% 12% 3% 4% 2% 3% 2% 3% [39] => [libx264 @ 0x4214040] kb/s:136.97 )

    I’ve read that adding -pix_fmt yuv420p might help but when I do that I get errors.

    Array ( [0] => ffmpeg version n2.8.7 Copyright (c) 2000-2016 the FFmpeg developers [1] => built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16) [2] => configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab --enable-libvpx --enable-libmp3lame [3] => libavutil 54. 31.100 / 54. 31.100 [4] => libavcodec 56. 60.100 / 56. 60.100 [5] => libavformat 56. 40.101 / 56. 40.101 [6] => libavdevice 56. 4.100 / 56. 4.100 [7] => libavfilter 5. 40.101 / 5. 40.101 [8] => libswscale 3. 1.101 / 3. 1.101 [9] => libswresample 1. 2.101 / 1. 2.101 [10] => libpostproc 53. 3.100 / 53. 3.100 [11] => [mjpeg @ 0x27f9ae0] Changeing bps to 8 [12] => Input #0, image2, from 'uploads/img%03d.jpg': [13] => Duration: 00:00:05.00, start: 0.000000, bitrate: N/A [14] => Stream #0:0: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 2021x1117 [SAR 100:100 DAR 2021:1117], 0.20 tbr, 0.20 tbn, 0.20 tbc [15] => [swscaler @ 0x28097c0] deprecated pixel format used, make sure you did set range correctly [16] => [libx264 @ 0x27fa060] width not divisible by 2 (2021x1117) [17] => Output #0, mp4, to 'vid/video.mp4': [18] => Stream #0:0: Video: h264, none, q=2-31, 128 kb/s, SAR 1:1 DAR 0:0, 0.20 fps [19] => Metadata: [20] => encoder : Lavc56.60.100 libx264 [21] => Stream mapping: [22] => Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264)) [23] => Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height )

    Blockquote

    Any help is much appreciated.