INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Multiple Images Piling up in my Video Files  (Read 896 times)

Absinthe

  • Guest
Multiple Images Piling up in my Video Files
« on: August 07, 2019, 12:40:19 am »

I recently began trying to set up MediaCenter in earnest about a month ago.  I've used it off and on for over two years but only for video files and ripped movies from disc.  Now that I've moved into a new home with a room worthy of a home theater, I've begun setting up the 10 foot display capabilities of MediaCenter.   In working with the tool tips for the theater view (Thanks for all the help, Mo and Lepa!!) I discovered that the cover art for a lot of files had changed to something less than what I had set it up for using the "Cover Art - Get From Internet" function or the "Get TV and Movie Info..." function.  At first I thought that MediaCenter was randomly selecting "folder.jpg" files the directory where the video file was located.  A quick check proved this to not be the case.  Then I thought the Cover Art folders might be damaged or corrupted given I've updated MediaCenter from version 15 or so. This also was not the case.  Thinking it might be conflicting cover art in the file tags, I attempted to remove the cover art using MediaCenter but also to no avail.  In the end, I used another media player to inspect the actual file tags of the 1539, MP4 and MKV video files and found each file had between three to five pieces of artwork stored in the tags.  It took over four hours to scan each file and remove all the artwork from the tags.  :o

Now some background.  All the video and audio files are stored on two network disc drive boxes located in a closet.  The network throughout the house is CAT6 Gigabit.  The MediaCenter server runs on a dedicated machine in my office  This machine only has Windows Defender for anti virus and PlayOn TV for recording the streaming media from my Xfinity service, and the MediaCenter running in server mode; its Running Window 10 Professional.  There are three MediaCenter clients located  throughout the house.  Neither the server nor the clients are configured to automatically update tags or cover art.   MediaCenter and Plex are the only utilities I've used to manage my video files although Plex is now just a front end to stream things to my smart tv's.  Ironically, the majority of the artwork appeared to be stills from the video they were attached to

Has anyone experienced this before?
Any ideas as to what might have trashed these tags?
When MediaCenter removes cover art, does it remove all the art from a file or just the top file?
Could this be WMP in the background?  Its literally never been run on any machine, nor has the library been setup

Any feedback would be most appreciated ;D

Logged

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Multiple Images Piling up in my Video Files
« Reply #1 on: August 07, 2019, 03:06:01 am »

First and foremost, MC doesn't use images in file tags for video files. For video files MC always uses a file sitting next to the actual video file.

Okay, there can be exceptions. You could edit the [Image File] Library field manually to point to an image in a different location. Also, TV Series and Season images are held in the Cover Art location defined in "Options > File Location > Cover Art > Folder" setting. The other settings in that section relate only to Audio files. i.e. "Audio Mode" (obvious) and "Also store image in file's tag".

In the end, I used another media player to inspect the actual file tags of the 1539, MP4 and MKV video files and found each file had between three to five pieces of artwork stored in the tags.
MC used to have issues with Audio files that contained more than one image in its tags. Of course, that doesn't apply to Video files, but maybe their existence was causing MC some trouble. I think that issue with Audio files was fixed, but I don't recall the solution. You might find it in the Release Notes Wiki: https://wiki.jriver.com/index.php/Release_Notes  But it shouldn't really matter here.

Note that if, for example, an MKV file has no external Cover Art image file, the [Image File] field in MC will point to the MKV file. What MC is saying there is that the thumbnail image that MC is using was sourced from a frame in the MKV file, not that the image inside the MKV file is being used. The best way to confirm this is to right-click on the thumbnail image in MC Standard View and select "Cover Art". You will see there that the two sub-options, "View (first file)" and "Edit (first file)" are greyed out, as there is no file to view or edit, just a thumbnail based on a video frame. Thumbnails are stored separately in a Thumbnail Database MC manages.


Ironically, the majority of the artwork appeared to be stills from the video they were attached to
That usually only happens when there is no Cover Art file for a Video, so MC takes a video frame and uses that for Cover Art, as per settings under "Options > Tree & View > Thumbnails". Specifically "Capture video thumbnails at x seconds".

If you as the user takes no action, no external image file will be created in that process. However, if you right-click on the thumbnail image in MC Standard View and select "Cover Art > Save Cover Art To External Location Specified In Options", then MC creates an image file next to the video file, and names it the same as the video file except for the extension.

Has anyone experienced this before?
No. But generally I haven't used any media management tools that add Cover Art image to video files.

