
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (56)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang 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. -
(Dés)Activation de fonctionnalités (plugins)
18 février 2011, parPour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar 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 (8786)
-
Jquery auto-refresh stop refreshing after 10seconds
11 février 2016, par Mick JackI have this JQuery script to auto refresh every 2seconds after a video is uploaded and retrieve the estimated time needed to process the video with ffmpeg
However my refresh script stop refreshing after 10-15seconds. i traced the problem to the session_start() ; when i remove this session_start() ; my refresh script work perfectly. what could be the cause and solution here ?
videoupload.php
<div title="test">
<h5>Encoding percentage</h5>
<code class="echappe-js"><script src="https://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script><script><br />
$("#Submit").click(function(event){<br />
setInterval(function(){<br />
$("#myDiv").load('progress.php')<br />
}, 2000);<br />
});<br />
</script>Progress.php
<?php
$content = @file_get_contents('logfile.txt');
if($content){
//get duration of source
preg_match("/Duration: (.*?), start:/", $content, $matches);
$rawDuration = $matches[1];
//rawDuration is in 00:00:00.00 format. This converts it to seconds.
$ar = array_reverse(explode(":", $rawDuration));
$duration = floatval($ar[0]);
if (!empty($ar[1])) $duration += intval($ar[1]) * 60 ;
if (!empty($ar[2])) $duration += intval($ar[2]) * 60 * 60 * 60;
//get the time in the file that is already encoded
preg_match_all("/time=(.*?) bitrate/", $content, $matches);
$rawTime = array_pop($matches);
//this is needed if there is more than one match
if (is_array($rawTime)){$rawTime = array_pop($rawTime);}
//rawTime is in 00:00:00.00 format. This converts it to seconds.
$ar = array_reverse(explode(":", $rawTime));
$time = floatval($ar[0]);
if (!empty($ar[1])) $time += intval($ar[1]) * 60;
if (!empty($ar[2])) $time += intval($ar[2]) * 60 * 60;
//calculate the progress
$progress = round(($time/$duration) * 100);
echo "Duration: " . $duration . "<br />";
echo "Current Time: " . $time . "<br />";
echo "Progress: " . $progress . "%";
}
?>upload.php
session_start();
$userID = $_SESSION['login_user'];
// rest of the code to convert video using ffmpeg
Record ip camera streaming with two login authentication
I'm trying to record a stream with ffmpeg, VLC or OBS that before you view the stream player you need to login with a microsoft account, the URL is something like this


https://yourwebsite.msappproxy.net/Camera/player.html?stats=1



And after you login you have to insert a username and password to watch the camera you want to see.


I've got the .m3u8 and tried to play it on VLC but doesn't start the streaming, searching i found that you can add the credentials to the stream link but this doesn't work either


https://user:password@yourwebstite.msappproxy.net/Camera/hls/live.stream.m3u8



I also tried with the extension "Video DownloadHelper" on Firefox and this extension is able to download the stream but at somepoint stops the download and you need to relogin on the website


Edit :
Added the VLC output log


-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
main: playlist is empty
-- logger module stopped --



I tried with "Open in VLC" extension on Firefox so you can open the link you want to play on VLC.


The URL that capture this extension is like this


https://yourwebsite.msappproxy.net/Camara/hls/live.stream-152121.ts



And the VLC output log


-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
ps warning: this does not look like an MPEG PS stream, continuing anyway
ps warning: garbage at input from 509, trying to resync...
ps warning: this does not look like an MPEG PS stream, continuing anyway
ps warning: garbage at input from 509, trying to resync...
-- logger module stopped --



Edit 2 (Solution) :
I solved the problem using this chrome extension




Using this extension I was able to capture the stream without cuts


avcodec/dca : require checked bitstream reader
avcodec/dca : require checked bitstream readerRemove half-working attempt at supporting unchecked bitstream reader by
always copying input data into intermediate buffer with large amount of
padding at the end.Convert LBR decoder to checked bitstream reader. Convert
dcadec_decode_frame() to parse input data directly if possible.Signed-off-by : James Almer <jamrial@gmail.com>