Posts: 2,838
Joined: Dec 2006
Reputation:
2
I have been adding musicvideos to my musiclibrary. Some of them are part of albums and some albums are musicvideo library albums. I like them to be part of the music library (and not video).
It is working well for musicvideos in MP4 format, but not in M4V format. No idea what is driving this. I have added the below in my advancedsettings:
<musicextensions>
<add>.mp4|.m4v</add>
</musicextensions>
Any thoughts?
Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 16 GB DDR3 | 128 GB SSD, 82 TB (9 x 6 TB, 7 x 4 TB)
HTPC 1: Raspberry Pi 2 | HTPC 2: Raspberry Pi 2 | HTPC 3: Raspberry Pi
Posts: 5,244
Joined: Jul 2012
Reputation:
339
Maybe you could provide some more detail about what is "not working well". My understanding is MP4 and M4V is exactly the same, but maybe not. Keep in mind that it wasn't intended that video would be part of the music library. The fact that it works at all is kind of an accident.
scott s.
Posts: 2,838
Joined: Dec 2006
Reputation:
2
Thanks for your messages.
Unfortunately, the issue is completely different from what I described for MP4s. MP4s are being added to the library (just sometimes my tags are not perfect, so they don't show up as I want them to), while M4Vs are not added at all. Basically, Kodi ignores my M4V files completely although I have included in my advancedsettings to include the (see above).
Do you guys have any M4V files and can comment whether you succeeded to add them to the music library. If so, the issue will be my tags and I can sort this out.
Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 16 GB DDR3 | 128 GB SSD, 82 TB (9 x 6 TB, 7 x 4 TB)
HTPC 1: Raspberry Pi 2 | HTPC 2: Raspberry Pi 2 | HTPC 3: Raspberry Pi
Posts: 4,545
Joined: Jun 2015
Reputation:
269
No .m4v files so I can't test, sorry.
Turn debug on and get a debug log while adding a music source with just .m4v files in and "yes" to scan to library. That will show if it is scanning these files, and having problems with the tagging, or not even seeing them. You can post a link to the resulting log if you like.
Posts: 2,838
Joined: Dec 2006
Reputation:
2
Ah, wait... It is not a tag issue, but a Kodi issue. I just renamed the file from .m4v to .mp4. Now it reads the tag and shows properly. Obviously, this is not the solution. Any idea how to get Kodi to read tags from files with .m4v ending? Any thoughts appreciated!
Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 16 GB DDR3 | 128 GB SSD, 82 TB (9 x 6 TB, 7 x 4 TB)
HTPC 1: Raspberry Pi 2 | HTPC 2: Raspberry Pi 2 | HTPC 3: Raspberry Pi
Posts: 4,545
Joined: Jun 2015
Reputation:
269
Our friend Scott is right on all counts!
Taglib will handle .m4v files, but I had not noticed that MusicInfoTagLoaderFactory.cpp was not including them as a valid extension. I can raise the trivial PR to add this extension sure.
However 17.4 is at RC so I'm not sure this fix will get into Krypton. Also I'm a little uncomfortable pushing through a change that I can not test. This means that I will raise the PR, but I am less than sure what will happen to it.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
Seems like a small change so no objections for 17.4
Posts: 2,838
Joined: Dec 2006
Reputation:
2
Fantastic, thanks so much scott967, DaveBlake and Martijn. I was thinking to rename all my m4v files manually, but glad to read that this will not be needed. Much appreciated!
Server: Asus Sabertooth Z77 | Intel Core i5 3.4 GHz | 16 GB DDR3 | 128 GB SSD, 82 TB (9 x 6 TB, 7 x 4 TB)
HTPC 1: Raspberry Pi 2 | HTPC 2: Raspberry Pi 2 | HTPC 3: Raspberry Pi