Recherche avancée

Médias (91)

Autres articles (101)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (13022)

  • Creating Thumbnails From Ffmpeg Hangs Php

    30 octobre 2012, par Piyush Arora

    I have been working on a php webservice, which receives videos(uploaded) from iphone and upload them to Amazon cloudFront. After uploading videos, I need to generate thumbnails for video from the Amazon link generated. I am using ffmpeg with shell_exec command for it. Here is the code for the same :

    public function createThumbnail($userId,$fileUrl,$imageName){
       //$imageUrl = 'http://184.168.116.177:81/json_api/json/bin/';
       if(!is_dir("images/".$userId)){
           mkdir("images/".$userId);
       }
       // path of installed ffmpeg
       $ffmpeg = $_SERVER['DOCUMENT_ROOT'] .'bin/ffmpeg';
       $cmd = "$ffmpeg  -itsoffset -1 -i $fileUrl -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 images/".$userId."/".$imageName;

       shell_exec($cmd);

       return "images/".$userId."/".$imageName;
    }

    The above code generates the thumbnail, but script does not execute after shell_exec command. So, there is no response sent to iphone end about the thumbnail link. This function works well video is uploaded from web browser of pc. If I comment, shell_exec command, then response is sent to iphone end, but obviousely image is not created.

    Thanks in advance.

  • librosa can't load wav file in aws lambda docker

    30 novembre 2022, par Luka Savic

    I have an AWS Lambda function created using Docker.
I have librosa installed, ffmpeg installed using the solution from this question : install ffmpeg on amazon ecr linux python

    


    I checked in a Lambda function with os.system("ffmpeg -version") and I managed to get valid output, stating different versions and parts of ffmpeg.

    


    Problem is that when I do librosa.load(wav_file) it gives the following error :

    


    /your/path/.venv/lib/python3.9/site-packages/librosa/util/decorators.py:88: UserWarning: PySoundFile failed. Trying audioread instead.
  return f(*args, **kwargs) 


    


    From what I've read, librosa should natively support .wav files, even without ffmpeg, and even though I have ffmpeg installed, it doesn't work.

    


    One more information, .wav file was downloaded, player, and loaded with librosa on my local PC without any problems. I tried also on different wav and mp3 files, and the problems were still there.

    


  • Class 'Pbmedia\LaravelFFMpeg\FFMpeg' not found

    27 novembre 2020, par Elix

    Inside an Artisan command I have this

    


    
 FFMpeg::fromDisk('songs')
            ->open('this.mp4')
            ->export()
            ->toDisk('converted_songs')
            ->inFormat(new \FFMpeg\Format\Audio\Aac)
            ->save('yesterday.aac');


    


    At the top of the file I already added

    


    use Pbmedia\LaravelFFMpeg\FFMpeg;

    


    I am getting this error

    


    Class 'Pbmedia\LaravelFFMpeg\FFMpeg' not found


    


    I am also using Laravel-zero, and I have tried everything possible. Been stuck on this for hours now, any idea ?