I was looking on the internet how to make a homemade DVR (using a Linux machine) and what I found was this avconv command:
avconv -i rtsp://<user>:<password>@xxx.xxx.xxx.xxx:xxx/play1.sdp -c copy -map 0 -f segment -segment_time 300 -segment_format mp4 "capture-%03d.mp4"
However, as seen in the command, the file name pattern is sequential (capture-001.mp4) and I need the name with the date and time (capture-12-08-2017_15-54.mp4), and searching the libav documentation apparently only this sequential option is possible.
I would like to know if it is possible to use only avconv and bash (if so how), or otherwise what tools I need.
Thank you in advance.