Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (89)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8787)

  • ffmpeg : avcodec_open2 returns invalid argument

    12 mai 2016, par roari

    i’m reusing the sample code from the developer 64bit release of ffmpeg in my application to encode a video :

    AVCodec* pCodec_{nullptr};
    AVCodecContext* pContext_{nullptr};

    avcodec_register_all();
    pCodec_ = avcodec_find_encoder(AV_CODEC_ID_MPEG2VIDEO);
    if (!pCodec_) {}

    pContext_ = avcodec_alloc_context3(pCodec_);
    if (!pContext_) {}

    pContext_->bit_rate = 400000;
    pContext_->width = size.width();
    pContext_->height = size.height();

    pContext_->time_base.den = 1;
    pContext_->time_base.num = fps;

    pContext_->gop_size = 10;
    pContext_->max_b_frames = 1;
    pContext_->pix_fmt = AV_PIX_FMT_BGR0;

    if (codec_id == AV_CODEC_ID_H264) {
       av_opt_set(pContext_->priv_data, "preset", "slow", 0);
    }

    int err = avcodec_open2(pContext_, pCodec_, nullptr);
    if (err < 0) {}

    AVCodec* and AVCodecContext* look like they are allocated correctly. avcodec_open2 then returns invalid argument (-22).

    I use : Windows 10 64, VS2013 Compiler, Qt Creator IDE, ffmpeg(2016-05-12) 64bit.

    The sample i took the code from is "decoding_encoding.c".

    Any ideas ?

  • avutil/rational : Check that av_reduce() returns values within the requested max

    29 décembre 2014, par Michael Niedermayer
    avutil/rational : Check that av_reduce() returns values within the requested max
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavutil/rational.c
  • webm live input to HLS live output

    15 avril 2021, par Lewis Tyler

    I have ben struggling with this for quite some time ; Essentially what I'm trying to do is broadcast my webcam from within the Browser to Ffmpeg on the server to convert into a .m3u8 HLS live stream. But I am having a few problems with video playback I initially thought it was CORS and cross origin headers however now I am thinking its to do with the way I'm trying to encode the media.

    &#xA;

    I did a ffprobe on the input this was the response ;

    &#xA;

    SERVER:key destination set to:1618380585-6666-863686008-4444-21&#xA;FFMPEG:Input #0, matroska,webm, from &#x27;pipe:&#x27;:&#xA;  Metadata:&#xA;    encoder         : Chrome&#xA;  Duration: &#xA;FFMPEG:N/A, start: 0.000000, bitrate: N/A&#xA;    Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)&#xA;    Stream #0:1(eng): Video: h264 (Constrained Baseline), yuv420p, 640x480, SAR 1:1 DAR 4:3, 30.30 fps, 30 tbr, 1k tbn, 60 tbc (default)&#xA;

    &#xA;

    I am wondering if someone could help with the ffmpeg parameters ; I am currently using the following ;

    &#xA;

        var ops=[&#xA;        &#x27;-r&#x27;, &#x27;17&#x27;,&#xA;        &#x27;-i&#x27;,&#x27;-&#x27;,&#xA;        &#x27;-strict&#x27;, &#x27;-2&#x27;,&#xA;        &#x27;-vf&#x27;, &#x27;scale=w=1280:h=720:force_original_aspect_ratio=decrease&#x27;,&#xA;        &#x27;-c:a&#x27;, &#x27;aac&#x27;,&#xA;        &#x27;-ar&#x27;, &#x27;48000&#x27;,&#xA;        &#x27;-b:a&#x27;, &#x27;128k&#x27;,&#xA;        &#x27;-c:v&#x27;, &#x27;h264&#x27;,&#xA;        &#x27;-profile:v&#x27;, &#x27;main&#x27;,&#xA;        &#x27;-crf&#x27;, &#x27;20&#x27;,&#xA;        &#x27;-g&#x27;, &#x27;48&#x27;,&#xA;        &#x27;-keyint_min&#x27;, &#x27;48&#x27;,&#xA;        &#x27;-sc_threshold&#x27;, &#x27;0&#x27;,&#xA;        &#x27;-hls_time&#x27;, &#x27;4&#x27;,       &#xA;        &#x27;-hls_segment_filename&#x27;, &#x27;/var/www/html/streams/segments/streamKey-date-%02d.ts&#x27;,&#xA;        &#x27;-hls_base_url&#x27;, &#x27;/streams/segments/&#x27;,&#xA;        &#x27;/var/www/html/streams/streamKey.m3u8&#x27;&#xA;    ];&#xA;

    &#xA;

    I have also run into other problems and I was also wondering if i needed to build ffmpeg differently ; here is the current build I am running ; I only wonder this becuase when i try to add the -hls_playlist_type live parameter I get a response of not found.

    &#xA;

    ffmpeg version 2.8.17-0ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g&#x2B;&#x2B; --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv&#xA;  libavutil      54. 31.100 / 54. 31.100&#xA;  libavcodec     56. 60.100 / 56. 60.100&#xA;  libavformat    56. 40.101 / 56. 40.101&#xA;  libavdevice    56.  4.100 / 56.  4.100&#xA;  libavfilter     5. 40.101 /  5. 40.101&#xA;  libavresample   2.  1.  0 /  2.  1.  0&#xA;  libswscale      3.  1.101 /  3.  1.101&#xA;  libswresample   1.  2.101 /  1.  2.101&#xA;  libpostproc    53.  3.100 / 53.  3.100&#xA;Hyper fast Audio and Video encoder&#xA;usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...&#xA;

    &#xA;

    EDIT

    &#xA;

    I have also included an example .m3u8

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-TARGETDURATION:6&#xA;#EXT-X-MEDIA-SEQUENCE:0&#xA;#EXTINF:5.647056,&#xA;/streams/segments/1618380585-6666-863686008-4444-21-668-00.ts&#xA;#EXTINF:2.823533,&#xA;/streams/segments/1618380585-6666-863686008-4444-21-668-01.ts&#xA;#EXTINF:5.647056,&#xA;/streams/segments/1618380585-6666-863686008-4444-21-668-02.ts&#xA;#EXTINF:0.294122,&#xA;/streams/segments/1618380585-6666-863686008-4444-21-668-03.ts&#xA;#EXT-X-ENDLIST&#xA;

    &#xA;