diff options
Diffstat (limited to 'libhb/muxavformat.c')
-rw-r--r-- | libhb/muxavformat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/muxavformat.c b/libhb/muxavformat.c index fb6326d1d..d54200e1a 100644 --- a/libhb/muxavformat.c +++ b/libhb/muxavformat.c @@ -913,6 +913,11 @@ static int avformatInit( hb_mux_object_t * m ) snprintf(tool_string, sizeof(tool_string), "HandBrake %s %i", HB_PROJECT_VERSION, HB_PROJECT_BUILD); av_dict_set(&m->oc->metadata, "encoding_tool", tool_string, 0); + time_t now = time(NULL); + struct tm * now_utc = gmtime(&now); + char now_8601[24]; + strftime(now_8601, sizeof(now_8601), "%Y-%m-%dT%H:%M:%SZ", now_utc); + av_dict_set(&m->oc->metadata, "creation_time", now_8601, 0); ret = avformat_write_header(m->oc, &av_opts); if( ret < 0 ) |