
Recherche avancée
Autres articles (72)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (7211)
-
Download RTSP recording content between two dates and times, or from start seconds to end seconds
23 septembre 2022, par holt2I need to download from an RTSP link the content recorded on an IP camera from a start and end date and time. It would also be valid to be able to download it from X seconds of start of the recording to seconds of end.


With this
ffmpeg
command I download the recording content from the RTSP link only from the beginning of the recording content, with the duration in seconds passed by the-t
parameter :

ffmpeg -rtsp_transport tcp -i -r 30 -t <seconds> -y -vf scale=800:-1 -c:v libx264 -crf 20 -preset fast -c:a aac -strict experimental -b:a 192k -ac 2 /path/to/video/filename.mp4
</seconds>


I tried to download with
ffmpeg
the content using temporary media fragment URIs (https://www.w3.org/2008/WebVideo/Fragments/wiki/UA_Server_RTSP_Communication#.281.29_Temporal_Media_Fragment_URIs) but it doesn't do it correctly :

ffmpeg -rtsp_transport tcp -i #t=10,20 -r 30 -y -vf scale=800:-1 -c:v libx264 -crf 20 -preset fast -c:a aac -strict experimental -b:a 192k -ac 2 -ss 19:09:13 -t 5 /path/to/video/filename.mp4



I have also tried with
ffmpeg
to use the-ss
parameter to try to extract the recording from a specific hour, minute and second (https://trac.ffmpeg.org/wiki/Seeking) but when running it gets stuck, it does not advance :

ffmpeg -rtsp_transport tcp -i -r 30 -y -vf scale=800:-1 -c:v libx264 -crf 20 -preset fast -c:a aac -strict experimental -b:a 192k -ac 2 -ss 19:09:13 -t <seconds> /path/to/video/filename.mp4
</seconds>


In case it's helpful, to get the RTSP link, I'm using the ONVIF protocol with a NodeJS library (https://github.com/agsh/onvif). I have also reviewed the ONVIF documentation available but have not found a way to download recorded content between start and end dates and times.


Do you know how to download from an RTSP link the content recorded on an IP camera from a start date and time and end date, or download it from X seconds of recording start to seconds of end ?


I am also open to use other tools or commands that can do this.


-
avformat/mxfenc : fix DNxHD GC element_type
14 décembre 2021, par Nicolas Gaullieravformat/mxfenc : fix DNxHD GC element_type
The values for the essence element type were updated in the spec
from 0x05/0x06 (ST2019-4 2008) to 0x0C/0x0D (ST2019-4 2009).Fixes ticket #6380.
Thanks-to : Philip de Nier <philip.denier@bbc.co.uk>
Thanks-to : Matthieu Bouron <matthieu.bouron@gmail.com>Reviewed-by : Matthieu Bouron <matthieu.bouron@gmail.com>
Reviewed-by : Tomas Härdin <tjoppen@acc.umu.se>Signed-off-by : Nicolas Gaullier <nicolas.gaullier@cji.paris>
Signed-off-by : Marton Balint <cus@passwd.hu> -
Anomalie #4830 (Nouveau) : extraire_date extravagant
22 juin 2021, par JLuc -cf https://git.spip.net/spip/spip/src/branch/master/ecrire/inc/filtres_dates.php#L24
Le phpdoc commence par
"Extrait une date d’un texte et renvoie le résultat au format de date SQL"
et termine par
"return string Date au format SQL tel que `2008-04-01`"MAIS au milieu du phpdoc on découvre un
"Les jours ne sont pas pris en compte et le résultat est toujours le 1er du mois."
et c’est effectivement ce que fait la fonction !!! !! !Avec un fonctionnement aussi extravagant, il n’est pas étonnant que la fonction ne soit présente nulle part sur la zone... et ne soit pas documentée en français sur spip.net .
Pour être exhaustif, elle fait tout de même 2 apparitions :
- son test unitaire,
- dans le plugin "aspirateur" où l’autrice apprécierait visiblement avoir une vraie date complète puisqu’à défaut c’est `gmdate("Y-m-d\TH:i:s\Z") ;` qui est employé. cf https://git.spip.net/spip-contrib-extensions/aspirateur/src/branch/master/inc/aspirer_rss.php#L116Je propose donc de mettre une fin à cette extravagance : que extraire_date renvoie une vraie date SQL, complète, avec le jour.