
Recherche avancée
Autres articles (98)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
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 (10040)
-
Converting a rtsp stream to hls but got error "Non-monotonous DTS in output stream 0:0"
8 mai 2023, par DeviI'm converting a rtsp live camera stream to hls using ffmpeg, it is all good the first few hours, each segment file sizes around
1.1M
, which match the setting ofsegment_time
of 5 seconds. However, when I check back a few days later, the size of each segment file became20G
, and I found that some error are logged.

My current implementation is like this :


ffmpeg -fflags nobuffer \
 -rtsp_transport tcp \
 -i rtsp://abc.com/live.sdp \
 -fps_mode 0 \
 -copyts \
 -c copy \
 -movflags frag_keyframe+empty_moov \
 -hls_flags delete_segments+append_list \
 -f segment \
 -segment_list_flags live \
 -segment_time 5 \
 -segment_list_size 3 \
 -segment_format mpegts \
 -segment_list /app/mount/test/live.m3u8 \
 -segment_list_type m3u8 \
 -segment_wrap 10 \
 /app/mount/test/%04d.ts \
 2>&1 



Here's the logged error :


[segment @ 0x7fe5123101c0] Non-monotonous DTS in output stream 0:0; previous: 14179898636, current: 11332822107; changing to 14179898637. This may result in incorrect timestamps in the output file.
[segment @ 0x7fe5123101c0] stream:0 start_pts_time:157550 pts:14179898637 pts_time:157554 dts:14179898637 dts_time:157554 -> pts:14179898637 pts_time:157554 dts:14179898637 dts_time:157554
[NULL @ 0x7fe510744880] unknown SEI type 229
[segment @ 0x7fe5123101c0] Non-monotonous DTS in output stream 0:0; previous: 14179898637, current: 11332823907; changing to 14179898638. This may result in incorrect timestamps in the output file.
[segment @ 0x7fe5123101c0] stream:0 start_pts_time:157550 pts:14179898638 pts_time:157554 dts:14179898638 dts_time:157554 -> pts:14179898638 pts_time:157554 dts:14179898638 dts_time:157554
[segment @ 0x7fe5123101c0] Non-monotonous DTS in output stream 0:0; previous: 14179898638, current: 11332825707; changing to 14179898639. This may result in incorrect timestamps in the output file.
[segment @ 0x7fe5123101c0] stream:0 start_pts_time:157550 pts:14179898639 pts_time:157554 dts:14179898639 dts_time:157554 -> pts:14179898639 pts_time:157554 dts:14179898639 dts_time:157554



I've tried :


- 

- Changing the option
-fps_mode
withpassthrough
,vfr
,drop
. - Changing the option
-c
with-c copy
,-c:a copy -c:v libx264
.






None of the above works for me.


- Changing the option
-
Calling ffmpeg from Java calling command line/ shell script throws "Trailing garbage after a filter" Error
28 juin 2023, par coenniCalling ffmpeg from Java throws
"Trailing garbage after a filter"
Error

I tried to call from Java application command string over dockerized ffmpeg, same result.


docker run --rm -v sample-test:/config linuxserver/ffmpeg -loop 1 -t 5 -i config/1.jpeg -loop 1 -t 5 -i config/3.jpeg -y -filter_complex "[0:v]fade=t=out:st=4:d=1[v0]; [1:v]fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v1]; [v0][v1]concat=n=2:v=1:a=0,format=yuv420p[v];" -map "[v]" config/output/video_java.mp4



My goal is to run such a query from Java application


ffmpeg \
-loop 1 -t 5 -i input0.png \
-loop 1 -t 5 -i input1.png \
-loop 1 -t 5 -i input2.png \
-loop 1 -t 5 -i input3.png \
-loop 1 -t 5 -i input4.png \
-filter_complex \
"[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=out:st=4:d=1[v0]; \
 [1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v1]; \
 [2:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v2]; \
 [3:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v3]; \
 [4:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fade=t=in:st=0:d=1,fade=t=out:st=4:d=1[v4]; \
 [v0][v1][v2][v3][v4]concat=n=5:v=1:a=0,format=yuv420p[v]" -map "[v]" out.mp4


Runtime.getRuntime().exec(String.format("/bin/sh -c " + ffmpegCommand));



Why it happens and how to solve ? Appreciating


-
ffmpeg generates "unconnected output" error using -filte_complext [closed]
25 juillet 2023, par ConiferRodI'm trying to combine the rtsp streams of 4 Wyze cameras into a single stream and pipe the result into ffplay (Windows 11). My -filter_complex generates an 'unconnected output' error.


The command :
"C :\Program Files\ffmpeg\ffmpeg.exe" ^
-i rtsp ://user:password@10.0.0.239/live ^
-i rtsp ://user:password@10.0.0.181/live ^
-i rtsp ://user:password@10.0.0.251/live ^
-i rtsp ://user:password@10.0.0.252/live ^
-filter_complex "[0:v][1:v][2:v][3:v]xstack=inputs=4:layout=0_0|w0_0|0_h0|w0_h0[v]" -map '[v]' ^
| "C :\Program Files\ffmpeg\ffplay.exe" -


The error :
[fc#0 @ 000001f45c979d40] Filter xstack:default has an unconnected output
Error : Invalid argument
fd: : Invalid data found when processing input 0KB sq= 0B f=0/0