Martchus / tageditor

A tag editor with Qt GUI and command-line interface supporting MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska
GNU General Public License v2.0
692 stars 56 forks source link

Error Unable to assign attachments because the container object has not been initialized #74

Closed hunandy14 closed 3 years ago

hunandy14 commented 3 years ago

I want to use the command to change the thumbnail, what should I do? (graphical interface can be successfully changed.)

thank you

image

Martchus commented 3 years ago

The error message is certainly confusing but I'm afraid you cannot set attachments in MP4 files in general. Attachments are in fact only implemented for Matroska files and I don't think the MP4 format itself supports attachments anyways. If you would like to set a cover, just set it as tag value. The cover should then also be recognized by other applications.

Martchus commented 3 years ago

By the way, there's already https://github.com/Martchus/tageditor/issues/55 which is about streamlining adding covers to Matroska files so one could also add a cover to Matroska file by setting the tag value and would not have to use different commands depending on the file format. However, I have not implemented it yet.

hunandy14 commented 3 years ago

If you would like to set a cover, just set it as tag value.

What i want to do is this. image

can give me an Command line example?

Martchus commented 3 years ago

Something like tageditor set cover=/the/cover.jpg -f /the/file.mp4 should work. Also checkout --help and the README.

hunandy14 commented 3 years ago

succeeded!!! thank you very much. ♪(´▽`)♪(´▽`)♪(´▽`)

Martchus commented 3 years ago

Glad to help and I guess I should improve the error message.