Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (63)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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" (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (6837)

  • Revert "avcodec/nvenc : fix b-frame DTS behavior with fractional framerates"

    14 juin 2023, par Timo Rothenpieler
    Revert "avcodec/nvenc : fix b-frame DTS behavior with fractional framerates"
    

    This reverts commit 9a245bdf5d7860b8bc5e5c21a105a075925b719a.

    This commit basically broke all samples with fractional framerates,
    rather than fixing them.
    I at this point do not understand the original issue anymore, and I'm
    not sure how this slipped my initial testing.
    All my test samples must have happened to have a simple timebase.

    The actual dts values pretty much always are just a simple chain of
    1,2,3,4,5,... Or maybe slightly bigger steps. Each increase by one means
    an advance in time by one unit of the timebase.
    So a fractional framerate/timebase is already not an issue.

    So with this patch applied, the calculation might end up substracting
    huge values (1001 is a common one) from the dts, which would be an
    offset of that many frames, not of that many fractions of a second.
    This broke at least muxing into mp4, if the sample happened to have a
    fractional framerate.

    I do not thing the original issue this patch tried to fix existed in the
    first place, so it can be reverted without further consequences.

    • [DH] libavcodec/nvenc.c
  • Adding Subtitles to a VAAPI/QSV 10bit Accelerated Transcode

    17 juin 2023, par Enverex

    I've been converting some of my BluRays to watch on a streaming machine elsewhere in the house but I'm having trouble when it comes to burning subtitles, or more specifically, I'm having trouble figuring out what FFMPEG wants from me to make the process actually work.

    


    It's easy enough to do this in software, but I'm using hardware decoding and encoding and that's where the complexity seems to come from (VAAPI/QSV for decoding, QSV AV1 for encoding).

    


    I can use the following when dealing with SDR content :

    


    -vf "scale_vaapi=w='min(1920,iw)':h=-8:mode=nl_anamorphic:format=p010le:extra_hw_frames=120,hwmap=derive_device=qsv,format=qsv"


    


    And the following when dealing with HDR content :

    


    -vf "scale_vaapi=w='min(1920,iw)':h=-8:mode=nl_anamorphic:format=p010le,tonemap_vaapi=format=p010le:t=bt709:m=bt709:p=bt709:extra_hw_frames=120,hwmap=derive_device=qsv,format=qsv"


    


    But I cannot, in the hundreds of permutations I've tried now, find a single way to shoehorn subtitle baking into the process. I'm using SRT files for simplicity, so I just need to add subtitles=blah.srt somewhere to get it to work, but the crux of the issue is knowing where in the chain it needs to go and more importantly, what supporting arguments it needs with it (e.g. hwupload, hwdownload, and their associated switches, etc).

    


    Pretty much every single attempt just results in :

    


    


    Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
