Hello, I’m new to MediaInfo CLI and new to making .BAT files. I have 2 questions (probably simple fixes, but I can’t seem to get it). Below is a very simple/small part of my second .Bat file I have ever made. The first time the .Bat file is run it checks for a MediaInfo Template. If it’s not there it will make one. When I echo the General, Video, Audio text to the file Template1.txt the .Bat file will error out unless they are surrounded with “”. REM Make the First Template if not exist "%outputDir%\Templates\Template1.txt"...
Hello, I’m new to MediaInfo CLI and new to making .BAT files. I have 2 questions (probably simple fixes, but I can’t seem to get it). Below is a very simple/small part of my second .Bat file I have ever made. The first time the .Bat file is run it checks for a MediaInfo Template. If it’s not there it will make one. When I echo the General, Video, Audio text to the file Template1.txt the .Bat file will error out unless they are surrounded with “”. REM Make the First Template if not exist "%outputDir%\Templates\Template1.txt"...
Hello, I’m new to MediaInfo CLI and new to making .BAT files. I have 2 questions (probably simple fixes, but I can’t seem to get it). Below is a very simple/small part of my second .Bat file I have ever made. The first time the .Bat file is run it checks for a MediaInfo Template. If it’s not there it will make one. When I echo the General, Video, Audio text to the file Template1.txt the .Bat file will error out unless they are surrounded with “”. REM Make the First Template if not exist "%outputDir%\Templates\Template1.txt"...
Wrong architecture (i386) of MediaInfo installed via winget upgrade
Running the command with explicit architecture works: The issue is in WinGet and forcing the architecture (once) it the fix.
Wrong architecture (i386) of MediaInfo installed via winget upgrade
Incorrect Duration for WavPack compressed long duration DSD
Fixed, dev snapshots have the fix and it will be in next release.
Jerome, any progress ?
Jerome, here is a ~25minute DSF and compressed WV using wavpack 5.8. The WV file is valid but MEDIAINFO reports only 1min 56 seconds. Google drive shared folder: https://drive.google.com/drive/folders/1x78YPDZ2oIzx8sEYf4d6VmQMVPOKO-9o?usp=sharing
Sample file please (if not possible in public, link at info@mediaarea.net)
Incorrect Duration for WavPack compressed long duration DSD
Is there really no one who can correct this fatal mistake with the non-transparent pngs? They are poorly handled, go back to school and learn the basics of image processing... Do we look transparent to you? C:\Program Files\MediaInfo\Assets\ Best regards, Hello Athome
Width/height incorrectly shown for rotated jpeg
Hello! Thank you for this indispensable program. Feedback on this: x Windows: fix transparency issue with pinned app on Windows 10 Not fixed. Install -> Start -> All Apps, transparent icon OK -> Pin to Start -> Transparency broken MediaInfo 25.07.0 on the left (transparent icon broken) MediaInfo (2) 24.06.0 on the right (transparent icon OK) Best regards Hello Athome
Hello! Thank you for this indispensable program. Feedback on this: x Windows: fix transparency issue with pinned app on Windows 10 Not fixed. Install -> Start -> All Apps, transparent icon OK -> Pin to Start -> Transparency broken MediaInfo 25.07.0 on the left (transparent icon broken) MediaInfo (2) 24.06.0 on the right (transparent icon OK)
MediaInfo.dll on Windows 64 bit
Fixed, in next dev snapshots and in next version.
MediaInfo.dll on Windows 64 bit
I second this request. This would be especially helpful scanning through a bunch of dual language anime to quickly determine the default language.
I was preparing my answer with that :).
I think I answered my own question. Looks like the CentOS_8 version works with Amazon Linux 2023. I was able to experiment and get v25.04 installed on a container and running successfully.
HI there. I've been experiences issues similar to the ones details in this post https://sourceforge.net/p/mediainfo/discussion/297610/thread/86f3f5aeea/ where quicktime .mov files are randomly getting conformance errors when using mediainfo v24.06. I've been trying to upgrade to v25.04, but there doesn't appear to be an available binary that can work with Amazon Linux 1 & 2, which I'm currently using for my docker containers. Before I go down the rabbit hole of upgrading to Amazon Linux 2023, is...
How do I include brackets in custom template? cause it's not including the brackets in the final output. This is my template: Video;[B]Video:[/B] %Width%x%Height% | %DisplayAspectRatio/String% | %Format_Commercial% %Format/Info% | %Duration/String%\r\n Audio;[B]Audio:[/B] %Language/String% %Format/String% %Channel(s)% CH\r\n Text;[B]Subtitle:[/B] %Language/String% %Format% %Title%\r\n File_End;\n
the result may contains some errors, Which errors? You showed errors in something not from MediaInfo (MediaInfo report was processed in some way) doesn't produce the same result (for around 1% of the mkv processed) that processing a single mkv, in my case this one : Which result is different? Issue here is that you provide reports with 2 changes (-f & --BOM) so I can not compare. Provide 2 reports with only --BOM as the difference. In the Summary.jpg below, I colored as green (sorry, not very visible)...
Sorry, what I say is that if you extract the datas of a folder with --BOM commutator, the result may contains some errors, which doesn't occur when you extract separately the datas for each file. Then, the command to process a folder : MediaInfo.exe V:\_Films_to_IMDB_\__DivX__ --logfile = V:\_Films_to_IMDB_\__DivX__\MediaInfo_DivX_PB.csv --BOM doesn't produce the same result (for around 1% of the mkv processed) that processing a single mkv, in my case this one : MediaInfo.exe V:\_Films_to_IMDB_\__DivX__\tt16366836.mkv...
Sorry, what I say is that if you extract the datas of a folder with --BOM commutator, the result may contains some errors, which doesn't occur when you extract separately the datas for each file. Then, the command to process a folder : MediaInfo.exe V:\_Films_to_IMDB_\__DivX__ --logfile = V:\_Films_to_IMDB_\__DivX__\MediaInfo_DivX_PB.csv --BOM doesn't produce the same result that processing a single mkv, in my case this one : MediaInfo.exe V:\_Films_to_IMDB_\__DivX__\tt16366836.mkv --logfile = V:\_Films_to_IMDB_\__DivX__\MediaInfo16366836_PB.csv...
If I understand well, the summary indicates that MediaInfo_DivX_PB.csv lists the tracks (V/A/A/T/T) with ID 1 2 3 4 5 but MediaInfo_DivX_PB.csv contains for this file tt16366836.mkv the ID order 1 2 4 3 5 as expected, and your summary indicates the right order for other CSV files. I see no problem in practice, you have the ID and StreamOrder order you expect in all CSV files except the summary file but the summary file is not from MediaInfo so not our business.
Hello Jerome, I think that I underestand now the issue. The -f commutator provides more informations, but the same ID ( = StreamOrder + 1 ) that previously. The issue comes (IMHO) from how the datas are extracted. 1) I extract the datas only for my problematic mkv (tt16366836.mkv) : the Output is correct. 2) I extract the datas for all the mkv located in the same folder that the problematic one : now some mkv have incorrect ID in the Output. Maybe then, I should extract the data for each mkv, instead...
Hello Jerome, For your question, I don't know.. I'm gonna trying the option -f, thank you ! EDIT : A friend said me to use "--BOM", but I see now that the result returned with "-f" looks very interesting ! Many thanks :)
Hello Jerome, For your question, I don't know.. I'm gonna trying the option -f, thank you !
Is the ID listed by MKVMerge really the ID, or the track position in the file? (it starts with 0, it is likely a track position and not the track ID MediaInfo can provide the track position with "mediainfo -f" with the command line, and this is the StreamOrder value.
Hello, I made a script with MediaInfo to extract the datas (mainly Audio languages + SubTitles) to keep only the FRA+ENG audio & S/T tracks + MKVToolNix\mkvmerge.exe to keep only those ones and define FRA as Dft.. It works fine, except on some very few movies, where the ID doesn't match between MediaInfo & MKVInfo ?! For example for the same MKV movie, I get 2 different informations : MediaINFO : V ID : 1 A ID : 2 A ID : 3 S ID : 4 S ID : 5 S ID : 6 MKVinfo : V + Numéro de la piste: 1 (ID de piste...
I can close this out because I discovered that ffmpeg can divide videos quite easily which will save me a lot of work. Thanks again.
I am dividing AVI video files with y800 codec and approx 1800 frames each. These are 256 brightness grayscale with 1 byte per pixel and 640x480 size. My plan of attack is to read in N bytes from the file which should give me the header info. I then read in chunks of say 300 frames (300x640x480 bytes) and append these to the header info N bytes. I am currently guessing how many bytes to read in for the header. This works for the first output file which surprised me because it will only have 300 frames...
Oh man, I was worried when I saw the word "patch" (surely you're not asking us to decompile, patch, and recompile? That would be horrible ^^) Then I looked into the Tickets >Patches section, where I have to stumble upon a comment under a patch submission that tells me that there is an active repo on GitHub! 😅 I thought MI was closed source since 2019, by the state of this SourceForge page. https://sourceforge.net/p/mediainfo/patches/87/#f9f8 we definitely need to communicate more about GitHub than...
If you don't see it in the GUI, you will not see it with the DLL. HeaderSize is currently implemented for MP4/MOV, WM and ADIF, do you look with a file from 1 of theses formats?
Thanks for the quick response. I was using the advanced mode but still couldn't see the HeaderSize. I will now give the DLL a try.
I’m wondering what the command line options are for the GUI version (specifically the Windows version, if implementation differs) No. Where is the official documentation for command line arguments for GUI and CLI versions, respectively? GUI: no option: CLI: a bit with mediainfo --help, but not exhaustive, we are looking for sponsors for this task. Is there a way to load the GUI with a specific view template? No, usually people use the GUI as is or the CLI or DLL with options and show the result in...
I’m wondering what the command line options are for the GUI version (specifically the Windows version, if implementation differs) I’d like to open up certain files in certain template views, but I’m having a hard time even looking into this, because I can’t seem to find proper documentation. * Where is the official documentation for command line arguments for GUI and CLI versions, respectively? * Is there a way to load the GUI with a specific view template?
Fields but I can't see it anywhere in the MediaInfo GUI tree view. Menu Debug, "advanced mode". To do this I need to know the size in bytes of the video header. But well, with a GUI is not the best choice for automation, you have the command line or the DLL...
Hi, I am writing an app that will split Y800 video files into a number of smaller video files. To do this I need to know the size in bytes of the video header. I can see there is a field called 'HeaderSize' listed in MediaInfo - Fields but I can't see it anywhere in the MediaInfo GUI tree view. Is there a way to get the header size in bytes from the MediaInfo GUI? thanks in advance Dave
Merci beaucoup !
Please ignore the previous file and take this one instead: https://easyupload.io/yqoip9 Tell me if it's better. Exactly same analysis. Do you think I can tweak the file to correct it? Thanks a lot. Quick, not standard but does not trigger right now an error (it may change in the future if we implement the "adds no additional fields" check) : change 0x0C000000 in 0x0000000C. Addition action for being standard; change 0x0000001C before "c708" in 0x0000000C in order to exclude the extra content from...
Please ignore the previous file and take this one instead: https://easyupload.io/yqoip9 Tell me if it's better. Do you think I can tweak the file to correct it? Thanks a lot.
Please ignore the previous file and take this one instead: https://easyupload.io/yqoip9 Tell me if it's better. Thanks.
Please ignore the previous file and take this one instead: https://easyupload.io/yqoip9 Tell me if it's better. Thanks.
Please ignore the previous file and take this one instead: https://easyupload.io/yqoip9
https://easyupload.io/ma855z This conformance error report seems legit: 1FA65469 Sample Description (44 bytes) 1FA65469 Header (8 bytes) 1FA65469 Size: 44 (0x0000002C) 1FA6546D Name: stsd 1FA65471 Version: 0 (0x00) 1FA65472 Flags: 0 (0x000000) 1FA65475 Count: 1 (0x00000001) 1FA65479 Text (28 bytes) 1FA65479 Header (8 bytes) 1FA65479 Size: 28 (0x0000001C) 1FA6547D Name: c708 1FA65481 Reserved: 0 (0x0000000000000000) 1FA65487 Data reference index: 1 (0x0001) 1FA65489 lpmc (12 bytes) 1FA65489 Header...
Thanks for your quick reply. Please find a 30 sec sample here: https://easyupload.io/ma855z
Is there any update about this? We expected to have fixed all the false-positive conformance report in v25.04. If not, please provide a sample file (info@mediaarea.net if not possible to share publicly the file).
Hi, Is there any update about this? I have the same error in the latest version of Mediainfo (not the previous one). It appears when I embed a CEA 608 and/or 708 captions inside a Quicktime - ProRes.
I'm thinking why not just use (Win10 start menu) icons (code) from the version (MediaInfo 24.06.0 2024-06-27) where the (Win10 start menu) icons are perfect? Why change that? It's just aesthetics, I know, but changing something so basic is both clumsy and completely unnecessary... annoying to say the least...
Hello! Just now installed MediaInfo 25.04 and much better small icon! Aesthetics... still small white shadow dots that do not make the icon completely transparent, it's nice when icons are stylish, just sayin'... Thanks and best regards
Hello! Just now installed MediaInfo 25.04 and much better small icon! Aesthetics... still small white shadow dots that do not make the icon completely transparent, it's nice when icons are stylish, just sayin'... Thanks and best regards
Hello! Just now installed MediaInfo 25.04 and much better small icon! Aesthetics... still small white shadow dots that do not make the icon completely transparent, it's nice when icons are stylish, just sayin'... Thanks and best regards
Hello! Just now installed MediaInfo 25.04 and all is good! Thanks and best regards
Fixed, in dev snapshots and will be in next release,
Our parser tries to report when a non conforming bitstream is found, here the conformance checker is faulty (not parsing correctly the bitstream). Wait for next update, the message will disappear due to a fix in our parser. Ok. Thank you for checking the video I uploaded.
I'm wondering what this means Our parser tries to report when a non conforming bitstream is found, here the conformance checker is faulty (not parsing correctly the bitstream). and what to do about it? Wait for next update, the message will disappear due to a fix in our parser.
First let's see if the error is legitimate, please share a sample file so we can check. Attached is the sample file. Thank you.
Now I got it, it´s working right. Thank you!
Thank you, but I don´t understand this. There was a typo in your report , check the ` character in your report, anyway: But this is NOT working: --Output=Video;%%FileSize%% --Output=Video;%%FileSize/String%% There is no FileSize in Video part. Use the right part of the report, here General. Every parameter which contains the word "FileSize" fails - at me, with any type of video. Because FileSize is not in the Video part of the report and you keep trying to ask a file size for a video stream, which...
My answer now is in the post. I don't get it. I see no file.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> Thank you for answering! And sorry I failed to look at the forum discussion, where you already answered, because I always was waiting for an email respond if next post appears. My answer now is in the post. Regards, Bernie Am 12.04.2025 um 15:01 schrieb Jerome Martinez: <meta http-equiv="content-type" content="text/html; charset=UTF-8"> I'm wondering what this means Our parser failed to parse correctly the stream. and what to do...
Thank you, but I don´t understand this. I make it easier, without the AHK but with a batch script and more concentrated: This is working: @echo off c:\P\MediaInfoCLI\MediaInfo.exe "--Output=Video;%%Format%%" c:\Any_Video_You_Take_for_Your_Test.mp4 > c:\Value.txt type c:\Value.txt pause This works too: @echo off c:\P\MediaInfoCLI\MediaInfo.exe "--Output=Video;%%Duration/String%%" c:\Any_Video_You_Take_for_Your_Test.mp4 > c:\Value.txt type c:\Value.txt pause ...and so on, see above. But this is NOT...
I'm wondering what this means Our parser failed to parse correctly the stream. and what to do about it? First let's see if the error is legitimate, please share a sample file so we can check.
Hi. I used x265 4.1 to create a multi-view .HEVC file then used MP4BOX to convert it to a Quicktime MOV file. The video seems to play correctly but MediaInfo 25.03 displays "Conformance Errors" info I have not seen before (see bottom of display below). I'm wondering what this means and what to do about it? General Complete name : D:\FFmpeg with NVIDIA\A001_03181601_C003_2_VR180_LRF_Full_SBS_MVHEVC.mov Format : MPEG-4 Format profile : QuickTime Codec ID : qt 0000.02 (qt ) File size : 7.48 MiB Duration...
del
Understood. This means that there will be no such setting.
Understood. That is, you don't have to wait.
The program itself does not have such a setting. If you mean the standard Windows window setting "Size", it is reset when the program is restarted.
Planned but no ETA.
set the size of the opening of the program window
rider42
%FileSize`% Typo? %FileSize%`
Sorry, here the title in English: %FileSize% in MediaInfoCLI does not read a value Hello! For my daily use I wrote this AHK-Script, which I always activate with a mouse stroke: #SingleInstance Off SendMode input OrgZwAbl := clipboard clipboard := "" if !WinActive("Total Commander") goto MPC send ^2 clipwait goto weiter MPC: MouseGetPos,,, FenID WinActivate ahk_id %FenID% WinWait ahk_id %FenID% send !fh send {down} send ^c clipwait send {esc} weiter: sleep 300 PfadDatei := Clipboard SplitPath, % PfadDatei,...
Hello! For my daily use I wrote this AHK-Script, which I always activate with a mouse stroke: #SingleInstance Off SendMode input OrgZwAbl := clipboard clipboard := "" if !WinActive("Total Commander") goto MPC send ^2 clipwait goto weiter MPC: MouseGetPos,,, FenID WinActivate ahk_id %FenID% WinWait ahk_id %FenID% send !fh send {down} send ^c clipwait send {esc} weiter: sleep 300 PfadDatei := Clipboard SplitPath, % PfadDatei, Datei, Verz clipboard := "" run %ComSpec% /c c:\P\MediaInfoCLI\MediaInfo.exe...
Here is the line in my template file to report subs: Text;Subtitles...........: %Language/String%\r\n Here is the output: Subtitles...........: English Subtitles...........: Danish Subtitles...........: Danish Subtitles...........: Swedish Subtitles...........: Norwegian I want the output to look like this: Subtitles...........: English Danish, Danish, Swedish, Norwegian
Hello! I appreciate your answer but that doesn't work very well, see screenshot. Why not keep the code for the start menu icon from version (MediaInfo 24.06.0 2024-06-27) which works perfectly? Best regards
Please try this dev snapshot.
Thanks for the new version. I was wondering about this? MediaInfo Version 25.03, 2025-03-21 MediaInfo Version 24.12, 2024-12-10 MediaInfo Version 24.11, 2024-11-07 Transparency icon start menu is lost MediaInfo Version 24.06, 2024-06-27 Transparency icon start menu Best regards
Sorry to ask this very basic question, but I'm stuck on this... With mediainfo CLI text output I get Bits/(Pixel * Frame) as part of the Video data. However, with --output=JSON, this value isn't included. First question: is there some command line option to get BPF included in the JSON ? Next, I am trying to calculate BPF myself, but I'm not sure of the correct method. I think it's bitRate / ( width * height * frameRate), but how do I handle a DVD with several different VOB files, each with a different...
Sorry to ask this very basic question, but I'm stuck on this... With mediainfo CLI text output I get Bits/(Pixel * Frame) as part of the Video data. However, with --output=JSON, this value isn't included. First question: is there some command line option to get BPF included in the JSON ? Next, I am trying to calculate BPF myself, but I'm not sure of the correct method. I think it's bitRate / ( width * height * frameRate), but how do I handle a DVD with several different VOB files, each with a different...
resolved. my fault. sorry missing $ before if :)
As you prefer! Thank you again Jerome!
As you prefer! Thank you again Jerome!
can you delete this thread please? It is a useful crash report. Any problem to keep it?
resolved. Not a reason to crash :).
can you delete this thread please?
resolved. missing $ before if :)
Hi mate! why this script crashes MediaInfo? Count=if(%Count%,%Count%) Status=if(%Status%,%Status%) StreamCount=if(%StreamCount%,%StreamCount%) StreamKind=if(%StreamKind%,%StreamKind%) StreamKind/String=if(%StreamKind/String%,%StreamKind/String%) StreamKindID=if(%StreamKindID%,%StreamKindID%) StreamKindPos=if(%StreamKindPos%,%StreamKindPos%) StreamOrder=if(%StreamOrder%,%StreamOrder%) FirstPacketOrder=if(%FirstPacketOrder%,%FirstPacketOrder%) Inform=if(%Inform%,%Inform%) ID=if(%ID%,%ID%) ID/String=if(%ID/String%,%ID/String%)...
Hi mate! why this script crashes MediaInfo? Count=%Count% Status=%Status% StreamCount=%StreamCount% StreamKind=%StreamKind% StreamKind/String=%StreamKind/String% StreamKindID=%StreamKindID% StreamKindPos=%StreamKindPos% StreamOrder=%StreamOrder% FirstPacketOrder=%FirstPacketOrder% Inform=%Inform% ID=%ID% ID/String=%ID/String% OriginalSourceMedium_ID=%OriginalSourceMedium_ID% OriginalSourceMedium_ID/String=%OriginalSourceMedium_ID/String% UniqueID=%UniqueID% UniqueID/String=%UniqueID/String% MenuID=%MenuID%...
why this script crashes MediaInfo? Crash --> https://sourceforge.net/p/mediainfo/bugs/
Hi mate! why this script crashes MediaInfo? Count = if(%Count%,%Count%) Status = if(%Status%,%Status%) StreamCount = if(%StreamCount%,%StreamCount%) StreamKind = if(%StreamKind%,%StreamKind%) StreamKind/String = if(%StreamKind/String%,%StreamKind/String%) StreamKindID = if(%StreamKindID%,%StreamKindID%) StreamKindPos = if(%StreamKindPos%,%StreamKindPos%) StreamOrder = if(%StreamOrder%,%StreamOrder%) FirstPacketOrder = if(%FirstPacketOrder%,%FirstPacketOrder%) Inform = if(%Inform%,%Inform%) ID = if(%ID%,%ID%)...
Hello. MKVToolNix use 2 new tags : - "Hearing impaired" flag - "Original language" flag Are there any plans on your side to add support for these tags ?
but if I add a wildcard (*.mkv) anywhere in the command, no data is returned. Currently it is not supported, something we need to fix but no ETA.