Recherche avancée

Médias (91)

Autres articles (102)

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

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (9434)

  • Issue with video compression using HLS from laravel protonemedia/laravel-ffmpeg package

    29 mars 2023, par Mateo Kantoci

    I'm using laravel-ffmpeg package in order to compress videos and save it as .m3u8.
In another words, I have a job that is gathering all uncompressed files and compress them 1by1 and save them to google cloud storage. Furthermore, compression is using exportForHLS from package and throws an error :

    


    ProtoneMedia\LaravelFFMpeg\Exporters\HLSPlaylistGenerator::getStreamInfoLine(): Return value must be of type string, null returned in /var/www/html/ipaparazzo/vendor/pbmedia/laravel-ffmpeg/src/Exporters/HLSPlaylistGenerator.php:32


    


    In some cases compression works but my job is failing for most of the time.

    


    Anyone experienced similar issue ?

    


    P.S. It is working as expected when using public storage.

    


    This is my code exactly as per laravel-ffmpeg documentation :

    


    ->exportForHLS()
->setSegmentLength(10) // optional
->setKeyFrameInterval(48) // optional
->addFormat($lowBitrate, function($media) {
    $media->scale(426, 240);
})
->addFormat($midBitrate, function($media) {
    $media->scale(640, 360);
})
->addFormat($highBitrate, function($media) {
    $media->scale(640, 480);
})
->onProgress(function ($percentage) {
   echo "{$percentage}% transcoded\n";
})
->toDisk('gcs2')
->save($videoPath)
->cleanupTemporaryFiles();


    


  • How to get height and width of a video downloaded from a URL in PHP ?

    28 septembre 2016, par Parthapratim Neog

    I am using file_get_contents() function to download an mp4 video from a given link(for example https://media.giphy.com/media/haB6FriHgXPuE/giphy.mp4). I want to get the Height and width of the downloaded video file using PHP. file_get_contents() gives me the binary data of the video, and I want to extract the height and width from this data.

    Is there any way to do that, without using ffmpeg in PHP ?

  • How to streaming audio with ffmpeg and container of my own choosing ? [closed]

    2 octobre 2024, par xchg.ca

    I'm streaming an ac3 audio via rtsp using ffmpeg like this :

    


    > ffmpeg -re -f ac3 -i sample4.ac3 -ar 8000 -f mulaw -f rtsp rtsp://10.22.22.11:8554/audiostream


    


    In the RTSP protocol exchange it DESCRIBEd like this :

    


    > Session Description Protocol
>     Session Description Protocol Version (v): 0
>     Owner/Creator, Session Id (o): - 0 0 IN IP4 127.0.0.1
>     Session Name (s): No Name
>     Connection Information (c): IN IP4 0.0.0.0
>     Time Description, active time (t): 0 0
>     Media Description, name and address (m): audio 0 RTP/AVP 96
>     Media Attribute (a): control:rtsp://10.22.22.11:8554/audiostream/trackID=0
>     Media Attribute (a): rtpmap:96 mpeg4-generic/8000/2
>     Media Attribute (a): fmtp:96 config=1590; indexdeltalength=3; indexlength=3; mode=AAC-hbr; profile-level-id=1; sizelength=13;
> streamtype=5


    


    I wondering if I can specify specific container in ffmpeg command line while keeping media format the same. For example I want MPEG-TS container instead of mpeg4. Looking through the ffmpeg docs did not really helped me.