- 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
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (63)
-
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (4341)
-
Packet corrupt (stream = 0, dts = 2490755129) error in ffmpeg which creates HLS and in ffmpeg which uploads HLS to a CDN
25 mai 2021, par Amit Maharjanffmpeg command which creates the hls stream :

ffmpeg -y -v warning -i udp://225.1.2.3:2000?reuse=1&buffer_size=16777216&localaddr=127.0.0.1&overrun_nonfatal=1 -c:v:0 h264_qsv -global_quality 25 -pix_fmt nv12 -r 59.94 -filter:v:0 fps=fps=59.94,scale=768:432:force_original_aspect_ratio=decrease,pad=768:432:(ow-iw)/2:(oh-ih)/2 -vsync cfr -g 120 -c:a:0 aac -ar 48000 -b:a:0 128k -profile:v:0 high -level:v:0 3.1 -b:v:0 1000k -maxrate:v:0 1000k -bufsize:v:0 1000k -map 0:v -map 0:a -c:v:1 h264 -global_quality 25 -pix_fmt nv12 -r 24 -filter:v:1 fps=fps=24,scale=640:360:force_original_aspect_ratio=decrease,pad=640:360:(ow-iw)/2:(oh-ih)/2 -vsync cfr -g 121 -c:a:1 aac -ar 44100 -b:a:1 128k -profile:v:1 main -level:v:1 3.1 -b:v:1 800k -maxrate:v:1 800k -bufsize:v:1 800k -map 0:v -map 0:a -max_muxing_queue_size 4096 -f hls -hls_list_size 10 -hls_delete_threshold 30 -hls_flags delete_segments -hls_time 4 -master_pl_name master.m3u8 -var_stream_map " v:0,a:0,name:0 v:1,a:1,name:1" -hls_start_number_source epoch C:path_to_hls_data/436379cd-11e6-4ef0-a198-58c69b139803/%v_playlist.m3u8


ffmpeg command to upload the hls stream to cdn :

ffmpeg -y -v warning -re -f hls -http_persistent 0 -i http://localhost:3000/assets/436379cd-11e6-4ef0-a198-58c69b139803/master.m3u8 -b:v:0 1000k -b:a:0 128k -c:v:0 copy -c:a:0 copy -b:v:1 800k -b:a:1 128k -c:v:1 copy -c:a:1 copy -method POST -map 0:v:0 -map 0:a:0 -map 0:v:1 -map 0:a:1 -var_stream_map " v:0,a:0,name:0 v:1,a:1,name:1" -f hls -master_pl_name master.m3u8 -hls_list_size 10 -hls_time 4 -hls_flags second_level_segment_index -master_pl_publish_rate 150 -strftime 1 -hls_segment_filename "cdn_link" "cdn_link"




In the logs below _UploaderProcess is the ffmpeg which uploads the hls stream to cdn, _encProcess_dst is the ffmpeg which creates the hls stream




Error logs :


6961 19:42:40.241 2021-05-08 [2021-05-08T19:42:40.241 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1805890264).

