Recherche avancée

Médias (91)

Autres articles (32)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • 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

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

Sur d’autres sites (7593)

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

  • insert video in video ffmpeg at time exact

    2 avril 2015, par Ti Amo Laky

    I have Video out.mp4 have 30 sec I want to put new video image1.mp4 have 5 sec in out.mp4 at 10 seconds
    i have this code to put my image1.mp4 in out.mp4

    ffmpeg -i F:\out.mp4  -vf "movie=image2.mp4 , scale=200:-1,fade=out:200:alpha=1 , [inner]; [in][inner] overlay=70:70 [out]"  -c:v libx264  -s "1080x720" completed.mp4

    the output

       >ffmpeg -i F:\out.mp4 -vf "movie=image2.mp4 , scale=200:-1,fade=out:100:alpha=1
    [inner]; [in][inner] overlay=70:70 [out]"  completed.mp4
    ffmpeg version N-70411-g7da7d26 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
    modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
    b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
    r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
    able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
    --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
    libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab
    le-zlib
     libavutil      54. 19.100 / 54. 19.100
     libavcodec     56. 26.100 / 56. 26.100
     libavformat    56. 24.101 / 56. 24.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 11.102 /  5. 11.102
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\out.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.24.101
     Duration: 00:00:16.67, start: 0.000000, bitrate: 309 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 800x640 [
    SAR 1:1 DAR 5:4], 306 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    [swscaler @ 0000000005608ea0] deprecated pixel format used, make sure you did se
    t range correctly
    [libx264 @ 0000000002c1c3a0] using SAR=1/1
    [libx264 @ 0000000002c1c3a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    [libx264 @ 0000000002c1c3a0] profile High, level 3.1
    [libx264 @ 0000000002c1c3a0] 264 - core 144 r2525 40bb568 - H.264/MPEG-4 AVC cod
    ec - Copyleft 2003-2014 - 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=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 deci
    mate=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=2
    5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.6
    0 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'completed.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.24.101
       Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 8
    00x640 [SAR 1:1 DAR 5:4], q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc56.26.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   68 fps=0.0 q=29.0 size=      96kB time=00:00:00.63 bitrate=1245.6kbits/
    frame=  111 fps=107 q=29.0 size=     161kB time=00:00:02.06 bitrate= 637.5kbits/
    frame=  155 fps=100 q=29.0 size=     222kB time=00:00:03.53 bitrate= 514.3kbits/
    frame=  212 fps=103 q=29.0 size=     270kB time=00:00:05.43 bitrate= 406.5kbits/
    frame=  270 fps=105 q=29.0 size=     292kB time=00:00:07.36 bitrate= 324.9kbits/
    frame=  314 fps=102 q=29.0 size=     465kB time=00:00:08.83 bitrate= 431.6kbits/
    frame=  382 fps=106 q=29.0 size=     569kB time=00:00:11.10 bitrate= 420.0kbits/
    frame=  461 fps=112 q=29.0 size=     597kB time=00:00:13.73 bitrate= 356.2kbits/
    frame=  500 fps=107 q=-1.0 Lsize=     629kB time=00:00:16.60 bitrate= 310.3kbits
    /s
    video:623kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
    verhead: 0.984177%
    [libx264 @ 0000000002c1c3a0] frame I:3     Avg QP:15.65  size: 90538
    [libx264 @ 0000000002c1c3a0] frame P:190   Avg QP:21.18  size:  1663
    [libx264 @ 0000000002c1c3a0] frame B:307   Avg QP:30.53  size:   161
    [libx264 @ 0000000002c1c3a0] consecutive B-frames: 18.0%  0.0%  1.2% 80.8%
    [libx264 @ 0000000002c1c3a0] mb I  I16..4: 17.4% 72.4% 10.2%
    [libx264 @ 0000000002c1c3a0] mb P  I16..4:  0.0%  0.3%  0.2%  P16..4:  5.0%  1.3
    %  0.9%  0.0%  0.0%    skip:92.2%
    [libx264 @ 0000000002c1c3a0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  2.1%  0.3
    %  0.1%  direct: 0.1%  skip:97.4%  L0:39.2% L1:52.6% BI: 8.2%
    [libx264 @ 0000000002c1c3a0] 8x8 transform intra:68.7% inter:65.2%
    [libx264 @ 0000000002c1c3a0] coded y,uvDC,uvAC intra: 79.0% 49.6% 23.6% inter: 1
    .1% 1.6% 0.2%
    [libx264 @ 0000000002c1c3a0] i16 v,h,dc,p: 92%  5%  1%  2%
    [libx264 @ 0000000002c1c3a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19%  8% 22%  7%  8%
    12%  5% 13%  6%
    [libx264 @ 0000000002c1c3a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 18% 16%  5%  6%
    8%  6%  7%  6%
    [libx264 @ 0000000002c1c3a0] i8c dc,h,v,p: 63% 16% 18%  3%
    [libx264 @ 0000000002c1c3a0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0000000002c1c3a0] ref P L0: 59.0% 18.1% 17.1%  5.8%
    [libx264 @ 0000000002c1c3a0] ref B L0: 83.8% 11.7%  4.5%
    [libx264 @ 0000000002c1c3a0] ref B L1: 96.5%  3.5%
    [libx264 @ 0000000002c1c3a0] kb/s:305.76