Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp4 meta tags not visible after transcoding with ffmpeg, but ffprobe shows them #453

Open
dzek69 opened this issue May 27, 2020 · 6 comments
Assignees

Comments

@dzek69
Copy link

dzek69 commented May 27, 2020

I've transcoded a movie file with ffmpeg, keeping meta tags, and I can see those tags when using ffprobe on output file. Using MediaInfo I can see those tags with input file but not with output file.

Input file Media Info:
https://pastebin.com/3fwrQa1D
Output file Media Info:
https://pastebin.com/kydTRDim

So it still reads Encoded date in General section, but cannot read com.android.version or location.

ffprobe on the input file:
https://pastebin.com/tPPE7TWe
ffprobe on the output file:
https://pastebin.com/CgMWQ0P2

Output file:
[deleted for privacy concerns]

Transcoding command used:

ffmpeg -n -i ../../Pictures/Photos/__Unsorted/Xiaomi - lepszy/2020/04/VID_20200404_151129.mp4 -c:v libx264 -preset slow -crf 23 -c:a aac -ss 5 -to 7 -vsync 2 -tune film -movflags +faststart -map_metadata 0 -movflags use_metadata_tags VID_20200404_151129.encoded.mp4
@JeromeMartinez
Copy link
Member

JeromeMartinez commented May 27, 2020

When adding the code corresponding to the parsing of the missing "keys", I find more metadata than in your input file:

major_brand                              : mp42
minor_version                            : 0
compatible_brands                        : isommp42
creation_time                            : 2020-04-04T13:11:42.000000Z
location                                 : [moderated]
location-eng                             : [moderated]
com.android.version                      : 9
encoder                                  : Lavf58.20.100

Would you mind to share the input file too so I can compare an add more data too (I don't like the "xyz: [moderated]" line in your export)?

@dzek69
Copy link
Author

dzek69 commented May 27, 2020

i just modarated recording location for privacy reasons I totally forgot that they are readable from the output file I've attached 🤦... looks like I'm not that good at privacy

At least let me keep the original recording for myself and have this another file instead - both original and converted are included in this zip:
[deleted]

The same problem occurs on this file (the same thing recorded it - Xiaomi Redmi Note 5)

If there is some extra data in the output file than input file then ffmpeg probably added something, but I don't mind.

@JeromeMartinez
Copy link
Member

i just modarated recording location for privacy reasons

Oops... I deleted the attached file as well as my report, people monitoring this tracker still have the information but at least other people and robots will not have it.

If there is some extra data in the output file than input file then ffmpeg probably added something, but I don't mind.

For a reason I ignore, looks like FFmpeg adds the major_brand of the source file in the output file metadata, looks like a bad side effect of your command line options. why not... Not sure what to do with that, maybe just trash them as it is not so useful, or at least flag them as source file info.

Your command line makes me see that FFmpeg is not a friend of Elon Musk, FFmpeg developers expect that all videos are shot on Earth :)

@dzek69
Copy link
Author

dzek69 commented May 27, 2020

I deleted the attached file as well as my report (...)

I did not know that you could remove your edit from the history. Nice, thanks GitHub. I thought it will be there forever so another file I've posted has this location included too. So I've removed this as well, I hope you've stored this on your computer, if not - I can record something for you without location and post it.

looks like FFmpeg adds the major_brand (...)

I really have no idea what that meta tag is for :) Actually for my personal use I just care about location to get copied when I'm transcoding the files. If some other meta data gets copied - cool, maybe it will be useful in the future.

looks like a bad side effect of your command line options

After a quick research I see people complaining about that, could be ffmpeg problem [?] https://stackoverflow.com/questions/17886516/ffmpeg-editing-metadata-major-brand

FFmpeg developers expect that all videos are shot on Earth :)

Well, I hope it will get fixed before my trip to Mars, I don't want bad meta data in my files :D

@JeromeMartinez
Copy link
Member

After a quick research I see people complaining about that, could be ffmpeg problem [?]

No, the poster didn't understand that FFmpeg is a remuxer and not a in place editor.
In the output FFmpeg stored the source major_brand value (a more technical field) in a metadata for whatever reason. Anyway not important, I see what is the issue about the location in the output file.

@dzek69
Copy link
Author

dzek69 commented May 27, 2020

Don't forget the com.android.version as well :) Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants