video streaming – How to specifiy ffmpeg creation time as the segment creation time

I am using ffmpeg to create video records from streams. Ffmpeg command creates segments from the streams. Think that 24 hours record with ffmpeg and divide it into 1 hour segments so i have 24 video records at the end. Problem is that ffmpeg always put the first segment creation time to the following ones meta data. Last video has the first video creation time. How to create segments with the time they created ?

My ffmpeg commands

ffmpeg -y -buffer_size 500000 -thread_queue_size 128 -i $1 -metadata title=$2 -metadata creation_time="`date +%F` `date +%T`" -c:a copy -c:v copy -f segment -segment_time 01:00:00 segment_format mp4

Read more here: Source link