Change m4v type from Home Video to Movie

How can I via the command line change the iTunes Media type from Home Video to Movie? After I convert a DVD to m4v via Handbrake I would like to set the iTunes media type.

I can do this manually in iTunes but I'm looking for a command line approach so that I can automate it.


Solution 1:

The best approach is using Subler to open the m4v file and then fetch the metadata from the iTunes Store or MovieDB. Then, just save it and add it to your iTunes library. This is as automated as the process will get.