Any ideas as to what might have trashed these tags?
I don't think the tags have been trashed. As above, it could be that the multiple images inside tags in the video files caused an issue with MC. Now that you have removed those tags, MC should work just fine. But it may have worked fine even with them in there. I'm not sure.

If the Cover Art used to be correct, and then changed to a frame from the video, I have to assume that the Cover Art files next to the video files were deleted. If that happened, MC may continue to show the correct thumbnail of the original Cover Art file for some time, until the thumbnails were rebuilt, either when the video was viewed, or the rebuild process was run, something changed for the file and MC updated its fields, etc.

When MediaCenter removes cover art, does it remove all the art from a file or just the top file?
This was one of the issues with multiple Cover Art images inside Audio files I think, from memory. Removing Cover Art only removed the first image, not all of them. I think that was fixed and now MC removes all of them, if it can locate them. Some formats and tools put image tags in strange places, apparently. Regardless, this doesn't apply to Video files.

Could this be WMP in the background?  Its literally never been run on any machine, nor has the library been setup
Well, one never knows with WMP, even when it has never been run! Unlikely though.

More likely some archiving program removed the image files next to the video files, or you did, not knowing the impact on MC. Of course, running "Remove Cover Art" will remove the files.

Try this sequence (because it is neat).

  • Find an MKV file that is using a video frame as the thumbnail in Standard View.
  • Check the [Image File] field in the Tag Action Window for the file and note that it is pointing to the MKV file. (Note that the field is just called "Image" in the Tag Action Window.)
  • Right-click on the file's thumbnail in MC Standard View and select "Locate > On disk (external). A Windows Explorer windows will open up in the location of the video file. Note that there is no image file.
  • Right-click on the file's thumbnail in MC Standard View and select "Cover Art > Save Cover Art To External Location Specified In Options".
  • Check the Windows Explorer window and you will see that there is now an image file next to the video file, named the same but with a different extension. A jpg file.
  • Refresh the tag window in MC and check the [Image File] field. Rather than point to the MKV file, the field will now point to the newly created jpg file, next to the video file.
  • Right-click on the file's thumbnail in MC Standard View and select "Cover Art > Remove Cover Art. Click "Yes" in the popup message. You will note that the thumbnail for the Video immediately disappears. The [Image File] field in the Library now points back at the MKV file.
  • Click anywhere in Standard View, or even just move the mouse over the tag window, if you still have it open. The video thumbnail will immediately re-appear. Auto Import running in the background, as per my settings, has noted the missing Cover Art thumbnail and rebuilt it from a video frame. Auto Import was triggered because the [Image File] tag is written to the file multiple times during the above process.

Neat. Enjoy!
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Absinthe

  • Guest
Re: Multiple Images Piling up in my Video Files
« Reply #2 on: August 07, 2019, 07:25:14 pm »

First and foremost, MC doesn't use images in file tags for video files. For video files MC always uses a file sitting next to the actual video file.

This critical tidbit explained quite a lot!

Note that if, for example, an MKV file has no external Cover Art image file, the [Image File] field in MC will point to the MKV file. What MC is saying there is that the thumbnail image that MC is using was sourced from a frame in the MKV file, not that the image inside the MKV file is being used. The best way to confirm this is to right-click on the thumbnail image in MC Standard View and select "Cover Art". You will see there that the two sub-options, "View (first file)" and "Edit (first file)" are greyed out, as there is no file to view or edit, just a thumbnail based on a video frame. Thumbnails are stored separately in a Thumbnail Database MC manages.

That usually only happens when there is no Cover Art file for a Video, so MC takes a video frame and uses that for Cover Art, as per settings under "Options > Tree & View > Thumbnails". Specifically "Capture video thumbnails at x seconds".

Hated the thumbnails.  Deleted them all and deselected the option.  Problem solved!

If the Cover Art used to be correct, and then changed to a frame from the video, I have to assume that the Cover Art files next to the video files were deleted. If that happened, MC may continue to show the correct thumbnail of the original Cover Art file for some time, until the thumbnails were rebuilt, either when the video was viewed, or the rebuild process was run, something changed for the file and MC updated its fields, etc.

This is exactly what happened.  When I cleaned up the media folders, I deleted everything that wasn't an MP4, MKV or XML file.  Thanks tons for this explanation.  As I suspected, MediaCenter doesn't work like most of the other media players regarding tags and video files.  Now I can get back to completing the tool tips for the TV Shows and eventually the Audio Files
Logged
Pages: [1]   Go Up