Recherche avancée

Médias (1)

Mot : - Tags -/livre électronique

Autres articles (71)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • 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

Sur d’autres sites (9620)

  • FFMPEG extract frame-accurate video fragments with minimal transcoding

    9 mars 2018, par Leeroy

    How can I extract frame-accurate video or audio fragments using FFMPEG without transcoding the full portion ?

    ffmpeg -i input.mp4 -ss 00:00:01.234 -to 00:00:05.678 output.mp4 works because it re-encodes... If I use -codec: copy then it disregards the precision of my start and end time arguments and instead uses the closest keyframe (I understand).

    Is there a command or combination of commands to instruct FFMPEG to transcode only what’s needed, the bits near the start/end markers, up to keyframes ?

    EDIT : A bit of context... I’m trying to write this function to process video piped from youtube-dl, perhaps even as a service. So it matters that I minimize bandwidth (downloading to timestamp and discarding after) and CPU utilization (re-encoding all of the fragment).

  • FFmpeg error Unable to load FFMpeg during parallel encoding

    1er janvier 2021, par DrJohn

    I'd like to build web service on the Laravel platform which allows users upload some videos on a server. During uploading video files I use ffmpeg to encode them and compress.
I can't install ffmpeg on my hosting and so I have downloaded packages and executable files from https://ffmpeg.org/download.html and locate them on my web directory. Then I make all steps to install ffmpeg in my Laravel project.
I try to upload a video file and it's OK. The time to upload and encode is about 20 seconds. During encoding of the first video file I try to upload the second. And the second video file falls with the error "Unable to load FFMpeg". But the first video file is encoded successfully. When the first encoding is completed and I repeat uploading the second file it encoded successfully as well.
So I think that ffmpeg can work only with only one file at the time and I can't build multi-user service.
Please help me to find solution.

    


    Here is a peace of code which use to encode files :

    


        try {&#xA;                            $pub_path = Storage::disk(&#x27;public&#x27;)->getAdapter()->getPathPrefix();&#xA;                            $videopath =$pub_path . $myusertheme->public_reference.&#x27;/&#x27;.$this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                            //echo (Storage::disk(&#x27;public&#x27;)->getAdapter()->getPathPrefix().&#x27;<br />&#x27;);&#xA;                            echo ($videopath);&#xA;                            $ffmpeg = \FFMpeg\FFMpeg::create([&#xA;                                &#x27;ffmpeg.binaries&#x27;  => "./usr/bin/ffmpeg",&#xA;                                &#x27;ffprobe.binaries&#x27; => "./usr/bin/ffprobe",&#xA;                                &#x27;timeout&#x27;          => 3600, // The timeout for the underlying process&#xA;                                &#x27;ffmpeg.threads&#x27;   => 12,   // The number of threads that FFMpeg should use&#xA;                                &#x27;set_command_and_error_output_on_exception&#x27; => true,&#xA;                            ]);&#xA;                            $vid=$ffmpeg->open($request->file(&#x27;videofile&#x27;)->getRealPath());&#xA;                            $vid->save(new \FFMpeg\Format\Video\X264(&#x27;libmp3lame&#x27;, &#x27;libx264&#x27;), $videopath);&#xA;&#xA;/*&#xA;                            $videopath = $myusertheme->public_reference.&#x27;/&#x27;.$this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                            //FFMpeg::fromDisk(&#x27;local_root&#x27;)&#xA;                            $ffmpeg&#xA;                            ->open($request->file(&#x27;videofile&#x27;)->getRealPath())&#xA;                            ->export()&#xA;                            ->onProgress(function ($percentage) {&#xA;                                    //echo ($percentage.&#x27;/n&#x27;);&#xA;                                    if ($percentage===100)&#xA;                                    {&#xA;&#xA;                                        $videopath = $this->random_filename(25,&#x27;&#x27;,&#x27;mp4&#x27;);&#xA;                                    }})&#xA;                            ->inFormat(new \FFMpeg\Format\Video\X264(&#x27;libmp3lame&#x27;, &#x27;libx264&#x27;))&#xA;                            ->toDisk(&#x27;public&#x27;)&#xA;                            ->save($videopath);&#xA;&#xA;*/&#xA;&#xA;                        } catch (EncodingException $exception) {&#xA;                            $videopath = null;&#xA;                            $command = $exception->getCommand();&#xA;                            $errorLog = $exception->getErrorOutput();&#xA;                            echo $errorLog;&#xA;                            return \Response::json(&#x27;Ошибка кодировки файла&#x27;, 500);&#xA;&#xA;                        }&#xA;

    &#xA;

  • Evolution #3802 (Nouveau) : Rendre obsolète le filtre

    3 juillet 2016, par jluc -

    La doc http://www.spip.net/fr_article1823.html préconise (#LOGO_DOCUMENT comme manière d"afficher une vignette cliquable pointant vers le document multimédia".

    Cette forme d’écriture est dérogatoire : une balise appelée comme filtre. Ne faudrait il déclarer cette écriture obsolète dans SPIP 3.2 puis la virer dans SPIP 3.5 ? Quitte à fournir quelquechose de grammaticalement plus banal pour fournir le même service.
    Outre l’apprentissage de spip, ça simplifiera surement le parseur.