How to change internal Exif "creation time" NOT to UTC timestamp but to MEZ/MESZ in MP4 video?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change internal Exif "creation time" NOT to UTC timestamp but to MEZ/MESZ in MP4 video?

FFmpeg-users mailing list
Ok, I can change the internal EXIF Metadata "Creation time" of an MP4 video with the following command:

    ffmpeg -i input.mp4 -c copy -map 0 -metadata creation_time="2020-04-19 11:30:00" output.mp4

It works.

However the date is interpreted as UTC time zone value.

Since I the videos are taken in the timezone MEZ resp. MESZ (summer time) the timestamp does not reflect the real time of recording.

Ok, I could manually investigate if at the time of recording it was summer time or not and add 1 or 2 hours to the command timestamp value.
But this inconvenient and tedious on the long run.

Isn't there a way to tell ffmpeg:

"Hey ffmpeg, this is the UTC time. Put AUTOMATICALLY the MEZ zone time (winter time) or MESZ zone time (Summer time) in EXIF header"

Thank you
Ben

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to change internal Exif "creation time" NOT to UTC timestamp but to MEZ/MESZ in MP4 video?

Marton Balint


On Sat, 18 Jul 2020, Ben via ffmpeg-user wrote:

> Ok, I can change the internal EXIF Metadata "Creation time" of an MP4 video
> with the following command:
>
>    ffmpeg -i input.mp4 -c copy -map 0 -metadata creation_time="2020-04-19
> 11:30:00" output.mp4
>
> It works.
>
> However the date is interpreted as UTC time zone value.

No, it is interpreted as local time.

>
> Since I the videos are taken in the timezone MEZ resp. MESZ (summer time) the
> timestamp does not reflect the real time of recording.
>
> Ok, I could manually investigate if at the time of recording it was summer
> time or not and add 1 or 2 hours to the command timestamp value.
> But this inconvenient and tedious on the long run.
>
> Isn't there a way to tell ffmpeg:
>
> "Hey ffmpeg, this is the UTC time. Put AUTOMATICALLY the MEZ zone time
> (winter time) or MESZ zone time (Summer time) in EXIF header"

You should be able to specify the UTC offset as specified in ISO-8601.
E.g.

2020-04-19T11:30:00+0100

Regards,
Marton
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".