Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (98)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (13512)

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

  • Read a Bytes image from Amazon Kinesis output in python

    14 février 2020, par Varun_Rathinam

    I used imageio.get_reader(BytesIO(a),  'ffmpeg') to load a bytes image and save it as normal image.

    But the below error throws when I read the image using imageio.get_reader(BytesIO(a),  'ffmpeg')

    Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/core/functions.py", line 186, in get_reader
       return format.get_reader(request)
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/core/format.py", line 164, in get_reader
       return self.Reader(self, request)
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/core/format.py", line 214, in __init__
       self._open(**self.request.kwargs.copy())
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 323, in _open
       self._initialize()
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio/plugins/ffmpeg.py", line 466, in _initialize
       self._meta.update(self._read_gen.__next__())
     File "/home/tango/anaconda3/lib/python3.6/site-packages/imageio_ffmpeg/_io.py", line 150, in read_frames
       raise IOError(fmt.format(err2))
    OSError: Could not load meta information
    === stderr ===

    ffmpeg version 4.2 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
     configuration: --prefix=/home/tango/anaconda3 --cc=/home/conda/feedstock_root/build_artifacts/ffmpeg_1566210161358/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --disable-openssl --enable-avresample --enable-gnutls --enable-gpl --enable-hardcoded-tables --enable-libfreetype --enable-libopenh264 --enable-libx264 --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    [matroska,webm @ 0x5619b9da3cc0] File ended prematurely
    [matroska,webm @ 0x5619b9da3cc0] Could not find codec parameters for stream 0 (Video: h264, none, 1280x720): unspecified pixel format
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, matroska,webm, from '/tmp/imageio_zm6hhpgr':
     Metadata:
       title           : Kinesis Video SDK
       encoder         : Kinesis Video SDK 1.0.0
       AWS_KINESISVIDEO_FRAGMENT_NUMBER: 91343852333183888465720004820715065721442989478
       AWS_KINESISVIDEO_SERVER_TIMESTAMP: 1580791384.096
       AWS_KINESISVIDEO_PRODUCER_TIMESTAMP: 1580791377.843
     Duration: N/A, bitrate: N/A
       Stream #0:0(eng): Video: h264, none, 1280x720, SAR 1:1 DAR 16:9, 1k tbr, 1k tbn, 2k tbc (default)
       Metadata:
         title           : kinesis_video
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
    Press [q] to stop, [?] for help
    Cannot determine format of input stream 0:0 after EOF
    Error marking filters as finished
    Conversion failed!
    </module></stdin>

    The above approach to read a MKV bytes file was done based on this thread

    Or is there is any approach to parse and read the MKV bytes file.

  • ERROR:Output file #0 does not contain any stream (ffmpeg)

    27 décembre 2023, par Ali Asgher Badshah

    I am trying to make a thumbnail image from mp4 video using FFmpeg but I am getting the error that

    &#xA;

    &#xA;

    Output #0, image2, to 'output.jpg' :

    &#xA;

    Output file #0 does not contain any stream

    &#xA;

    &#xA;

    the command I used is

    &#xA;

    ffmpeg -i file_example_MP4_700KB.mp4 -ss 00:00:01 -vf thumbnail,scale=200:115 -qscale:v 2 -frames:v 1 -f image2 -c:v mjpeg output.jpg&#xA;

    &#xA;

    and I am not sure what I am doing wrong and I stuck throw it for so long.&#xA;Any suggestions will be good

    &#xA;

    I am using Ubuntu 18.*

    &#xA;

    full logs :-

    &#xA;

    ffmpeg version n4.1.4 Copyright (c) 2000-2019 the FFmpeg developers&#xA;built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)&#xA; configuration: --prefix= --prefix=/usr --disable-debug --disable-doc --disable-static --enable-avisynth --enable-cuda --enable-cuvid --enable- libdrm --enable-ffplay --enable-gnutls --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopus --enable-libpulse --enable-sdl2 --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-nonfree --enable-nvenc --enable-omx --enable-openal --enable-opencl --enable-runtime-cpudetect --enable-shared --enable-vaapi --enable-vdpau --enable-version3 --enable-xlib&#xA;libavutil      56. 22.100 / 56. 22.100&#xA;libavcodec     58. 35.100 / 58. 35.100&#xA;libavformat    58. 20.100 / 58. 20.100&#xA;libavdevice    58.  5.100 / 58.  5.100&#xA;libavfilter     7. 40.101 /  7. 40.101&#xA;libswscale      5.  3.100 /  5.  3.100&#xA;libswresample   3.  3.100 /  3.  3.100&#xA;libpostproc    55.  3.100 / 55.  3.100&#xA;Input #0, mp3, from &#x27;file_example_MP3_700KB.mp3&#x27;:&#xA;Metadata:&#xA;genre           : Cinematic&#xA;album           : YouTube Audio Library&#xA;title           : Impact Moderato&#xA;artist          : Kevin MacLeod&#xA;Duration: 00:00:27.25, start: 0.034531, bitrate: 224 kb/s&#xA;Stream #0:0: Audio: mp3, 32000 Hz, stereo, fltp, 224 kb/s&#xA;Metadata:&#xA;  encoder         : LAME3.99r&#xA;Output #0, image2, to &#x27;output.jpg&#x27;:&#xA;Output file #0 does not contain any stream&#xA;

    &#xA;