[FFmpeg-user] [ffmpeg] preserving metadata from .mp4 to .jpg/.png frames
dgreenwood at trekview.org
Thu May 21 17:20:46 EEST 2020
i have a 360 video (.mp4) shot using a GoPro Fusion with embedded gps (gpmd
i am trying to break the video into frames (1 per second), either png or
jpg, whilst preserving certain global metadata, like camera make, but most
my idea was to first extract the metadata using exiftool, break the video
down into frames using ffmpeg, and then geocode the frames based on times
the issue, i have not been able to figure out how to properly preserve
metadata during conversion in ffmpeg from mp4 to jpg/png. importantly, this
means the images do not have a capture time.
now i'm starting to consider using a custom script to offset based on frame
rate (e.g. start at 12:00 (start time of vid) and add +1 sec to each frame
timestamp) using a custom script.
before i jump into this, i was wondering if ffmpeg could handle this
natively in the conversion?
based on web searches i've tried a lot of flag combinations, alas, no
ffmpeg -i VIDEO_7152.mp4 -r 1 -map_metadata 0:g FRAMES/img%04d.png
ffmpeg -i VIDEO_7152.mp4 -r 1 -movflags use_metadata_tag FRAMES/img%04d.png
if anyone could validate/invalidate whether this is even possible in ffmpeg
that would be useful in helping me figure out what to do next.
here is the video file:
More information about the ffmpeg-user