Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (30)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (5019)

  • FFMPEG command works on Mac but not on Windows [duplicate]

    24 décembre 2019, par Arthur

    Hi I’m working on a project which needs to create animations by playing 2000 charts in 50 fps using FFMPEG, the command is :

    ffmpeg -y -framerate 50 -i img-%04d.png -vb 40M -vcodec h264 esez.mp4

    charts are located in the same folder with name as img-0001.png img-2000.png

    It worked well on my Mac. On Windows, the command can run and generate a mp4 file. But the animation is just black screen on Windows media player. I also tried open with VLC, it has some image, but not proper at all.

    log from Windows CMD :

    ffmpeg version git-2019-12-11-4110029 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.2.1 (GCC) 20191125
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
     libavutil      56. 36.101 / 56. 36.101
     libavcodec     58. 64.101 / 58. 64.101
     libavformat    58. 35.101 / 58. 35.101
     libavdevice    58.  9.101 / 58.  9.101
     libavfilter     7. 68.100 /  7. 68.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, image2, from 'img-%04d.png':
     Duration: 00:00:40.18, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgba(pc), 1000x800, 50 fps, 50 tbr, 50 tbn, 50 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 00000242aaacc6c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 00000242aaacc6c0] profile High 4:4:4 Predictive, level 3.2, 4:4:4, 8-bit
    [libx264 @ 00000242aaacc6c0] 264 - core 158 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=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=abr mbtree=1 bitrate=40000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'esez.mp4':
     Metadata:
       encoder         : Lavf58.35.101
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1000x800, q=-1--1, 40000 kb/s, 50 fps, 12800 tbn, 50 tbc
       Metadata:
         encoder         : Lavc58.64.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/40000000 buffer size: 0 vbv_delay: N/A
    frame= 2009 fps= 90 q=-1.0 Lsize=    7569kB time=00:00:40.12 bitrate=1545.6kbits/s speed= 1.8x
    video:7545kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.322921%
    [libx264 @ 00000242aaacc6c0] frame I:9     Avg QP: 0.35  size: 60878
    [libx264 @ 00000242aaacc6c0] frame P:511   Avg QP: 0.74  size:  5275
    [libx264 @ 00000242aaacc6c0] frame B:1489  Avg QP: 4.35  size:  3010
    [libx264 @ 00000242aaacc6c0] consecutive B-frames:  0.7%  0.7%  2.2% 96.4%
    [libx264 @ 00000242aaacc6c0] mb I  I16..4: 85.1%  1.6% 13.3%
    [libx264 @ 00000242aaacc6c0] mb P  I16..4:  0.7%  0.0%  0.2%  P16..4:  1.3%  0.8%  0.4%  0.0%  0.0%    skip:96.7%
    [libx264 @ 00000242aaacc6c0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.6%  0.7%  0.2%  direct: 0.1%  skip:97.2%  L0:48.2% L1:39.0% BI:12.8%
    [libx264 @ 00000242aaacc6c0] final ratefactor: -35.51
    [libx264 @ 00000242aaacc6c0] 8x8 transform intra:2.6% inter:5.9%
    [libx264 @ 00000242aaacc6c0] coded y,u,v intra: 12.9% 2.5% 2.6% inter: 0.9% 0.5% 0.6%
    [libx264 @ 00000242aaacc6c0] i16 v,h,dc,p: 84% 14%  2%  0%
    [libx264 @ 00000242aaacc6c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18%  2% 77%  0%  1%  1%  0%  0%  0%
    [libx264 @ 00000242aaacc6c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 22% 19%  4%  4%  4%  4%  6%  2%
    [libx264 @ 00000242aaacc6c0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 00000242aaacc6c0] ref P L0: 60.2%  0.7% 21.4% 17.7%
    [libx264 @ 00000242aaacc6c0] ref B L0: 72.6% 20.2%  7.3%
    [libx264 @ 00000242aaacc6c0] ref B L1: 88.4% 11.6%
    [libx264 @ 00000242aaacc6c0] kb/s:1538.15

    Could anybody please help me with this problem ?

    Happy Holiday to all !

  • ffmpeg and php does not end the conversion

    23 juin 2016, par Fernand Royale

    I’m going crazy with it and do not think the solution.

    I use this code to convert videos, but the conversion did not terminate. I tried several times and stops at different points.

    echo "Starting ffmpeg...\n\n".'';
    echo shell_exec('/usr/src/ffmpeg/ffmpeg/ffmpeg -y -i movie.mp4 -i logo.png -filter_complex "overlay=10:10" -b:v 1500k -vcodec libx264 movie2.mp4 2> out.txt').'';  
    echo "Done.\n";

    Output from ffmpeg :

    ffmpeg version git-2014-01-31-dce9321 Copyright (c) 2000-2014 the FFmpeg developers
     built on Jan 31 2014 20:37:02 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-4)
     configuration: --prefix=/usr/local/ffmpeg --extra-cflags=-I/usr/local/ffmpeg/include --extra-ldflags=-L/usr/local/ffmpeg/lib --bindir=/usr/local/ffmpeg/bin --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libfaac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libfreetype --enable-libtheora
     libavutil      52. 63.100 / 52. 63.100
     libavcodec     55. 49.101 / 55. 49.101
     libavformat    55. 28.101 / 55. 28.101
     libavdevice    55.  7.100 / 55.  7.100
     libavfilter     4.  1.101 /  4.  1.101
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 2016-06-09 07:48:54
     Duration: 00:21:20.00, start: 0.000000, bitrate: 293 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 164 kb/s, -7.31 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
       Metadata:
         creation_time   : 2016-06-09 07:48:54
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         creation_time   : 2016-06-09 07:27:52
         handler_name    : SoundHandler
    Input #1, image2, from 'logo.png':
     Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
       Stream #1:0: Video: png, rgba, 350x32 [SAR 3779:3779 DAR 175:16], 25 tbr, 25 tbn, 25 tbc
    [libx264 @ 0x3b1fe00] using SAR=1/1
    [libx264 @ 0x3b1fe00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
    [libx264 @ 0x3b1fe00] profile High, level 3.1
    [libx264 @ 0x3b1fe00] 264 - core 142 r2 956c8d8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - 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=24 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=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'movie2.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf55.28.101
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 1500 kb/s, 30k tbn, 29.97 tbc (default)
       Stream #0:1(und): Audio: aac (libfaac) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, s16, 128 kb/s (default)
       Metadata:
         creation_time   : 2016-06-09 07:27:52
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 (h264) -> overlay:main (graph 0)
     Stream #1:0 (png) -> overlay:overlay (graph 0)
     overlay (graph 0) -> Stream #0:0 (libx264)
     Stream #0:1 -> #0:1 (aac -> libfaac)
    Press [q] to stop, [?] for help
    frame=   14 fps=0.0 q=0.0 size=   15226kB time=00:00:00.00 bitrate=N/A  
    [libfaac @ 0x3b20800] Queue input is backward in time
    [mp4 @ 0x3b1ef80] Non-monotonous DTS in output stream 0:1; previous: 3003, current: 1024; changing to 3004. This may result in incorrect timestamps in the output file.
    [mp4 @ 0x3b1ef80] Non-monotonous DTS in output stream 0:1; previous: 3004, current: 2048; changing to 3005. This may result in incorrect timestamps in the output file.
    frame=   25 fps=6.9 q=0.0 size=   15382kB time=00:00:00.23 bitrate=542687.8kbits/s  
    frame=   46 fps= 10 q=0.0 size=   15408kB time=00:00:00.95 bitrate=132582.7kbits/s  
    frame=   69 fps= 13 q=32.0 size=   15433kB time=00:00:01.71 bitrate=73576.8kbits/s  
    [...]
    frame=11100 fps= 38 q=0.0 size=   24980kB time=00:06:09.77 bitrate= 553.4kbits/s  
    frame=11106 fps= 38 q=0.0 size=   25093kB time=00:06:09.98 bitrate= 555.6kbits/s  
    frame=11131 fps= 38 q=0.0 size=   25109kB time=00:06:10.82 bitrate= 554.7kbits/s  

    With small video works, but with great video does not end. I do not think it’s php.ini configuration because there is no error. Just do not end

  • How to record desktop while on x2go session via a command line tool ?

    4 décembre 2017, par haragei

    the Goal :
    I am trying to record a specific X display on a remote server with a command line tool.

    the Problem :
    The output file contains a pure black video stream for the whole duration of the recording.

    My Approach :
    I am connecting to a remote server via x2go. The Server runs Ubuntu 16.04.2 with Xfce Desktop Environment. The Display I try to record is :50 (which gets created when I connect to the x2go server). I can control the remote server totally fine through x2go.

    My commands for recording via ffmpeg (or avconv/recordmydesktop, which use ffmpeg underneath) all look more or less the same and are like this :
    ffmpeg -f x11grab -r 25 -s 1854x1176 -i :50.0 -c:v libx264 screencast.mkv

    Sample output :

    user@machine:~/$ ffmpeg -f x11grab -r 25 -s 1854x1176 -i :50.0+0,0 -c:v libx264 -vb 4000k -an screencast.mkv
    ffmpeg version N-86766-g264f6c6 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
     configuration: --prefix=/home/user/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
     libavutil      55. 67.100 / 55. 67.100
     libavcodec     57.100.104 / 57.100.104
     libavformat    57. 75.100 / 57. 75.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 95.100 /  6. 95.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    [x11grab @ 0x1fd9b40] XFixes not available, cannot draw the mouse.
    [x11grab @ 0x1fd9b40] Stream #0: not enough frames to estimate rate; consider increasing probesize
    Input #0, x11grab, from ':50.0+0,0':
     Duration: N/A, start: 1500041497.684675, bitrate: N/A
       Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1854x1176, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc
    File 'screencast.mkv' already exists. Overwrite ? [y/N] y
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 0x1fe3040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0x1fe3040] profile High 4:4:4 Predictive, level 4.2, 4:4:4 8-bit
    [libx264 @ 0x1fe3040] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - 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=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=4000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, matroska, to 'screencast.mkv':
     Metadata:
       encoder         : Lavf57.75.100
       Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1854x1176, q=-1--1, 4000 kb/s, 25 fps, 1k tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.100.104 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/4000000 buffer size: 0 vbv_delay: -1
    [swscaler @ 0x1fe94e0] Warning: data is not aligned! This can lead to a speedloss
    frame=  179 fps= 36 q=-1.0 Lsize=      16kB time=00:00:07.04 bitrate=  18.8kbits/s speed=1.43x    
    video:14kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 12.869934%
    [libx264 @ 0x1fe3040] frame I:1     Avg QP: 6.00  size:   518
    [libx264 @ 0x1fe3040] frame P:45    Avg QP: 0.44  size:    81
    [libx264 @ 0x1fe3040] frame B:133   Avg QP: 0.94  size:    73
    [libx264 @ 0x1fe3040] consecutive B-frames:  0.6%  1.1%  0.0% 98.3%
    [libx264 @ 0x1fe3040] mb I  I16..4:  0.0% 100.0%  0.0%
    [libx264 @ 0x1fe3040] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
    [libx264 @ 0x1fe3040] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
    [libx264 @ 0x1fe3040] final ratefactor: -23.85
    [libx264 @ 0x1fe3040] 8x8 transform intra:100.0%
    [libx264 @ 0x1fe3040] coded y,u,v intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
    [libx264 @ 0x1fe3040] i16 v,h,dc,p:  0%  0% 100%  0%
    [libx264 @ 0x1fe3040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  0%  0% 100%  0%  0%  0%  0%  0%  0%
    [libx264 @ 0x1fe3040] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0x1fe3040] kb/s:15.56

    Using : Ubuntu 16.04.2 LTS

    I have successfully accomplished to capture the display :50 with "simplescreenrecorder", but that tool has no command line interface. It uses ffmpeg also, so it somehow should be possible to caputure the display but I can´t get it to work properly.