B
B
Benderatorr2016-07-26 12:14:27
cmd/bat
Benderatorr, 2016-07-26 12:14:27

Why does ffmpeg close itself after half an hour of recording?

Such a problem. cmd file with text:

ffmpeg -i rtsp://192.168.50.50:554/ch01.264 -acodec copy -vcodec copy -r 60 -f segment -strftime 1 -segment_time 900 -segment_format avi D:\Camera\KENO\output_%%d-%%m_%%Y_%%H_%%M.avi

stream is written.
It is written until the total recording time does not exceed 30 minutes, if you set the segment size to 10 minutes, then 3 files are saved and ffmpeg closes itself without showing any errors.
What could be the reason.
PS the total amount of files before closing is about 600mb, WServer 2008 system

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Benderatorr, 2016-08-23
@Benderatorr

This is how it writes correctly:

ffmpeg -rtsp_transport tcp -i rtsp://192.168.50.50:554/ch01.264 -b:v 900k -acodec copy -vcodec copy -r 30 -f segment -strftime 1 -segment_time 00:30:00 -reset_timestamps 1 -segment_format avi D:\Camera\KENO\output_%%d-%%m_%%Y_%%H_%%M.avi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question