
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (104)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe 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 (...)
Sur d’autres sites (10828)
-
PHP-FFMpeg filters()->resize() throw Use of undefined constant RESIZEMODE_INSET
27 février 2023, par Angus SimonsI'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 SimonsI’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 JintorI 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"><script src='http://stackoverflow.com/templates/account_js/dashjs/dash.3.1.0.min.js'></script>



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



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


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