
Recherche avancée
Autres articles (20)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
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 (...)
Sur d’autres sites (5139)
-
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
-
Trying to stream a video loop using FFMPEG. However, I keep getting the error "Cannot Write the Headers Server returned 400 Bad Request" [closed]
8 mai 2023, par lokit khemkaI am using
mediamtx
for starting RTSP server. The command that I am using for ffmpeg is as follows :

ffmpeg -re -stream_loop -1 -i ./clouds.mp4 -f rtsp -rtsp_transport tcp rtsp://localhost:8554


The tried various different options but not luck. I am not getting the ffmpeg to stream the video.


The file details are as follows :


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from './clouds.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: mp42isomavc1
 creation_time : 2023-01-12T20:44:34.000000Z
 Duration: 00:00:56.34, start: 0.000000, bitrate: 2952 kb/s
 Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 2758 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
 Metadata:
 creation_time : 2023-01-12T20:44:34.000000Z
 handler_name : Vimeo Artax Video Handler
 vendor_id : [0][0][0][0]
 encoder : AVC Coding
 Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
 Metadata:
 creation_time : 2023-01-12T20:44:34.000000Z
 handler_name : Vimeo Artax Audio Handler
 vendor_id : [0][0][0][0]
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))



The error on
mediamtx
terminal window is :

2023/05/08 17:30:43 INF [RTSP] [session 298895e1] created by 127.0.0.1:38024
2023/05/08 17:30:43 INF [RTSP] [conn 127.0.0.1:38024] closed (invalid path)



-
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