Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (63)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

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

  • 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 (4580)

  • Anomalie #4803 (Nouveau) : Nouvelles URLs possiblement en doublon si pages uniques

    31 mai 2021

    Sur un site avec des URLs arborescentes.

    J’ai une rubrique non publiée intitulée « Abonnements » et qui possède l’url boutique-livres/abonnements (dans la table, url = abonnements).
    Je crée une page unique avec le même titre, elle se voit attribuée l’url abonnements, mais l’url finale est celle de la rubrique : boutique-livres/abonnements (avec #URL_ARTICLE, « voir en ligne », etc.).

    url type id_objet date id_parent segments perma langue
    abonnements rubrique 1145 2017-12-19 15:32:01 706 1 0 fr
    abonnements article 100812 2021-05-31 09:48:17 -1 1 0

    J’hésite à ouvrir un ticket sur le plugin pages uniques, j’imagine que c’est le id_parent = -1 qui brouille les cartes.
    Peut-être que c’est un cas de figure qui devrait être pris en compte dans urls avancées ?

  • avcodec/ac3 : Remove unused fixed-point ARMv7 DSP

    18 avril 2024, par Geoff Hill
    avcodec/ac3 : Remove unused fixed-point ARMv7 DSP
    

    This diff removes 4 unused ARMv7 NEON fixed-point DSP functions.

    The function were originally moved here by 4958f35a2 (Dec 2013).

    After 9e05421db (Jan 2021), as part of the refactor of the AC3
    DSP to consistently use 32-bit sample format in the encoder, these
    functions were removed from the DSP function table, but the ARMv7
    implementations were kept.

    Signed-off-by : Geoff Hill <geoff@geoffhill.org>

    • [DH] libavcodec/arm/ac3dsp_neon.S
  • How to get snapshot from video memorystream or byte[] using FFmpegCore instead of file path ?

    12 juillet 2024, par Akash Kadia

    I am trying to get snapshots from video data that can be in a MemoryStream OR Byte[] but not located on physical file path. FFMpegCore provide option to use Arguments with PipeSource but not sure how to use it. I have updated code for taking snapshot from Stream as below but it gives

    &#xA;

    public static async Task<bitmap> SnapshotAsync(Stream input, IMediaAnalysis source, Size? size = null, TimeSpan? captureTime = null, int? streamIndex = null, int inputFileIndex = 0)&#xA;    {&#xA;        input.Seek(0, SeekOrigin.Begin);&#xA;        FFMpegCore.Pipes.StreamPipeSource streamPipeSource = new FFMpegCore.Pipes.StreamPipeSource(input);&#xA;        var (arguments, outputOptions) = BuildSnapshotArguments(streamPipeSource, source, size, captureTime, streamIndex, inputFileIndex);&#xA;        using var ms = new MemoryStream();&#xA;&#xA;        await arguments&#xA;            .OutputToPipe(new StreamPipeSink(ms), options => outputOptions(options&#xA;                .ForceFormat("rawvideo")))&#xA;            .ProcessAsynchronously().ConfigureAwait(false);&#xA;&#xA;        ms.Position = 0;&#xA;        return new Bitmap(ms);&#xA;    }&#xA;&#xA;    private static (FFMpegArguments, Action<ffmpegargumentoptions> outputOptions) BuildSnapshotArguments(&#xA;        IPipeSource input,&#xA;        IMediaAnalysis source,&#xA;        Size? size = null,&#xA;        TimeSpan? captureTime = null,&#xA;        int? streamIndex = null,&#xA;        int inputFileIndex = 0)&#xA;    {&#xA;        captureTime ??= TimeSpan.FromSeconds(source.Duration.TotalSeconds / 3);&#xA;        size = PrepareSnapshotSize(source, size);&#xA;        streamIndex ??= source.PrimaryVideoStream?.Index&#xA;                        ?? source.VideoStreams.FirstOrDefault()?.Index&#xA;                        ?? 0;&#xA;&#xA;        return (FFMpegArguments&#xA;            .FromPipeInput(input, options => options&#xA;                 .Seek(captureTime)),&#xA;            options => options&#xA;                .SelectStream((int)streamIndex, inputFileIndex)&#xA;                .WithVideoCodec(VideoCodec.Png)&#xA;                .WithFrameOutputCount(1)&#xA;                .Resize(size));&#xA;    }&#xA;   &#xA;    private static Size? PrepareSnapshotSize(IMediaAnalysis source, Size? wantedSize)&#xA;    {&#xA;        if (wantedSize == null || (wantedSize.Value.Height &lt;= 0 &amp;&amp; wantedSize.Value.Width &lt;= 0) || source.PrimaryVideoStream == null)&#xA;            return null;&#xA;&#xA;        var currentSize = new Size(source.PrimaryVideoStream.Width, source.PrimaryVideoStream.Height);&#xA;        if (source.PrimaryVideoStream.Rotation == 90 || source.PrimaryVideoStream.Rotation == 180)&#xA;            currentSize = new Size(source.PrimaryVideoStream.Height, source.PrimaryVideoStream.Width);&#xA;&#xA;        if (wantedSize.Value.Width != currentSize.Width || wantedSize.Value.Height != currentSize.Height)&#xA;        {&#xA;            if (wantedSize.Value.Width &lt;= 0 &amp;&amp; wantedSize.Value.Height > 0)&#xA;            {&#xA;                var ratio = (double)wantedSize.Value.Height / currentSize.Height;&#xA;                return new Size((int)(currentSize.Width * ratio), (int)(currentSize.Height * ratio));&#xA;            }&#xA;            if (wantedSize.Value.Height &lt;= 0 &amp;&amp; wantedSize.Value.Width > 0)&#xA;            {&#xA;                var ratio = (double)wantedSize.Value.Width / currentSize.Width;&#xA;                return new Size((int)(currentSize.Width * ratio), (int)(currentSize.Height * ratio));&#xA;            }&#xA;            return wantedSize;&#xA;        }&#xA;&#xA;        return null;&#xA;    }&#xA;</ffmpegargumentoptions></bitmap>

    &#xA;

    it is giving error under SnapShotAsync function at this line

    &#xA;

    await arguments&#xA;            .OutputToPipe(new StreamPipeSink(ms), options => outputOptions(options&#xA;                .ForceFormat("rawvideo")))&#xA;            .ProcessAsynchronously().ConfigureAwait(false);&#xA;

    &#xA;

    here is full error message

    &#xA;

    &#xA;

    ffmpeg exited with non-zero exit-code (1 - ffmpeg version 2021-04-04-git-b1b7cc698b-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers&#xA;built with gcc 10.2.0 (Rev6, Built by MSYS2 project)&#xA;configuration : —enable-gpl —enable-version3 —enable-static —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-lzma —enable-libsnappy —enable-zlib —enable-librist —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-libbluray —enable-libcaca —enable-sdl2 —enable-libdav1d —enable-libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxvid —enable-libaom —enable-libopenjpeg —enable-libvpx —enable-libass —enable-frei0r —enable-libfreetype —enable-libfribidi —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-d3d11va —enable-dxva2 —enable-libmfx —enable-libglslang —enable-vulkan —enable-opencl —enable-libcdio —enable-libgme —enable-libmodplug —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libshine —enable-libtheora —enable-libtwolame —enable-libvo-amrwbenc —enable-libilbc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-ladspa —enable-libbs2b —enable-libflite —enable-libmysofa —enable-librubberband —enable-libsoxr —enable-chromaprint&#xA;libavutil 56. 72.100 / 56. 72.100&#xA;libavcodec 58.135.100 / 58.135.100&#xA;libavformat 58. 77.100 / 58. 77.100&#xA;libavdevice 58. 14.100 / 58. 14.100&#xA;libavfilter 7.111.100 / 7.111.100&#xA;libswscale 5. 10.100 / 5. 10.100&#xA;libswresample 3. 10.100 / 3. 10.100&#xA;libpostproc 55. 10.100 / 55. 10.100&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 000001c78845f040] Could not find codec parameters for stream 0 (Video : h264 (avc1 / 0x31637661), none, 1280x720, 4716 kb/s) : unspecified pixel format&#xA;Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '\.\pipe\FFMpegCore_4599336d-fbf8-430e-ab89-19082c7d3693' :&#xA;Metadata :&#xA;major_brand : mp42&#xA;minor_version : 0&#xA;compatible_brands : mp41isom&#xA;creation_time : 2021-11-17T11:53:33.000000Z&#xA;Duration : 00:00:03.62, start : 0.000000, bitrate : N/A&#xA;Stream #0:0(und) : Video : h264 (avc1 / 0x31637661), none, 1280x720, 4716 kb/s, 15.20 fps, 15.08 tbr, 30k tbn, 60k tbc (default)&#xA;Metadata :&#xA;creation_time : 2021-11-17T11:53:33.000000Z&#xA;handler_name : VideoHandler&#xA;vendor_id : [0][0][0][0]&#xA;encoder : AVC Coding&#xA;Stream #0:1(und) : Audio : aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 170 kb/s (default)&#xA;Metadata :&#xA;creation_time : 2021-11-17T11:53:33.000000Z&#xA;handler_name : SoundHandler&#xA;vendor_id : [0][0][0][0]&#xA;Stream mapping :&#xA;Stream #0:0 -> #0:0 (h264 (native) -> png (native))&#xA;Press [q] to stop, [?] for help&#xA;\.\pipe\FFMpegCore_4599336d-fbf8-430e-ab89-19082c7d3693 : Invalid argument&#xA;Cannot determine format of input stream 0:0 after EOF&#xA;Error marking filters as finished&#xA;Conversion failed !)

    &#xA;

    &#xA;

    I am just passing a video file

    &#xA;

        using (Stream fms = File.OpenRead(txtVideoPath.Text))&#xA;            {&#xA;                fms.Seek(0, SeekOrigin.Begin);&#xA;                using (MemoryStream vms = new MemoryStream())&#xA;                {&#xA;                    fms.CopyTo(vms);&#xA;                    vms.Seek(0, SeekOrigin.Begin);&#xA;--pass vms to snapshot function&#xA;                    ....&#xA;                }&#xA;            }&#xA;

    &#xA;

    is there any way to get snapshot from stream without storing file physically ?

    &#xA;