Recherche avancée

Médias (0)

Mot : - Tags -/gis

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (98)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

Sur d’autres sites (9171)

  • brew install ffmpeg installs python 3.9

    13 novembre 2020, par mrgloom

    For some reason brew install ffmpeg downloads python 3.9 as dependence

    


    ==> Installing dependencies for ffmpeg: gnutls, python@3.9, glib, cairo, gobject-introspection, harfbuzz, libass and libvpx


    


    As I can see here https://formulae.brew.sh/formula/ffmpeg there is no dependence on python 3.9

    


    How can I install ffmpeg for my current python Python 3.7.7 ?

    


    Update :

    


    Maybe something is broken in my python installation ?

    


    brew info python&#xA;&#xA;python@3.9: stable 3.9.0 (bottled)&#xA;Interpreted, interactive, object-oriented programming language&#xA;https://www.python.org/&#xA;/usr/local/Cellar/python/3.7.7 (4,165 files, 64.0MB) *&#xA;  Poured from bottle on 2020-04-03 at 20:11:58&#xA;From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/python@3.9.rb&#xA;License: Python-2.0&#xA;==> Dependencies&#xA;Build: pkg-config ✔&#xA;Required: gdbm ✔, openssl@1.1 ✔, readline ✔, sqlite ✔, xz ✔&#xA;==> Caveats&#xA;Python has been installed as&#xA;  /usr/local/bin/python3&#xA;&#xA;Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to&#xA;`python3`, `python3-config`, `pip3` etc., respectively, have been installed into&#xA;  /usr/local/opt/python@3.9/libexec/bin&#xA;&#xA;You can install Python packages with&#xA;  pip3 install <package>&#xA;They will install into the site-package directory&#xA;  /usr/local/lib/python3.9/site-packages&#xA;&#xA;See: https://docs.brew.sh/Homebrew-and-Python&#xA;==> Analytics&#xA;install: 588,344 (30 days), 666,372 (90 days), 666,373 (365 days)&#xA;install-on-request: 104,126 (30 days), 105,703 (90 days), 105,705 (365 days)&#xA;build-error: 0 (30 days)&#xA;</package>

    &#xA;

    brew info shows python@3.9 but actually it's 3.7.7 :

    &#xA;

    /usr/local/bin/python3 -V&#xA;Python 3.7.7&#xA;

    &#xA;

  • ffmpeg : PNGs to mp4 video is strange scaled quicktime

    15 mai 2024, par v_b

    I am trying to create a video from multiple PNG files.
    &#xA;The files contain an animation of a line.
    &#xA;However, the output MP4 video looks really strange, as if the content is stretched or scaled.

    &#xA;

    Below, you can see screenshots of one of the PNG files and the resulting video file.

    &#xA;

    Some additional information :
    &#xA;I am on a MacPro M3 w. latest MacOs updates.
    &#xA;The images have transparent backgrounds.

    &#xA;

    Command :

    &#xA;

    ffmpeg -framerate 30 -pattern_type glob -i "*.png" -s:v 1600x800 -pix_fmt yuv420p -c:v libx264 result.mp4&#xA;

    &#xA;

    Example PNG file :&#xA;enter image description here

    &#xA;

    PNG Information :&#xA;enter image description here

    &#xA;

    Resulting Video :&#xA;enter image description here

    &#xA;

    Video Info :

    &#xA;

    ffprobe ./result.mp4                                                                &#xA;ffprobe version 7.0 Copyright (c) 2007-2024 the FFmpeg developers&#xA;  built with Apple clang version 15.0.0 (clang-1500.3.9.4)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenvino --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;./result.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf61.1.100&#xA;  Duration: 00:00:03.03, start: 0.000000, bitrate: 103 kb/s&#xA;  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, unknown/bt709/iec61966-2-1, progressive), 1600x800, 98 kb/s, 30 fps, 30 tbr, 15360 tbn (default)&#xA;      Metadata:&#xA;        handler_name    : VideoHandler&#xA;        vendor_id       : [0][0][0][0]&#xA;        encoder         : Lavc61.3.100 libx264&#xA;

    &#xA;

    ffmpeg version

    &#xA;

    ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developers&#xA;  built with Apple clang version 15.0.0 (clang-1500.3.9.4)&#xA;  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=&#x27;-Wl,-ld_classic&#x27; --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopenvino --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon&#xA;  libavutil      59.  8.100 / 59.  8.100&#xA;  libavcodec     61.  3.100 / 61.  3.100&#xA;  libavformat    61.  1.100 / 61.  1.100&#xA;  libavdevice    61.  1.100 / 61.  1.100&#xA;  libavfilter    10.  1.100 / 10.  1.100&#xA;  libswscale      8.  1.100 /  8.  1.100&#xA;  libswresample   5.  1.100 /  5.  1.100&#xA;  libpostproc    58.  1.100 / 58.  1.100&#xA;Universal media converter&#xA;usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&#xA;

    &#xA;

  • Why does every encoded frame's size increase after I had use to set one frame to be key in intel qsv of ffmpeg

    22 avril 2021, par TONY

    I used intel's qsv to encode h264 video in ffmpeg. My av codec context settings is like as below :

    &#xA;

     m_ctx->width = m_width;&#xA;    m_ctx->height = m_height;&#xA;    m_ctx->time_base = { 1, (int)fps };&#xA;    m_ctx->qmin = 10;&#xA;    m_ctx->qmax = 35;&#xA;    m_ctx->gop_size = 3000;&#xA;    m_ctx->max_b_frames = 0;&#xA;    m_ctx->has_b_frames = false;&#xA;    m_ctx->refs = 2;&#xA;    m_ctx->slices = 0;&#xA;    m_ctx->codec_id = m_encoder->id;&#xA;    m_ctx->codec_type = AVMEDIA_TYPE_VIDEO;&#xA;    m_ctx->pix_fmt = m_h264InputFormat;&#xA;    m_ctx->compression_level = 4;&#xA;    m_ctx->flags &amp;= ~AV_CODEC_FLAG_CLOSED_GOP;&#xA;    AVDictionary *param = nullptr;&#xA;    av_dict_set(&amp;param, "idr_interval", "0", 0);&#xA;    av_dict_set(&amp;param, "async_depth", "1", 0);&#xA;    av_dict_set(&amp;param, "forced_idr", "1", 0);&#xA;

    &#xA;

    and in the encoding, I set the AVFrame to be AV_PICTURE_TYPE_I when key frame is needed :

    &#xA;

      if(key_frame){&#xA;        encodeFrame->pict_type = AV_PICTURE_TYPE_I;&#xA;    }else{&#xA;        encodeFrame->pict_type = AV_PICTURE_TYPE_NONE;&#xA;    }&#xA;    avcodec_send_frame(m_ctx, encodeFrame);&#xA;    avcodec_receive_packet(m_ctx, m_packet);&#xA;   std::cerr&lt;&lt;"packet size is "&lt;size&lt;&lt;",is key frame "&lt;code>

    &#xA;

    The strange phenomenon is that if I had set one frame to AV_PICTURE_TYPE_I, then every encoded frame's size after the key frame would increase. If I change the h264 encoder to x264, then it's ok.

    &#xA;

    The packet size is as below before I call "encodeFrame->pict_type = AV_PICTURE_TYPE_I" :

    &#xA;

    packet size is 26839&#xA;packet size is 2766&#xA;packet size is 2794&#xA;packet size is 2193&#xA;packet size is 1820&#xA;packet size is 2542&#xA;packet size is 2024&#xA;packet size is 1692&#xA;packet size is 2095&#xA;packet size is 2550&#xA;packet size is 1685&#xA;packet size is 1800&#xA;packet size is 2276&#xA;packet size is 1813&#xA;packet size is 2206&#xA;packet size is 2745&#xA;packet size is 2334&#xA;packet size is 2623&#xA;packet size is 2055&#xA;

    &#xA;

    If I call "encodeFrame->pict_type = AV_PICTURE_TYPE_I", then the packet size is as below :

    &#xA;

    packet size is 23720,is key frame 1&#xA;packet size is 23771,is key frame 0&#xA;packet size is 23738,is key frame 0&#xA;packet size is 23752,is key frame 0&#xA;packet size is 23771,is key frame 0&#xA;packet size is 23763,is key frame 0&#xA;packet size is 23715,is key frame 0&#xA;packet size is 23686,is key frame 0&#xA;packet size is 23829,is key frame 0&#xA;packet size is 23774,is key frame 0&#xA;packet size is 23850,is key frame 0&#xA;

    &#xA;