Recherche avancée

Médias (91)

Autres articles (13)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • 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

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

Sur d’autres sites (3894)

  • Invalid image height when converting a specific (seemingly valid) GIF to an mp4

    3 février 2020, par joe

    I’ve come across a weird GIF file on the internet that ffmpeg doesn’t seem to like. Try running the following commands :

    curl http://images6.fanpop.com/image/photos/34300000/Klaus-The-Originals-klaus-34349255-120-113.gif > input.gif
    ffmpeg -y -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4

    I get the following output with ffmpeg version 3.4.6 and 4.1.3 :

    ffmpeg version 4.1.3-0ubuntu1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 8 (Ubuntu 8.3.0-6ubuntu1)
     configuration: --prefix=/usr --extra-version=0ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, gif, from 'a.gif':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: gif, bgra, 120x113, 5 fps, 5 tbr, 100 tbn, 100 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (gif (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 0x5613f5420c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x5613f5420c80] profile High, level 1.0
    [libx264 @ 0x5613f5420c80] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=3 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=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 'o.mp4':
     Metadata:
       encoder         : Lavf58.20.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 120x112, q=-1--1, 5 fps, 10240 tbn, 5 tbc
       Metadata:
         encoder         : Lavc58.35.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [gif @ 0x5613f540edc0] Invalid image height.
    Error while decoding stream #0:0: Invalid data found when processing input
    [mp4 @ 0x5613f541f380] Starting second pass: moving the moov atom to the beginning of the file
    frame=    1 fps=0.0 q=23.0 Lsize=       3kB time=00:00:00.00 bitrate=253795.9kbits/s speed=0.0245x    
    video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 34.588745%
    [libx264 @ 0x5613f5420c80] frame I:1     Avg QP:21.16  size:  1622
    [libx264 @ 0x5613f5420c80] mb I  I16..4: 14.3% 42.9% 42.9%
    [libx264 @ 0x5613f5420c80] 8x8 transform intra:42.9%
    [libx264 @ 0x5613f5420c80] coded y,uvDC,uvAC intra: 67.9% 41.1% 33.9%
    [libx264 @ 0x5613f5420c80] i16 v,h,dc,p: 25% 38% 25% 12%
    [libx264 @ 0x5613f5420c80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8% 58% 18%  2%  3%  3%  1%  4%  2%
    [libx264 @ 0x5613f5420c80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 29% 15%  7%  7%  6%  5%  4%  3%
    [libx264 @ 0x5613f5420c80] i8c dc,h,v,p: 77%  5% 16%  2%
    [libx264 @ 0x5613f5420c80] kb/s:64.88
    Conversion failed!

    I’m a newbie with ffmpeg, but as far as I understand, the -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" scales the image so that it height and width are even numbers (needed for mp4 file format), so that should prevent this sort of error from occurring ?

    This looks very similar to this issue over at trac.ffmpeg.org, which has apparently been fixed.

  • FFMPEG JAVA ffmpeg doesn't work in .jar application

    3 février 2020, par xkenzzo

    FFMPEG works only in developer mode. When I compile my jar program it returns the following error
    the log of the program launched with eclipse in this case everything works

     ffmpeg version git-2019-12-29-e20c6d9 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. 38.100 / 56. 38.100
     libavcodec     58. 65.100 / 58. 65.100
     libavformat    58. 35.101 / 58. 35.101
     libavdevice    58.  9.101 / 58.  9.101
     libavfilter     7. 70.100 /  7. 70.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, h264, from '.h264':
     Duration: N/A, bitrate: N/A
       Stream #0:0: Video: h264 (Main), yuv420p(progressive), 3840x2160 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 1200k tbn, 120 tbc
    Output #0, mp4, to '.mp4':
     Metadata:
       encoder         : Lavf58.35.101
       Stream #0:0: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 60 fps, 60 tbr, 15360 tbn, 120 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [mp4 @ 000001cedad59440] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
    frame= 9273 fps=0.0 q=-1.0 Lsize=  121326kB time=00:01:17.26 bitrate=12863.3kbits/s speed= 207x    
    video:121287kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.032451%

    This is where it gets complicated. You can observe the messages that FFMPEG returns to me when I launch my program compile in jar :

    > [h264 @ 0000017c43e5b700] error while decoding MB 58 6, bytestream -14
    > [h264 @ 0000017c43e5b700] concealing 30951 DC, 30951 AC, 30951 MV
    > errors in I frame [h264 @ 0000017c43e49d80] Stream #0: not enough
    > frames to estimate rate; consider increasing probesize [h264 @
    > 0000017c43e49d80] decoding for stream 0 failed

    This is the java code which thanks to the ProcessBuilder will launch FFMPEG :

    String urlVideoMp4 = movie.getPath().replace(".h264", ".mp4");

    File videoFinal = new File(urlVideoMp4);
    //checking if new video exists : if not, creating it with FFMPEG

    LOG.info("moviePath : " + movie);
    ProcessBuilder processBuilder = new ProcessBuilder(FFMPEG, "-framerate", "60", "-r", "120", "-i", movie.getPath(),"-c:v", "copy", urlVideoMp4);
    LOG.debug(processBuilder.command());

    processBuilder.inheritIO().start().waitFor();

    return videoFinal;
  • MovieWriter ffmpeg unavailable ; trying to use instead

    28 janvier 2021, par user6882757

    Is there any way to use moving plot without ffmpeg ?

    



    import matplotlib.animation as animation
from IPython.display import HTML

fig, ax = plt.subplots(figsize=(15, 8))
animator = animation.FuncAnimation(fig, draw_barchart, frames=range(1968, 2019))
HTML(animator.to_jshtml()) 
animator.save('dynamic_images.mp4')


    



    My code is above, I am getting the key error.mp4', ValueError: unknown file extension: .mp4

    



    I tried installing conda install -c conda-forge ffmpeg end up with SSL issue

    



      

    • Is there any way to use moving plot without ffmpeg

    • 


    • As like error throwing is there any way to use 'matplotlib.animation.PillowWriter'

    • 


    



    Disclaimer : I went through the link https://www.wikihow.com/Install-FFmpeg-on-Windows but the URL is blocked by the IT team