Recherche avancée

Médias (91)

Autres articles (96)

  • 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

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (8571)

  • VideoJS seekable().end(0) always returns 0

    18 septembre 2022, par Clovis Nyu

    I am trying to jump to a particular timestamp of a video, but using player.currentTime(someTime) always sends the video back to the start. Upon doing some research, I found that running player.seekable().end(0) always returns 0. I realize that this might be a problem with the fact that I'm using MP4, but I've tried using

    


    ffmpeg -i input.mp4 -c copy -movflags +faststart output.mp4


    


    to fix it and it doesn't work. Below is my code

    


    &#xA;&#xA;    &#xA;&#xA;&#xA;    <source src="http://localhost:8000/some_video.mp4" type="video/mp4"></source>&#xA;    <p class="vjs-no-js">&#xA;        To view this video please enable JavaScript, and consider upgrading to a&#xA;        web browser that&#xA;        <a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video&#xA;    </a></p>&#xA;&#xA;&#xA;<button>Jump</button>&#xA;&#xA;<code class="echappe-js">&lt;script src=&quot;https://vjs.zencdn.net/7.7.5/video.js&quot;&gt;&lt;/script&gt;&#xA;&lt;script&gt;&amp;#xA;    var VIDEO_JS = videojs(&amp;#x27;my-video&amp;#x27;);&amp;#xA;&amp;#xA;    function jump() {&amp;#xA;        VIDEO_JS.currentTime(10);&amp;#xA;    }&amp;#xA;&lt;/script&gt;&#xA;&#xA;

    &#xA;

    For more context, the videos are taken from youtube, the audio is then split into vocals and accompaniment using spleeter, then ffmpeg is used to merge back the resulting audio files into the original video.

    &#xA;

    Any help would be appreciated. Thanks !

    &#xA;

  • ffmpeg : avcodec_open2 returns invalid argument

    26 octobre 2020, par roari

    I'm reusing the sample code from the developer 64-bit release of FFmpeg in my application to encode a video :

    &#xA;

    AVCodec* pCodec_{nullptr};&#xA;AVCodecContext* pContext_{nullptr};&#xA;&#xA;avcodec_register_all();&#xA;pCodec_ = avcodec_find_encoder(AV_CODEC_ID_MPEG2VIDEO);&#xA;if (!pCodec_) {}&#xA;&#xA;pContext_ = avcodec_alloc_context3(pCodec_);&#xA;if (!pContext_) {}&#xA;&#xA;pContext_->bit_rate = 400000;&#xA;pContext_->width = size.width();&#xA;pContext_->height = size.height();&#xA;&#xA;pContext_->time_base.den = 1;&#xA;pContext_->time_base.num = fps;&#xA;&#xA;pContext_->gop_size = 10;&#xA;pContext_->max_b_frames = 1;&#xA;pContext_->pix_fmt = AV_PIX_FMT_BGR0;&#xA;&#xA;if (codec_id == AV_CODEC_ID_H264) {&#xA;    av_opt_set(pContext_->priv_data, "preset", "slow", 0);&#xA;}&#xA;&#xA;int err = avcodec_open2(pContext_, pCodec_, nullptr);&#xA;if (err &lt; 0) {}&#xA;

    &#xA;

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

    &#xA;

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

    &#xA;

    The sample I took the code from is decoding_encoding.c.

    &#xA;

    Any ideas ?

    &#xA;

  • pngdec : Stop trying to decode once inflate returns Z_STREAM_END

    28 septembre 2013, par Martin Storsjö
    pngdec : Stop trying to decode once inflate returns Z_STREAM_END
    

    If the input buffer contains more data after the deflate stream,
    the loop previously left running infinitely, with inflate returning
    Z_STREAM_END.

    Reported-by : Mateusz "j00ru" Jurczyk and Gynvael Coldwind
    CC : libav-stable@libav.org
    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavcodec/pngdec.c