https://bugs.kde.org/show_bug.cgi?id=500113
--- Comment #6 from John <[email protected]> --- Thank you very much Méven for looking into this problem! First, I assume you downloaded that file from here: https://thetestdata.com/sample-mkv-file-download.php Even though I have added hundreds of attachments to these kind of files, I never did it from the command line. But for testing, I tried you command and it gave me this error message: Error: The file '1MB_720P_THETESTDATA.COM.mkv' is not a Matroska file or it could not be found. Which I assume it's the same problem you ran into. While Haruna and VLC seem to be able to play it, I think the file is corrupt or problematic in some way, as MediaInfo, confirms it by saying this: FileExtension_Invalid : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v Conformance warnings : Yes General compliance : File name extension is not expected for this file format (actual mkv, expected braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v) This is not a conformant MKV file as I assume this is why that command refuses to put the attachment into it! I didn't have time to test more files to see which one is conformant as I assume they are all generated by the same tool, which might be obsolete, so I just searched for another page with samples and I found this one: https://getsamplefiles.com/sample-video-files/mkv I have downloaded the last one to be similar to the one that you preferred, in 720p and ran that command like this: mkvpropedit sample-3.mkv --add-attachment cover.jpg Which gave me this output: The file is being analyzed. The changes are written to the file. Done. For the cover-1 (poster, portrait / vertical one) I tested with one from here: https://www.themoviedb.org/movie/10378-big-buck-bunny/images/posters?language=en-US Which I saved as cover.jpg For the cover-2 (backdrop, landscape / horizontal one) I tested with one from here: https://www.themoviedb.org/movie/10378-big-buck-bunny/images/backdrops?language=en-US Which I saved as cover_land.jpg I ran the same command with the slightly changed filename, like: mkvpropedit sample-3.mkv --add-attachment cover_land.jpg And it gave me the same output like for the first image (the poster one): The file is being analyzed. The changes are written to the file. Done. The file preview has now changed to the second file, the cover_land.jpg, which is the problem for which I have created this bug report. There is something in the code that make the preview generator choose the landscape (backdrop) attachment instead of the portrait (poster) one when both cover.jpg and cover_land.jpg are attached, which I always add to my files, as I'm used to how Kodi (former XBMC) media center displays them for movies, the poster for the selected title somewhere newar the list and the backdrop as background for the list, so both are needed and are used by some programs, and who knows, maybe Dolphin or Haruna might used them both in the future, so if I'm adding them, I'm adding them both. If only one is used (displayed) somewhere, then I want to see the poster (vertical, portrait) one. BTW, since I started saying that I never used commands to add them, I must say that I always added them with MKVToolnix GUI: https://mkvtoolnix.download/index.html On Debian and derivatives can be easily installed with: sudo apt install mkvtoolnix-gui An AppImage is also available on its official website, direct link to that section here: https://mkvtoolnix.download/downloads.html#appimage To check the Matroska conformance or other details of the container, streams attachments, MediaInfo is great and on Debian and derivatives can be easly installed with: sudo apt install mediainfo-gui Similar to the the mkvtoolnix-gui package, it will also pull whatever command line dependencies it needs, so those should be available too. I'm not sure, as I never used them. I always used just the GUIs. MediaInfo's official website, should be this one: https://mediaarea.net/en/MediaInfo For MKVToolnix I normally open the program first and then drag and drop the mkv file into its "Source files:" section, but this is good when working with multiple ones and adding audio tracks or subtitle tracks from more into own. The other way is to just right-click on the mkv file and then open with -> MKVToolnix GUI. Either way you decide to open the file, by dragging it over the already opened program or from the context menu, for the next step you need to switch to the Attachments tab and then drag and drop there the cover.jpg and cover_land.jpg files or uncheck (untick) them if the file already has them and you want to remove them. Then click on the "Start Multiplexing" button at the bottom. Then click on the "Job output" button on the left vertical panel (the last button there, like a cogwheel). Should say "Completed OK" at the top. Then you can click on the "More actions" button at the bottom and choose "Open folder" that should open the folder where the new file was created (the one with added or removed attachments), probably the same folder as the one where you started. If you need to use MediaInfo, in its menu -> View, you can choose Text or HTML for a easier to understand 2 columns key: value output. BTW, if it's not too hard, could you please also fix not being able to see previews when adding these the files cover and cover_land in JPEG-XL and AVIF formats? At the time when the standard was created, these 2 image formats didn't exists and since then I don't think there are many developers still working on it, so it will take a lot of time until someone decides to update that documentation. I downloaded a JPEG-XL and an AVIF file and renamed them in cover.avif and cover.jxl and added them as attached with MKVToolnix, which didn't complain about their formats and looked at the multiplexed MKV files with MediaInfo and it doesn't show the conformance problems, but, the posters doesn't show with either of these files. I'm thinking that inf the future movie studios and other people can release posts or backdrops in these formats too for better colors or HDR supports, and it would be nice if the code is ready to make thumbnails from these kind of files too. Thank you very much! Please let me know if there are other problems and I'll try to help as much as I can. -- You are receiving this mail because: You are watching all bug changes.
