Recherche avancée

Médias (91)

Autres articles (21)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (4587)

  • Get audio (M4A or MP3) file links directly from YouTube

    10 mars 2018, par Alex

    I am developing a PHP script that obtains video download links from YouTube. The ones I am grabbing are MP4 (720p) and MP4 (360p) (no-DASH format).

    My script is similar to this PHP class : https://github.com/Athlon1600/youtube-downloader

    It allows me to download any YouTube video that I want, no matter if it has copyright or not. It handles everything with signature ciphering and deciphering included.

    However, apart from videos, I would like to obtain audio download links from YouTube videos as well, either in MP3 or M4A.

    (M4A files are provided by YouTube, but they are in DASH format, which means, it’s not a complete file, but a collection of files that need to be merged together)

    Is there a way to obtain MP3 audio download links directly from YouTube ?

    I would like to avoid using FFMPEG library as it requires a lot of resources.

    In the case that using a library like that is the only option, what’s the most optimal way to convert MP4 files to MP3 files ?

    Is there any more efficient alternative than FFMPEG ?

    PLEASE avoid comments regarding YouTube TOS

  • Laravel Jobs (redis/database) + FFMpeg = application/octet-stream

    20 avril 2019, par Andreas

    I discovered something very strange. Whenever I try to use FFMpeg within a queue using redis or database, my converted videos always turn out with MIME "application/octet-stream".

    Here is the weird part. When I use the exact same code, and change the QUEUE_CONNECTION to sync instead, my videos gets converted to "video/webm" just as instructed.

    Does anyone have a clue as to why this is happening ? I have also tried multiple approaches converting, with laravel-ffmpeg and php-ffmpeg. Now I am using regular ol’ exec("ffmpeg").

    Thanks in advance !

  • Laravel Spatie - Spatie\MediaLibrary\Jobs\PerformConversions Job Failed

    5 février 2019, par Tout Nu Les Chinois

    I have an issue with Laravel Spatie’s media conversion OR Redis.

    I’m working in TDD, so all my test passed success, even conversion.
    For an input file sample.flv I have my files as expected..

    But when perform integration test my Jobs failed when they are queued.. (redis) And I have no logs.....

    Do you already have trouble with jobs and conversion ?

    job chained failed

    I am Using Laravel Spatie and Laravel-ffmpeg.

    The chained job

    ProcessPost::withChain([
               new AssociateMedias($post, $filenames),
               new AssociateTags($post, $tags, $user),
               new ActivatePost($post),
               new AttributeBadge('post', $user),
               new UpdateScore(100, $user)
           ])->dispatch($post)->allOnQueue('default');

    Here my Assoc Job

    public function handle()
       {
           array_map(function($name){
               $this->mediable->associate(UploadFiles::getTempDir() . $name);
           }, $this->filenames);
       }

    Here the assoc function in my Media trait

      /**
        * @param $path
        * @return Media
        * @throws DiskDoesNotExist
        * @throws FileDoesNotExist
        * @throws FileIsTooBig
        */
       public function associateVideo($path){
           $media = $this->addMedia($path)
                         ->toMediaCollection('videos');

           VideoConverter::toHls(
               'public',
               $media->originalPath(),
               $media->streamPath()
           );

           VideoConverter::toMp4(
               'public',
               $media->originalPath(),
               $media->downloadPath()
           );

           Storage::disk('public')->delete($media->originalPath());

           return $media;
       }

    And here my Conversion lib

    static function toMp4($disk, $path, $to) {
           $lowBitrateFormat = (new X264('aac'))->setKiloBitrate(500);

           FFMpeg::fromDisk($disk)
               ->open($path)
               ->addFilter(function ($filters) {
                   $filters->resize(new Dimension(960, 540));
               })
               ->export()
               ->inFormat($lowBitrateFormat)
               ->save($to);
       }