paulpacifico / shutter-encoder

A professional video compression tool accessible to all, mostly based on FFmpeg.
https://www.shutterencoder.com
GNU General Public License v3.0
1.08k stars 59 forks source link

mkv container is missing metadata #184

Open buxel opened 8 months ago

buxel commented 8 months ago

Hi,

I'm trying to transcode the videos i took with my phone for archiving. Since the iOS camera filenames do not give away the creation date, I tried to "preserve metadata" to keep a timestamp when the video was taken.

As you can see, only the "mp4" container has an "Media Created" proeperty after transcoding. image

image

I have observed the "Media created" is kept, at least for .mp4 containers. Do you think that "Date created" should also be set according to source, if "preserve metadata" is selected? Otherwise, results may be confusing.

Thank you for this lovely tool!

paulpacifico commented 8 months ago

Hi,

Unfortunately the .mkv metadata are handled by ffmpeg (the backend tool of SE) I can't do much for that but I'm updating it regularly.

Paul.

buxel commented 8 months ago

While searching for this issue, I found this: https://video.stackexchange.com/a/26076

In my transcoder project, a lot of camera makers like to inject custom meta keys in the MP4/MOV container, and I want to keep them in the transcoded MP4/MOV files. After a lot of head scratching, FFmpeg does seem to have a switch for this purpose:

-movflags use_metadata_tags

Note that this has to go after the input file, as for example in:

ffmpeg -i $input_file -movflags use_metadata_tags -crf 22 $output_file

according to a comment there, it should also resolve another issue I have with incorrect orients after changing scale of a video.

is SE already using this parameter?

paulpacifico commented 8 months ago

Yes SE is using -movflags argument but it's only working when you're using .mov files :-/

buxel commented 8 months ago

My source videos are all .MOV

paulpacifico commented 8 months ago

Yes but I speak about the output extension not input.

buxel commented 8 months ago

I see. Too bad, i was really hoping to transcode my phone videos to AV1 for logn term storage. Loosing the date information sadly is a no-go for this kind of content.

Thank you for clarifying!