Error reinitializing filters !
Failed to inject frame into filter network : Function not implemented

    


    


    So, what am I missing ?

    


  • Convert mp4/mov/... to mp4 with fluent-ffmpeg

    13 octobre 2023, par Sam Leurs

    I have a lambda function which reads a video from s3, converts it with fluent-ffmpeg and streams the video back to (another bucket in) s3.

    


    This is the code so far :

    


        ffmpeg()
        .input(readstream.Body)
        .format('mp4')
        .addOutputOption("-preset veryfast")
        .addOutputOption("-movflags frag_keyframe+empty_moov")
        .addOutputOption("-crf 28")
        .output(writestream, { end: true })
        .on('error', (err, stdout, stderr) => {
            console.log(err);
            console.log('Stdout: %o', stdout);
            console.log('Stderr: %o', stderr);
        })
        .run();


    


    With an input mp4 file, this code works, but with a mov-file it fails. I get the following error :

    


    Error: ffmpeg exited with code 1: Error demuxing input file 0: Invalid data found when processing input&#xA;pipe:0: Invalid data found when processing input&#xA;Cannot determine format of input stream 0:0 after EOF&#xA;Error marking filters as finished&#xA;Conversion failed!&#xA;&#xA;    at ChildProcess.<anonymous> (/opt/nodejs/node_modules/fluent-ffmpeg/lib/processor.js:182:22)&#xA;    at ChildProcess.emit (node:events:514:28)&#xA;    at ChildProcess._handle.onexit (node:internal/child_process:291:12)&#xA;2023-10-13T20:10:01.978Z    32c55766-476f-41e9-873a-038341f5630a    INFO    Stdout: &#x27;&#x27;&#xA;2023-10-13T20:10:01.978Z    32c55766-476f-41e9-873a-038341f5630a    INFO    Stderr: &#x27;ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2023 the FFmpeg developers\n&#x27; &#x2B;&#xA;  &#x27;  built with gcc 8 (Debian 8.3.0-6)\n&#x27; &#x2B;&#xA;  &#x27;  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg\n&#x27; &#x2B;&#xA;  &#x27;  libavutil      58.  2.100 / 58.  2.100\n&#x27; &#x2B;&#xA;  &#x27;  libavcodec     60.  3.100 / 60.  3.100\n&#x27; &#x2B;&#xA;  &#x27;  libavformat    60.  3.100 / 60.  3.100\n&#x27; &#x2B;&#xA;  &#x27;  libavdevice    60.  1.100 / 60.  1.100\n&#x27; &#x2B;&#xA;  &#x27;  libavfilter     9.  3.100 /  9.  3.100\n&#x27; &#x2B;&#xA;  &#x27;  libswscale      7.  1.100 /  7.  1.100\n&#x27; &#x2B;&#xA;  &#x27;  libswresample   4. 10.100 /  4. 10.100\n&#x27; &#x2B;&#xA;  &#x27;  libpostproc    57.  1.100 / 57.  1.100\n&#x27; &#x2B;&#xA;  &#x27;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5f71b00] stream 0, offset 0x24: partial file\n&#x27; &#x2B;&#xA;  &#x27;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5f71b00] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 1920x1080, 447 kb/s): unspecified pixel format\n&#x27; &#x2B;&#xA;  "Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options\n" &#x2B;&#xA;  "Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;pipe:0&#x27;:\n" &#x2B;&#xA;  &#x27;  Metadata:\n&#x27; &#x2B;&#xA;  &#x27;    major_brand     : qt  \n&#x27; &#x2B;&#xA;  &#x27;    minor_version   : 512\n&#x27; &#x2B;&#xA;  &#x27;    compatible_brands: qt  \n&#x27; &#x2B;&#xA;  &#x27;    encoder         : Lavf57.19.100\n&#x27; &#x2B;&#xA;  &#x27;  Duration: 00:00:30.53, start: 0.000000, bitrate: N/A\n&#x27; &#x2B;&#xA;  &#x27;  Stream #0:0[0x1](eng): Video: h264 (avc1 / 0x31637661), none, 1920x1080, 447 kb/s, 30 fps, 30 tbr, 15360 tbn (default)\n&#x27; &#x2B;&#xA;  &#x27;    Metadata:\n&#x27; &#x2B;&#xA;  &#x27;      handler_name    : VideoHandler\n&#x27; &#x2B;&#xA;  &#x27;      vendor_id       : FFMP\n&#x27; &#x2B;&#xA;  &#x27;      encoder         : Lavc57.16.101 libx264\n&#x27; &#x2B;&#xA;  &#x27;  Stream #0:1[0x2](eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 139 kb/s (default)\n&#x27; &#x2B;&#xA;  &#x27;    Metadata:\n&#x27; &#x2B;&#xA;  &#x27;      handler_name    : SoundHandler\n&#x27; &#x2B;&#xA;  &#x27;      vendor_id       : [0][0][0][0]\n&#x27; &#x2B;&#xA;  &#x27;Stream mapping:\n&#x27; &#x2B;&#xA;  &#x27;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))\n&#x27; &#x2B;&#xA;  &#x27;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))\n&#x27; &#x2B;&#xA;  &#x27;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5f71b00] stream 0, offset 0x24: partial file\n&#x27; &#x2B;&#xA;  &#x27;Error demuxing input file 0: Invalid data found when processing input\n&#x27; &#x2B;&#xA;  &#x27;pipe:0: Invalid data found when processing input\n&#x27; &#x2B;&#xA;  &#x27;Cannot determine format of input stream 0:0 after EOF\n&#x27; &#x2B;&#xA;  &#x27;Error marking filters as finished\n&#x27; &#x2B;&#xA;  &#x27;Conversion failed!\n&#x27;&#xA;</anonymous>

    &#xA;

    Is it possible to convert multiple filetypes with one fluent-ffmpeg chain. If not, can someone help me to make a chain for mov ?

    &#xA;