[FFmpeg-user] FFMPEG not accepting print format string?

S. Helbig s.helbig at mailbox.org
Sun Jun 27 18:49:35 EEST 2021


Ok, Can give my own answer...

Something was missing before the output path: '-f segment'.
Added that and now it happily creates consecutively numbered segments-
infinitely still but the next step will be to give this a limit where
older files will be deleted.



S. Helbig via ffmpeg-user:
> Hello,
> 
> I'm trying to create a CCTV recording of an IP cam.
> 
> My input was:
> 
> ffmpeg -loglevel debug -hide_banner -i
> 'http://192.168.2.345:678/videostream.cgi?user=USER&pwd=PWD' -y
> -segment_time 1800 -segment_format mp4 -segment_atclocktime 1 -c copy
> '/path/to/destination/recording-%03d.mp4'
> 
> I was expecting 1800 second segments named recording-001.mp4,
> recording-002.mp4, recording-003.mp4...
> 
> But FFMPEG just creates a file called 'recording-%03d.mp4'.
> 
> Does it not like this format?
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> 


More information about the ffmpeg-user mailing list