- Une date 2020 01
- 2020-01-01
- Une date 2020 12 autre
- 2020-12-01
- Une date 2020 autre 12 autre
- 2020-12-01
- Une date 2021 12 01
- 2021-12-01
- Une date 2021 12 00
- 2021-12-01
- Une date 2021 12 31
- 2021-12-31
- Une date 2021 12 32
- 2021-12-03
- Une date 2021 autre 12 date 21
- 2021-12-21
- En 2012 à l’orée du bois se trouvait 10 chevaux et 4 biches.
- 2012-10-04

Recherche avancée
Autres articles (90)
-
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 ;
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (5885)
-
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 : extraire_date extravagant
6 juillet 2021Pourquoi pas. Je te propose (ou quelqu’un) de faire une PR pour ça.
Il faudrait ajouter en même temps des tests unitaires parce que bon.
Ci dessous un code valide qui fait la demande.Ce qui me gène tout de même c’est le
[^0-9]*
dans la regex (déjà présente dans l’ancienne fonction) qui du coup peut chercher une date coupée dans un grand texte…
Tel que : "En 2012 à l’orée du bois se trouvait 10 chevaux et 4 biches.", qui sort la date "2012-10-04" (ou 2012-10-01 avant cette proposition).
Donc l’usage est possiblement assez limité de cette fonction si laissée telle quelle.- <span class="CodeRay">
- <span class="comment">/**
- * Extrait une date d'un texte et renvoie le résultat au format de date SQL
- *
- * L'année et le mois doivent être numériques.
- * Le séparateur entre l'année et le mois peut être un `-`, un `:` ou un texte
- * quelconque ne contenant pas de chiffres.
- *
- * Si un numéro de jour valide n'est pas indiqué, le résultat est alors le 1er du mois.
- *
- * @link https://www.spip.net/5516
- * @param string $texte
- * Texte contenant une date tel que `2008-04`
- * @return string
- * Date au format SQL tel que `2008-04-01`
- **/</span>
- <span class="keyword">function</span> <span class="function">extraire_date</span>(<span class="local-variable">$texte</span>) {
- <span class="comment">// format = 2001-08-12 ou 2001-08</span>
- <span class="local-variable">$has_date</span> = <span class="predefined">preg_match</span>(
- <span class="string"><span class="delimiter">"</span><span class="content">,
- # une annee
- (?P<annee>[1-2][0-9]</annee></span><span class="content">{</span><span class="content">3})
- # des caracteres sans numeros
- [^0-9]*
- # un mois
- (?P<mois>1[0-2]|0?[1-9])
- (?:
- # des caracteres sans numeros
- [^0-9]*
- # un jour
- (?P<jour>3[0-1]|[1-2][0-9]|0?[1-9])
- )?
- ,x</jour></mois></span><span class="delimiter">"</span></span>,
- <span class="local-variable">$texte</span>,
- <span class="local-variable">$regs</span>
- );
- <span class="keyword">if</span> (<span class="local-variable">$has_date</span>) {
- <span class="local-variable">$date</span> = [
- <span class="local-variable">$regs</span>[<span class="string"><span class="delimiter">"</span><span class="content">annee</span><span class="delimiter">"</span></span>],
- <span class="predefined">sprintf</span>(<span class="string"><span class="delimiter">"</span><span class="content">%02d</span><span class="delimiter">"</span></span>, <span class="local-variable">$regs</span>[<span class="string"><span class="delimiter">"</span><span class="content">mois</span><span class="delimiter">"</span></span>]),
- <span class="predefined">sprintf</span>(<span class="string"><span class="delimiter">"</span><span class="content">%02d</span><span class="delimiter">"</span></span>, <span class="local-variable">$regs</span>[<span class="string"><span class="delimiter">"</span><span class="content">jour</span><span class="delimiter">"</span></span>] ?? <span class="string"><span class="delimiter">"</span><span class="content">01</span><span class="delimiter">"</span></span>)
- ];
- <span class="keyword">return</span> <span class="predefined">implode</span>(<span class="string"><span class="delimiter">"</span><span class="content">-</span><span class="delimiter">"</span></span>, <span class="local-variable">$date</span>);
- }
- }
- </span>
#SQUELETTE
#SET{liste,#LISTE{
"Une date 2020 01",
"Une date 2020 12 autre",
"Une date 2020 autre 12 autre",
"Une date 2021 12 01",
"Une date 2021 12 00",
"Une date 2021 12 31",
"Une date 2021 12 32",
"Une date 2021 autre 12 date 21",
"En 2012 à l’orée du bois se trouvait 10 chevaux et 4 biches."
}}
<dl>
<dt>#VALEUR</dt>
<dd>[(#VALEUR|extraire_date)]</dd>
</dl>
Sortie :