Adding CoverArt to a mp4 file

Started by js, November 23, 2023, 07:04:21 AM

Previous topic - Next topic

js

when i try to add it i run:
exiftool -CoverArt<=cover.jpg moviefile.mp4
bash: =cover.jpg: No such file or directory

according to the documentation this should work:
    -TAG[+-]<=DATFILE                Write tag value from contents of file

it obviously does not, at least on my Linux OS here. How does it work?

Phil Harvey

You need quotes around any argument with a "<" symbol because this is used in the shell for redirection (bash in your case, according to the error message).  So try this:

exiftool "-CoverArt<=cover.jpg" moviefile.mp4

Quote from: js on November 23, 2023, 07:04:21 AMaccording to the documentation this should work:
    -TAG[+-]<=DATFILE                Write tag value from contents of file

it obviously does not, at least on my Linux OS here. How does it work?

Not so obvious, was it?  ;)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

And being the jerk that I am, from the docs on the -TAG<=DATFILE option

QuoteNote that quotes are required around this argument to prevent shell redirection since it contains a < symbol.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

(whoever wrote that documentation was very thorough) ;)

(but you may be the only one who has read it all) :P
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).