Nevermind I just read your question again and I guess it sounds like you want the time stamp from the camera itself. Not sure how you would do that.
On Fri, Sep 6, 2019 at 11:29 PM Michael Shaffer <mikeshaf...@gmail.com> wrote: > I've been using Python to archive my RTSP IP camera footage. This is the > Python code I use to name the file the current date and time. Basically I > have the program terminate and start a new ffmpeg instance every 20 > minutes. It would be nice though if ffmpeg could segment and timestamp the > files itself. Not sure how you would do that exactly. > > timestr = time.strftime("%Y%m%d-%H%M%S") > > myUrl='ffmpeg1rec -rtsp_transport tcp -y -rtbufsize 200M -i \"rtsp:// > admin:password@192.168.1.23:554/Streaming/Channels/101/\ > <http://admin:password@192.168.1.23:554/Streaming/Channels/101/%5C>" -f > lavfi -f dshow -i audio="virtual-audio-capturer" -c:a libmp3lame -ab 192k > -ar 48000 -map_channel 1.0.0 -bufsize 5096k -c:v copy -f flv > recordings/cam1-' + timestr + '.mp4' > > subprocess.Popen(myUrl, shell=True) > > On Tue, Sep 3, 2019 at 5:01 PM Alejandro Escudero < > escuderoserr...@hotmail.com> wrote: > >> Hi, >> >> I am trying to get a RTSP stream from an IP Camera and save that stream >> as several MP4 segments, but i need that each file segment name gets the >> real time stamp of the video stream. (If I use the -strftime 1, it gets the >> time of the local machine but i need the real rtsp time). How can I get the >> Real Time Stamp? >> >> I am suing this command: >> >> >> ffmpeg -rtsp_transport tcp -i "rtsp:// >> admin:p...@myddns.dyndns.org:554/cam/realmonitor?channel=1&subtype=0" –f >> segment -segment_time 5 -c copy OUT%d.mp4 >> >> >> >> Thanks! >> >> >> Alejandro >> >> [ >> https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif >> ]< >> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> >> Libre de virus. www.avast.com< >> https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail >> > >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user@ffmpeg.org >> https://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> To unsubscribe, visit link above, or email >> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe". > > _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".