6960 19:42:36.204 2021-05-08 [2021-05-08T19:42:36.204 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 3 segments ahead, expired from playlists

6959 19:42:27.520 2021-05-08 [2021-05-08T19:42:27.520 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [h264 @ 0000025030f09540] co located POCs unavailable
6958 19:42:27.516 2021-05-08 [2021-05-08T19:42:27.516 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [h264 @ 0000025030f0a780] co located POCs unavailable
6957 19:42:27.514 2021-05-08 [2021-05-08T19:42:27.514 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [h264 @ 0000025030f0c780] co located POCs unavailable
6956 19:42:27.504 2021-05-08 Error while decoding stream #0:1: Invalid data found when processing input
6955 19:42:27.504 2021-05-08 [aac @ 000002502ff97c40] Number of scalefactor bands in group (57) exceeds limit (49).
6954 19:42:27.504 2021-05-08 [2021-05-08T19:42:27.504 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [aac @ 000002502ff97c40] Reserved bit set.
6953 19:42:27.503 2021-05-08 Error while decoding stream #0:1: Invalid data found when processing input
6952 19:42:27.503 2021-05-08 [2021-05-08T19:42:27.503 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [aac @ 000002502ff97c40] Number of bands (50) exceeds limit (41).
6951 19:42:27.501 2021-05-08 [mpegts @ 000002502ff6cdc0] Packet corrupt (stream = 1, dts = 5313003).
6950 19:42:27.501 2021-05-08 [2021-05-08T19:42:27.501 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [mpegts @ 000002502ff6cdc0] PES packet size mismatch
6949 19:42:27.498 2021-05-08 [2021-05-08T19:42:27.498 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [mpegts @ 000002502ff6cdc0] Packet corrupt (stream = 0, dts = 5327196).
6948 19:42:24.201 2021-05-08 [2021-05-08T19:42:24.201 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1804448823).
6947 19:42:20.193 2021-05-08 [2021-05-08T19:42:20.193 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6946 19:42:08.190 2021-05-08 [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1803007381).
6945 19:42:08.190 2021-05-08 [2021-05-08T19:42:08.190 DEBUG video_encoder.js:1] - _UploaderProcess stderr: Last message repeated 1 times
6944 19:41:48.169 2021-05-08 [2021-05-08T19:41:48.169 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6943 19:41:44.289 2021-05-08 [2021-05-08T19:41:44.289 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [mpegts @ 000002502ff6cdc0] Packet corrupt (stream = 0, dts = 1445819).
6942 19:41:36.153 2021-05-08 [2021-05-08T19:41:36.153 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1800124498).
6941 19:41:34.154 2021-05-08 [2021-05-08T19:41:34.154 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6940 19:41:31.565 2021-05-08 Error while decoding stream #0:1: Invalid data found when processing input
6939 19:41:31.565 2021-05-08 [2021-05-08T19:41:31.565 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [aac @ 000002502ff97c40] skip_data_stream_element: Input buffer exhausted before END element found
6938 19:41:31.564 2021-05-08 Error while decoding stream #0:1: Invalid data found when processing input
6937 19:41:31.564 2021-05-08 [2021-05-08T19:41:31.564 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [aac @ 000002502ff97c40] Number of bands (46) exceeds limit (41).
6936 19:41:31.498 2021-05-08 [mpegts @ 000002502ff6cdc0] Packet corrupt (stream = 1, dts = 185153643).
6935 19:41:31.498 2021-05-08 [2021-05-08T19:41:31.498 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [mpegts @ 000002502ff6cdc0] PES packet size mismatch
6934 19:41:31.486 2021-05-08 [2021-05-08T19:41:31.486 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [h264 @ 0000025030f0be80] co located POCs unavailable
6933 19:41:31.484 2021-05-08 [2021-05-08T19:41:31.484 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [h264 @ 0000025030f0b540] co located POCs unavailable
6932 19:41:31.483 2021-05-08 [2021-05-08T19:41:31.483 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [h264 @ 0000025030f0b0c0] co located POCs unavailable
6931 19:41:31.480 2021-05-08 [2021-05-08T19:41:31.480 DEBUG video_encoder.js:1] - _encProcess_dst stderr: [mpegts @ 000002502ff6cdc0] Packet corrupt (stream = 0, dts = 185167857).
6930 19:41:31.447 2021-05-08 [2021-05-08T19:41:31.447 DEBUG video_encoder.js:1] - _tspProcess_play stderr: * Warning: regulate: out of sequence PCR, maybe source was cycling, restarting regulation
6929 19:41:22.164 2021-05-08 [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1798863237).
6928 19:41:22.164 2021-05-08 [2021-05-08T19:41:22.164 DEBUG video_encoder.js:1] - _UploaderProcess stderr: Last message repeated 1 times
6927 19:41:02.119 2021-05-08 [2021-05-08T19:41:02.119 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6926 19:40:50.147 2021-05-08 [2021-05-08T19:40:50.147 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1795980354).
6925 19:40:46.111 2021-05-08 [2021-05-08T19:40:46.111 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6924 19:40:34.099 2021-05-08 [2021-05-08T19:40:34.099 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1794538913).
6923 19:40:30.074 2021-05-08 [2021-05-08T19:40:30.074 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6922 19:40:18.062 2021-05-08 [2021-05-08T19:40:18.062 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1793097471).
6921 19:40:14.081 2021-05-08 [2021-05-08T19:40:14.081 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6920 19:40:02.055 2021-05-08 [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1791656030).
6919 19:40:02.055 2021-05-08 [2021-05-08T19:40:02.055 DEBUG video_encoder.js:1] - _UploaderProcess stderr: Last message repeated 1 times
6918 19:39:42.040 2021-05-08 [2021-05-08T19:39:42.040 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6917 19:39:30.017 2021-05-08 [2021-05-08T19:39:30.017 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1788773147).
6916 19:39:26.014 2021-05-08 [2021-05-08T19:39:26.014 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6915 19:39:13.996 2021-05-08 [2021-05-08T19:39:13.996 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1787331706).
6914 19:39:10.004 2021-05-08 [2021-05-08T19:39:10.004 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [hls @ 0000026eabfecb40] skipping 2 segments ahead, expired from playlists
6913 19:38:58.003 2021-05-08 [2021-05-08T19:38:58.003 DEBUG video_encoder.js:1] - _UploaderProcess stderr: [mpegts @ 0000026eabff7c40] Packet corrupt (stream = 0, dts = 1785890264).



-
RNFFMpeg.executeAsync : Unable to create gif of a video with space(s) in it's source path
7 juillet 2021, par STBoxUnable to make gif of a video which has space(s) in it's source directory. All the other video which don't have space(s), their gif is making fine. I had a video whose folder name had space and it was not making gif for it. I copied the same video to a folder without space in it's name, and it made gif for it successfully. Even if I replace the the space with source path with anything like %20 etc, then it says




No such file or directory




Code snippet




RNFFmpeg.executeAsync(
 `-i ${source} -ss ${start} -t ${gifDuration} -vf "fps=5,scale=160:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 ${destination}`, (completedExecution) => {
 if (completedExecution.returnCode === 0) {
 resolve({ path: destination });
 } else {
 resolve({ error: "invalid Gif" }); // always this part executes for videos with space in their source path
 }
 }
 );







Expected behavior


Regardless a video has or has not a space in it's path, it should make gif correctly and




completedExecution.returnCode




should be 0


Current behavior
Currently, for all the videos having space in their source path, completedExecution.returnCode is always 1


Logs of the same video without space in folder name




[Wed Jul 07 2021 12:23:56.377] LOG file :///storage/emulated/0/AirDroid/VID-20210620-WA0024.mp4 [Wed Jul






07 2021 12:23:56.511] LOG [Parsed_palettegen_3 @ 0x7d62eb5ec0] 255(+1) colors generated out of 249823 colors ; ratio=0.001021 [Wed Jul 07 2021 12:23:56.672] LOG video:48kB audio:0kB subtitle:0kB other streams:0kB






global headers:0kB muxing overhead : [Wed Jul 07 2021 12:23:56.673] LOG






0.041083% [Wed Jul 07 2021 12:23:56.722] LOG "path" : "/data/user/0/com.tbox.pantry/cache/1625642625930.gif"




Logs of the same video with space in folder name




[Wed Jul 07 2021 12:20:45.577] LOG






file :///storage/emulated/0/FMWhatsApp/Media/FMWhatsApp






Video/VID-20210620-WA0024.mp4 [Wed Jul 07 2021 12:20:45.998] LOG






file :///storage/emulated/0/FMWhatsApp/Media/FMWhatsApp : No such file






or directory [Wed Jul 07 2021 12:20:45.998] LOG Conversion failed !






[Wed Jul 07 2021 12:20:45.999] LOG "error" : "invalid Gif"




Environment


"react" : "16.13.1",
"react-native" : "^0.63.3",
"react-native-ffmpeg" : "0.5.1",
Android 11


-
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 :