Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (91)

  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • 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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (9930)

  • How to write a unit test class that creates a new process in C#

    12 mars 2023, par IceAge

    I have a question about how to write unit test method that creates a new process.

    


    At the moment I write a normal unit test to create a process, but it's very difficult to setup.

    


    This is my code I want to test.

    


    using System;&#xA;using System.Collections.Generic;&#xA;using System.Diagnostics;&#xA;using System.IO;&#xA;using System.Linq;&#xA;using System.Text;&#xA;using System.Text.RegularExpressions;&#xA;using System.Threading.Tasks;&#xA;&#xA;namespace xxx&#xA;{&#xA;    public class FFmPeg&#xA;    {&#xA;        private Process _process;&#xA;        private string ffmpegPath { get; set; }&#xA;        private Regex _durationRegex;&#xA;&#xA;        public event EventHandler<string> OutputData;&#xA;        public event EventHandler<int> ProgressChange;&#xA;&#xA;        public FFmPeg()&#xA;        {&#xA;            _process = new Process();&#xA;            ffmpegPath = Path.Combine(Directory.GetCurrentDirectory(), "engine", "ffmpeg.exe");&#xA;        }&#xA;&#xA;        public void Run(string Argument)&#xA;        {&#xA;            _process.StartInfo.FileName = ffmpegPath;&#xA;            _process.StartInfo.Arguments = $"{Argument} -y";&#xA;            _process.StartInfo.UseShellExecute = false;&#xA;            _process.StartInfo.RedirectStandardOutput = true;&#xA;            _process.StartInfo.RedirectStandardError = true;&#xA;            _process.StartInfo.StandardOutputEncoding = Encoding.UTF8;&#xA;            _process.StartInfo.CreateNoWindow = true;&#xA;            _process.OutputDataReceived &#x2B;=(o,e) =>&#xA;                     {&#xA;                     };&#xA;            _process.ErrorDataReceived &#x2B;= (o, e) =>&#xA;            {&#xA;                if (string.IsNullOrEmpty(e.Data) == false)&#xA;                {&#xA;                    OnProgressChange(OutputExtractor.GetProgress(e.Data));&#xA;                }//end if.check data is not empty&#xA;            };&#xA;&#xA;            _process.Start();&#xA;            _process.BeginOutputReadLine();&#xA;            _process.BeginErrorReadLine();&#xA;            _process.WaitForExit();&#xA;        } //end method&#xA;&#xA;        protected virtual void OnProgressChange(int progress)&#xA;        {&#xA;            ProgressChange?.Invoke(this,progress);&#xA;        } //end method&#xA;&#xA;        protected virtual void OnOutputData(string data)&#xA;        {&#xA;            OutputData?.Invoke(this, data);&#xA;        }&#xA;    }&#xA;}&#xA;</int></string>

    &#xA;

    Thanks for any helpful answers, and sorry for my English.

    &#xA;

  • Mp4 Video File not playing after downloading using Content Disposition php but it plays when it streams directly from the server

    1er juin 2021, par Razor Rassh

    I'm trying to combine a video and audio file using the FFMPEG and it worked successfully for me. The FFMPEG successfully created the MP4 file in the target destination folder. When I'm trying to download the Video file from the destination folder using Content-Disposition in Php. The server successfully downloads the Video file from the exact target folder.

    &#xA;

    The problem is that when I'm trying to play the video using VLC or any other player, nothing happened. The VLC player just launched and do nothing. I checked the downloaded file size with the video file located on the server and found that they both are the same size.

    &#xA;

    The code I used for creating Video file and content disposition is,

    &#xA;

          &#xA;      $downloadFolderPath = "/var/www/html/temp/{$downloadFolderName}";&#xA;      $result = mkdir($downloadFolderPath, 0777);     &#xA;      $downloadFileName = "$downloadFolderPath/$filename";&#xA;      //echo $downloadFileName;&#xA;      $command = $ffmpeglocation." -i $audio_link -i $link -c:v copy -c:a aac -preset fast -crf 20 $downloadFileName 2>&amp;1";&#xA;      shell_exec($command);&#xA;&#xA;      $file=fopen($downloadFileName,&#x27;r&#x27;);&#xA;      header("Content-Type:video/mp4");&#xA;    &#xA;      header("Content-Disposition: attachment; filename=$filename");&#xA;         &#xA;      header(&#x27;Content-Description: File Transfer&#x27;);&#xA;      header(&#x27;Content-Type: application/octet-stream&#x27;);&#xA;       &#xA;      header(&#x27;Content-Disposition: attachment; filename="&#x27;.basename($downloadFileName).&#x27;"&#x27;);&#xA;      header(&#x27;Expires: 0&#x27;);&#xA;      header(&#x27;Cache-Control: must-revalidate&#x27;);&#xA;      header(&#x27;Pragma: public&#x27;); &#xA;      header(&#x27;Content-Length: &#x27; . filesize($downloadFileName)); &#xA;      flush(); // Flush system output buffer&#xA;      readfile($downloadFileName);    &#xA;      die();&#xA;

    &#xA;

    The above code did its purpose by properly downloading the video file hosted on the server. But after downloading, the video file is not playing. I tried to access the file directly through the URL of the file in the browser and it plays fluently in the browser.

    &#xA;

    Help me out. Sorry for the bad english.

    &#xA;

  • avfilter/vf_libplacebo : don't force dovi frames to bt.2020-ncl

    30 octobre 2023, par Niklas Haas
    avfilter/vf_libplacebo : don't force dovi frames to bt.2020-ncl
    

    This is at odds with the YUV matrix negotiation API, in which such
    dynamic changes in YUV encoding are no longer easily possible. There is
    also no really strong motivating reason to do this, since the choice of
    YUV matrix is essentially arbitrary and not actually related to the
    Dolby Vision decoding process.

    • [DH] libavfilter/vf_libplacebo.c