Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
3rd June 2015, 17:20 | #1401 | Link | |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Quote:
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
|
3rd June 2015, 17:27 | #1402 | Link | |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Quote:
1/ just add the option in the GUI: a couple of hours. Fact is that I do not want (at least for free) to update the current GUI because I plan to trash it (yes, I say that for years...) and I am not myself interested in letting people easily complain about "ho this is not exact value if I set full parsing, despite the fact I set full parsing so you should be able to provide the right value, MI is bad", see 2/. 2/ having exact value for lot of things (e.g. you want the exact byte count for MKV): this is not implemented everywhere, I have no idea about what works and whats does not work, I need a complete test of each item, lot of test several days/months. Currently I implement full parsing improvements item per item, when a user really (= he is ready to pay for it) need a feature (and in that case, he know how to activate full parsing for having his feature). You can already test the current behavior with CLI or DLL (" -- ParseSpeed=0" for fast parsing and " -- ParseSpeed=1" for full parsing). There is absolutely no promise that MeidaInfo will do what you expect it does.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
|
5th June 2015, 16:56 | #1404 | Link |
Registered User
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
|
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1) HEVC decoding benchmarks H.264 DXVA Benchmarks for all |
5th June 2015, 17:22 | #1405 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
|
The file is broken somehow...
TSDoctor complains about a missing PMT and refuses to repair the file. Remuxing to MKV (MKVToolNix) or remuxing to another m2ts (tsMuxeR) fixes it. Cheers manolito |
5th June 2015, 22:04 | #1406 | Link |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Code:
General ID : 0 (0x0) Complete name : C:\Users\Jerome\Downloads\hd_thx_amazing_life_lossless.m2ts Format : BDAV Format/Info : Blu-ray Video File size : 193 MiB Duration : 44s 830ms Overall bit rate mode : Variable Overall bit rate : 36.2 Mbps Maximum Overall bit rate : 48.0 Mbps Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.1 Format settings, CABAC : Yes Format settings, ReFrames : 2 frames Codec ID : 27 Duration : 44s 44ms Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Audio ID : 4352 (0x1100) Menu ID : 1 (0x1) Format : DTS Format/Info : Digital Theater Systems Format profile : MA / Core Mode : 16 Format settings, Endianness : Big Muxing mode : Stream extension Codec ID : 134 Duration : 44s 43ms Bit rate mode : Variable Bit rate : Unknown / 1 509 Kbps Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 KHz Bit depth : 24 bits Compression mode : Lossless / Lossy Delay relative to video : -7ms --> bug report to the owner of the tool you used for muxing, PAT CRC is good but PMT CRC is wrong.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
5th June 2015, 22:52 | #1407 | Link |
Registered User
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
|
Manolito, Zenitram thank you both for your replies.
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1) HEVC decoding benchmarks H.264 DXVA Benchmarks for all |
9th June 2015, 21:22 | #1408 | Link |
Registered User
Join Date: Dec 2006
Posts: 523
|
I use the command line interface to prepare MI reports on my files, using a DOS batch file ( )
I'd like to request a feature, to report the current directory name. I use the directory name as the reader friendly primary identifier, not the file name, and merging that information from the DOS batch file is extremely difficult. Thank you for all your hard work. |
9th June 2015, 21:45 | #1409 | Link | |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Quote:
What is the relationship with MediaInfo? http://www.windows-commandline.com/b...ent-directory/ If you want the directory name of the file you are analyzing, you can use the full output (" -f") or put %FolderName% in hte "General" section of a template
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
|
9th June 2015, 22:10 | #1410 | Link | |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Quote:
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 9th June 2015 at 22:14. |
|
9th June 2015, 22:38 | #1411 | Link |
Registered User
Join Date: Dec 2006
Posts: 523
|
My goal is a create a CSV to import into Excel, where each line is the folder name (user readable) and the major stats. MediaInfo can do all this except the folder name.
%FolderName% gives the complete path, but I want only the current directory. Currently I use %~dpi (or %~dp1) but to get it into the same text line I must use a placeholder token in the MediaInfo format string, then do a text substitution by separate program. Problem is special characters in the path mangle and foul up batch file variable substitution and delayed expansion. Basically I've got most of a day into a hack that fails silently 2% of the time. This would be so much easier in Bash... I know this is a special use case. Thank you for the assistance and suggestions! |
10th June 2015, 07:52 | #1412 | Link |
Registered User
Join Date: Aug 2002
Location: France, Paris
Posts: 672
|
Please provide an example because I don't understand the difference between %FolderName% and "current directory".
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo |
10th June 2015, 08:22 | #1413 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
|
|
11th June 2015, 21:07 | #1414 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
I wrote a small guide regarding MediaInfo and StaxRip in case somebody is interested:
http://forum.doom9.org/showthread.ph...81#post1726081 |
15th June 2015, 20:53 | #1415 | Link | |
Registered User
Join Date: Dec 2006
Posts: 523
|
Quote:
Example (1) %FolderName% gives complete path: "Z:\Media\Kids\Kids 2\DC Batman, Superman\DCAU\Batman Beyond\" Example (2) Current Directory: "Batman Beyond" is the show title, and the directory has 50 +/- episodes named by episode number & episode title, but not including the show name. |
|
15th June 2015, 22:06 | #1416 | Link |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
|
@ foxyshadis
I am curious how using sed/awk from unixtools, PowerShell, vbscript or any other scripting language would make it any easier to extract the string "Batman Beyond" from the full path variable compared to using a simple batch file. Yes, I would need a loop to determine the positions of the "\" characters, but I could write the batch file in 2 minutes. Please give us an example how you would do it with any of the tools you suggested. I do have a little experience with SED for Windows, it is a pain to learn the syntax, and the result is "Write Only", without comments it is unreadable. And the learning curve for PowerShell or VBScript is also steep for someone who grew up with Turbo Pascal, MASM and DOS Batch language. Cheers manolito |
15th June 2015, 22:52 | #1417 | Link | |
Software Developer
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
|
Quote:
This gives you the last (rightmost) directory part within a full path, assuming there's a trailing backslash: \\([^\\]+)\\$ If the path may end with file name, you can use: \\([^\\]+)\\[^\\]*$ Now please don't ask me how to translate that to proper SED syntax
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 15th June 2015 at 23:01. |
|
15th June 2015, 23:18 | #1418 | Link |
Registered User
Join Date: Sep 2012
Posts: 366
|
Powershell:
Code:
$TargetPath="Z:\Media\Kids\Kids 2\DC Batman, Superman\DCAU\Batman Beyond\Boo.txt" [System.IO.Path]::GetFileName([System.IO.Path]::GetDirectoryName($TargetPath)) Of course as far as I'm aware MediaInfo doesn't add the extra slash to the path name so Code:
$TargetPath="Z:\Media\Kids\Kids 2\DC Batman, Superman\DCAU\Batman Beyond" [System.IO.Path]::GetFileName($TargetPath) (Powershell is a PITA, I prefer to use batch when I can get away with it.) -Edit- Code:
$TargetPath="Z:\Media\Kids\Kids 2\DC Batman, Superman\DCAU\Batman Beyond" [System.IO.Path]::GetFileName($TargetPath).Trim('`"').TrimEnd("/\") Last edited by ndjamena; 15th June 2015 at 23:45. |
16th June 2015, 03:56 | #1419 | Link |
Registered User
Join Date: Dec 2006
Posts: 523
|
Sorry this is so off topic, I just think it's a good idea. But this will be my last post on this.
Even with the above code, I still have to capture the 1 line output of MediaInfo into a temp file, do a text substitution (which isn't free on Windows), then append that temp file onto the text file, which is another inner loop, and ... This is what I get from my code, which loads directly into Excel. First field is the Current Directory, next is file name, then size, file type, classification of video (done manually), video summary, main audio stream info, then finally the directory all the movie directories are in (this last matches the name of the backup hard drive the file is copied to.) Code:
Z:\Kids Movies\Kids 1 Movies Thu 01/29/2015 21:06:51.52 Bedtime Stories (2008),Bedtime Stories.mkv,18.9 GiB,Matroska,1080p,AVC High@L4.1,DTS-HD / 1509 Kbps 6 Ch ,Kids 1 Movies Bolt (2008),Bolt.mkv,18.8 GiB,Matroska,1080p,AVC High@L4.1,DTS-HD / 1509 Kbps 6 Ch ,Kids 1 Movies Cloak & Dagger (1984),Cloak & Dagger.iso,4.19 GiB,DVD ISO,Kids 1 Movies Coraline (2009),Coraline.mkv,14.4 GiB,Matroska,1080p,VC-1 Advanced@L3,DTS-HD / 1509 Kbps 6 Ch AC3 @ 192 Kbps 2 Ch ,Kids 1 Movies Doctor Dolittle (1967),Doctor Dolittle.mkv,6.50 GiB,Matroska,720x480,MPEG 2,5381 Kbps,AC3 @ 448 Kbps 4 Ch AC3 @ 192 Kbps 2 Ch ,Kids 1 Movies How to Train Your Dragon (2010),Dragon.ts,17.3 GiB,MPEG-TS,1080p,AVC High@L4.1,23.4 Mbps,AC3 @ 640 Kbps 6 Ch ,Kids 1 Movies |
16th June 2015, 06:05 | #1420 | Link | |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,420
|
Quote:
Given "Z:\Media\Kids\Kids 2\DC Batman, Superman\DCAU\Batman Beyond\", it would only take: Code:
awk -F'\\' '{print $(NF-1)}' |
|
|
|