enzyme
enzyme copied to clipboard
could enzyme get mp4 video file metadata?
I use enzyme-0.4.2.dev0 to get mp4 video file metadata, and there was an error:
raise MalformedMKVError('No Segment found') enzyme.exceptions.MalformedMKVError: No Segment found
Enzyme is a EBML parser, a format MP4 doesn't use. Instead, in most cases, the tag information is stored in a ID3 tag, like MP3 files. I don't think it would be useful to add a mp4 support to enzyme as there's already other Python libs covering that.
For non-tag metadata, I'd refer you to ffmpeg (from this stackoverflow answer). For tags, I'd recommend pytaglib.
I planned to do a QTFF parser for a while and had started working on it but nothing concrete here and I have very few videos using that format anyway. I can try to find the code and push that into a branch. AFAIK MP4 extends QTFF.
The goal of enzyme is to be able to extract metadata from most video file formats, with MKV it covers a great deal of videos already. QTFF is the missing piece.
@Diaoul There are other projects using enzyme which request this feature. In this issue you have example files. https://github.com/morpheus65535/bazarr/issues/353