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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > New and alternative a/v containers
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd June 2015, 17:20   #1401  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by LoRd_MuldeR View Post
Zenitram, I'm getting this compilation error with MediaInfo 0.7.74 release
Already fixed, but not in the latest source release, right.
__________________
Want to know all about your media files? http://mediaarea.net/MediaInfo
Zenitram is offline   Reply With Quote
Old 3rd June 2015, 17:27   #1402  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by SeeMoreDigital View Post
How difficult would it be for you to offer 'full parsing' and 'basic parsing' options to your regular version of MediaInfo?
depends of what you are looking for.
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
Zenitram is offline   Reply With Quote
Old 3rd June 2015, 23:52   #1403  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
That's good to know, and I might start using that in a few specific instances. Also good to hear that mkv parsing is going to be expanded soon.
foxyshadis is offline   Reply With Quote
Old 5th June 2015, 16:56   #1404  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Hello.

No MediaInfo information for this file:

https://www.sendspace.com/file/xp31p6
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 5th June 2015, 17:22   #1405  |  Link
manolito
Registered User
 
manolito's Avatar
 
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
manolito is offline   Reply With Quote
Old 5th June 2015, 22:04   #1406  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by NikosD View Post
No MediaInfo information for this file:
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
if I deactivate the CRC protection.
--> 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
Zenitram is offline   Reply With Quote
Old 5th June 2015, 22:52   #1407  |  Link
NikosD
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
NikosD is offline   Reply With Quote
Old 9th June 2015, 21:22   #1408  |  Link
73ChargerFan
Registered User
 
73ChargerFan's Avatar
 
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.
73ChargerFan is offline   Reply With Quote
Old 9th June 2015, 21:45   #1409  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by 73ChargerFan View Post
I'd like to request a feature, to report the current directory name.
current directory name?
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
Zenitram is offline   Reply With Quote
Old 9th June 2015, 22:10   #1410  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Zenitram View Post
current directory name?
What is the relationship with MediaInfo?
http://www.windows-commandline.com/b...ent-directory/
Also, if the full path to the file you are analyzing is in variable %i (or %1) of your Batch file, you can simply use %~dpi (or %~dp1) to get only the drive+path part.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 9th June 2015 at 22:14.
LoRd_MuldeR is offline   Reply With Quote
Old 9th June 2015, 22:38   #1411  |  Link
73ChargerFan
Registered User
 
73ChargerFan's Avatar
 
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!
73ChargerFan is offline   Reply With Quote
Old 10th June 2015, 07:52   #1412  |  Link
Zenitram
Registered User
 
Join Date: Aug 2002
Location: France, Paris
Posts: 672
Quote:
Originally Posted by 73ChargerFan View Post
%FolderName% gives the complete path, but I want only the current directory.
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
Zenitram is offline   Reply With Quote
Old 10th June 2015, 08:22   #1413  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Quote:
Originally Posted by 73ChargerFan View Post
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!
Been there, done that, batch files are horrible for this. So much cleaner using sed/awk from unixtools, PowerShell, vbscript, or your favorite installed scripting language to pare the full path down to just last folder\file.
foxyshadis is offline   Reply With Quote
Old 11th June 2015, 21:07   #1414  |  Link
stax76
Registered User
 
stax76's Avatar
 
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
stax76 is offline   Reply With Quote
Old 15th June 2015, 20:53   #1415  |  Link
73ChargerFan
Registered User
 
73ChargerFan's Avatar
 
Join Date: Dec 2006
Posts: 523
Quote:
Originally Posted by Zenitram View Post
Please provide an example because I don't understand the difference between %FolderName% and "current directory".
Sorry for the late reply.

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.
73ChargerFan is offline   Reply With Quote
Old 15th June 2015, 22:06   #1416  |  Link
manolito
Registered User
 
manolito's Avatar
 
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
manolito is offline   Reply With Quote
Old 15th June 2015, 22:52   #1417  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by manolito View Post
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.
Should be straight forward to get it with a regular expression.

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.
LoRd_MuldeR is offline   Reply With Quote
Old 15th June 2015, 23:18   #1418  |  Link
ndjamena
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))
It's mostly the '\' at the end of his example that's the problem. '/' is also a valid directory separator and "\\"... unless you know exactly where the filename will be sourced from you'd need to add some error correction into the mix.

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)
will do.

(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.
ndjamena is offline   Reply With Quote
Old 16th June 2015, 03:56   #1419  |  Link
73ChargerFan
Registered User
 
73ChargerFan's Avatar
 
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
73ChargerFan is offline   Reply With Quote
Old 16th June 2015, 06:05   #1420  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,420
Quote:
Originally Posted by manolito View Post
@ 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
(g)awk is more suitable for this than sed, really.

Given "Z:\Media\Kids\Kids 2\DC Batman, Superman\DCAU\Batman Beyond\", it would only take:
Code:
awk -F'\\' '{print $(NF-1)}'
Which prints the second-to-last column (Batman Beyond), determined from the \ character delimiter.
qyot27 is online now   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.