Recherche avancée

Médias (0)

Mot : - Tags -/api

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (90)

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

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

Sur d’autres sites (7362)

  • How to create a live stream in dash format from mp4 file or m3u8 list ? (ffmpeg)

    30 juin 2017, par jorge.luengo

    I have been trying different ways of running dash live streams from mp4 or m3u8 but none of them worked fined. I want to use ffmpeg because of my server conditions.
    This command has been the one that did something but it didn’t work as I expected :

    ffmpeg-3.3.2-64bit-static/ffmpeg -i reencoded24eng.mp4 -vf yadif=0 -r 30 -vcodec libx264 -keyint_min 60 -g 60 -b:v 1000k -ac 2 -strict 2 -acodec aac -ab 64k -map 0:v -map 0:a -f dash -min_seg_duration 2000  -use_template 1 -use_timeline 1 -init_seg_name init-\$RepresentationID\$.mp4 -dash 1  -media_seg_name test-\$RepresentationID\$-\$Number\$.mp4 test.mpd

    The error that the dash-if conformance tool provides is the following one :

    Start XLink resolving

    XLink resolving successful

    Start MPD validation

    MPD validation successful - DASH is valid !

    Start Schematron validation

    location="/[local-name()=’MPD’ and namespace-uri()=’urn:mpeg:dash:schema:mpd:2011’]/[local-name()=’Period’ and >namespace-uri()=’urn:mpeg:dash:schema:mpd:2011’]">
    If the MPD is dynamic the Period element shall have an id.

    location="/[local-name()=’MPD’ and namespace-uri()=’urn:mpeg:dash:schema:mpd:2011’]/[local-name()=’Period’ and >namespace-uri()=’urn:mpeg:dash:schema:mpd:2011’]/*local[1]">
    Common attributes for AdaptationSet and Representation shall either be in >one of the elements but not in both.

    Schematron validation not successful - DASH is not valid !

    BUILD SUCCESSFUL
    Total time : 5 seconds

    Could anyone help me with this ?

  • Download youtube video duration using youtube-dl PHP and ffmpeg

    21 juin 2017, par user3285828

    Is there any more efficient way to download youtube videos at a specific start and end time using youtube-dl and ffmpeg in PHP.

    I currently have this, which does work, it first downloads the whole video to an mp3 file, and then crops that file to the range I set using ffmpeg, but when I only want 30 seconds or so of a 20 minute video, waiting for the full video to download doesn’t seem the best way to do it.

    <?php
    require __DIR__ . '/vendor/autoload.php';

    use YoutubeDl\YoutubeDl;

    $dl = new YoutubeDl([
       'extract-audio' => true,
       'audio-format' => 'mp3',
       'audio-quality' => 0, // best
       'output' => 'videoname.%(ext)s',
    ]);
    $dl->setDownloadPath('C:\youtubevideos');
    $video = $dl->download('https://www.youtube.com/watch?v=oDAw7vW7H0c');

    $start = 60; // Start 60 seconds in to the video
    $duration = 30; // Get 30 seconds after $start
    $fullVideo = "C:\youtubevideos\videoname.mp3";
    $shortVideo = "C:\youtubevideos\short\shortversion.mp3"; // create 30 seconds
    exec("ffmpeg -ss $start -i $fullVideo -t $duration -c copy $shortVideo");
    exec("DEL $fullVideo");

    I am using youtube dl PHP https://github.com/norkunas/youtube-dl-php

  • MPEG-DASH MPD file not playing correctly

    24 juin 2017, par CMOS

    So I am working on generating a very simple MPD manifest file for my MPEG-DASH videos and I cannot figure out what is wrong. Here is my current manifest file

    <?xml version="1.0" ?>
    <mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H9M21.795S" maxsegmentduration="PT0H0M1.001S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011">
       <period>
           <baseurl>https://mysite/uploads/sources/resolution_640/bitrate_1400/</baseurl>
           <adaptationset mimetype="video/mp4">
               <contentcomponent contenttype="video"></contentcomponent>
               <representation bandwidth="1400000">
                 <segmentlist duration="119">
                   <initialization sourceurl="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_0.mp4"></initialization>
                   <segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_1.mp4"></segmenturl>
                   <segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_2.mp4"></segmenturl>
                   <segmenturl media="https://mysite/uploads/sources/resolution_640/bitrate_1400/640x360_1400Kpbs_3.mp4"></segmenturl>
                 </segmentlist>
               </representation>
           </adaptationset>
       </period>
    </mpd>

    This MPD file validates using every validator I can find. The urls for the segments are obscured for security reasons but they are all open, public and viewable individually. But when I try to run the manifest file, depending on the player I get. "No supported source found within manifest" or simply nothing happens.

    Any idea how this could be wrong ? I am currently using media url’s as absolute paths but I have also tried paths relative to the BaseURL with no luck. Any info on how I can make a very simple MPEG-Dash manifest structure would be great. I am using FFMPEG to split my video up into 150 frame segments. Thanks !