Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (83)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, 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 (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (15369)

  • PHP-FFMpeg filters()->resize() throw Use of undefined constant RESIZEMODE_INSET

    27 février 2023, par Angus Simons

    I'm using PHP-FFMpeg to use FFMpeg with php, unfortunately I can't set resize filter.

    



    This is my code :

    



    $video = $ffmpeg->open('video.mov');

$dimension = new FFMpeg\Coordinate\Dimension(1920, 1080);
$video->filters()
      ->resize($dimension, RESIZEMODE_INSET, true, 1)
      ->synchronize();

$format = new FFMpeg\Format\Video\X264('aac', 'libx264');
$format->setAudioChannels(2)->setAudioKiloBitrate(256);
$video->save($format, 'video.mp4');


    



    But it throws this error :

    



    Use of undefined constant RESIZEMODE_INSET - assumed 'RESIZEMODE_INSET'

    



    I tried also :

    



    ->resize($dimension, 'RESIZEMODE_INSET', true, 1)

    



    and

    



    ->resize($dimension, 'inset', true, 1)

    



    But I can't get the video converted without stretching.

    



    Thanks in advance

    


  • PHP-FFMpeg filters()->resize() throw Use of undefined constant RESIZEMODE_INSET

    17 avril 2017, par Angus Simons

    I’m using PHP-FFMpeg to use FFMpeg with php, unfortunately I can’t set resize filter.

    This is my code :

    $video = $ffmpeg->open('video.mov');

    $dimension = new FFMpeg\Coordinate\Dimension(1920, 1080);
    $video->filters()
         ->resize($dimension, RESIZEMODE_INSET, true, 1)
         ->synchronize();

    $format = new FFMpeg\Format\Video\X264('aac', 'libx264');
    $format->setAudioChannels(2)->setAudioKiloBitrate(256);
    $video->save($format, 'video.mp4');

    But it throws this error :

    Use of undefined constant RESIZEMODE_INSET - assumed 'RESIZEMODE_INSET'

    I tried also :

    ->resize($dimension, 'RESIZEMODE_INSET', true, 1)

    and

    ->resize($dimension, 'inset', true, 1)

    But I can’t get the video converted without stretching.

    Thanks in advance

  • FFMPEG ldash 1 low latency option but dash.js not low latency and buggy with lag and start always at 0 cannot control

    7 avril 2021, par Jintor

    I can't figure out how to fix this. playing a supposed low latency mpeg-dash manifest but it's with lots of lag, and play-stop-wait-play-stop-wait....

    


    I have latest ubuntu with latest ffmpeg

    


    here the command

    


    ffmpeg -re -i file.webm -c:v libx264 -preset ultrafast -tune zerolatency -c:a aac -ac 2 -strict -2 -crf 18 -profile:v baseline -maxrate 1000k -pix_fmt yuv420p -bufsize 969k -ldash 1 -streaming 1 -use_template 0 -use_timeline 1 -seg_duration 1 -remove_at_exit 0 -f dash index.mpd


    


    and player side

    


    <code class="echappe-js">&lt;script src='http://stackoverflow.com/templates/account_js/dashjs/dash.3.1.0.min.js'&gt;&lt;/script&gt;&#xA;    

    &#xA; &lt;script&gt;&amp;#xA;    (function(){&amp;#xA;        var url = &quot;index.mpd&quot;;&amp;#xA;        var player = dashjs.MediaPlayer().create();&amp;#xA;        player.initialize(document.querySelector(&quot;#videoPlayer&quot;), url, true);&amp;#xA;        player.updateSettings({&amp;#xA;            streaming: {&amp;#xA;                 lowLatencyEnabled: true, &amp;#xA;                 liveDelay: 3,&amp;#xA;                 liveCatchup: {&amp;#xA;                    enabled: true,&amp;#xA;                    minDrift: 0.05,&amp;#xA;                    maxDrift: 0,&amp;#xA;                    playbackRate: 0.5,&amp;#xA;                    latencyThreshold: 30    &amp;#xA;                  }&amp;#xA;            }&amp;#xA;        });&amp;#xA;    })();     &amp;#xA;    video = document.getElementById(&quot;videoPlayer&quot;);&amp;#xA;    video.addEventListener(&quot;loadedmetadata&quot;, function(){ video.muted = true; video.play(); }, false);&amp;#xA;    &lt;/script&gt;&#xA;

    &#xA;

    but it's NOT low latency, It forces to start at 0 and cannot control the video

    &#xA;

    is there a better config setup and what need to be fixed : ffmpeg options or dash.js config

    &#xA;