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

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 17th January 2018, 13:52   #5041  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,682
Quote:
Originally Posted by Atak_Snajpera View Post
How to get full info about tracks like in v19
mkvmerge.exe" --identify-verbose "video.mkv"
https://pastebin.com/yUCMqpRC
Use the JSON identification format:

Code:
mkvmerge --identification-format json --identify yourfile.mkv
Also read the announcement again, please.
__________________
Latest MKVToolNix is v26.0.0

If I ever ask you to upload something, please use my FTP server.
Mosu is offline  
Old 17th January 2018, 18:00   #5042  |  Link
Snowknight26
Registered User
 
Join Date: Aug 2007
Posts: 1,391
Quote:
Originally Posted by Mosu View Post
Does this happen with v20 but not v19 for the same file?
Ah boo, it sure does. So not a regression but not the behavior I expected. Oh well. :P
Snowknight26 is offline  
Old 18th January 2018, 15:19   #5043  |  Link
hubblec4
Matroska Dev-Helper
 
Join Date: Apr 2008
Posts: 857
Hi Mosu

Here is a short sample: DVD 25FPS MPEG2

The mkv says for DefautDuration 20ms. All BlockDurations are 40ms.
Is this a bug or why set mkvmerge DefaultDuration to 20ms?
hubblec4 is online now  
Old 18th January 2018, 15:30   #5044  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,682
Possibly a bug, though I'm not sure. I don't want to spend any time on MPEG-2, though.
__________________
Latest MKVToolNix is v26.0.0

If I ever ask you to upload something, please use my FTP server.
Mosu is offline  
Old 18th January 2018, 23:45   #5045  |  Link
mkver
Registered User
 
Join Date: May 2016
Posts: 103
I actually have already reported such behaviour in my very first bug report. Tl;dr: It is an unintended sideeffect of a fix introduced in MKVToolNix 3.3.
mkver is offline  
Old 19th January 2018, 04:12   #5046  |  Link
Inviska
Registered User
 
Join Date: Dec 2016
Posts: 10
Mkvinfo v20 now outputs '\n' as the newline character on Windows, while in previous versions it was "\r\n".

Is that an intentional change that's going to stay, or is it a mistake?
Inviska is offline  
Old 19th January 2018, 08:07   #5047  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,682
That's not an intentional change. Please file an issue over at Gitlab; otherwise chances are I'll forget about it again. Thanks.
__________________
Latest MKVToolNix is v26.0.0

If I ever ask you to upload something, please use my FTP server.
Mosu is offline  
Old 19th January 2018, 22:03   #5048  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,682
I've fixed mkvinfo's behavior. The next release will use \r\n again on Windows.
__________________
Latest MKVToolNix is v26.0.0

If I ever ask you to upload something, please use my FTP server.
Mosu is offline  
Old 21st January 2018, 02:01   #5049  |  Link
Inviska
Registered User
 
Join Date: Dec 2016
Posts: 10
Quote:
Originally Posted by Mosu View Post
I've fixed mkvinfo's behavior. The next release will use \r\n again on Windows.
Thanks for fixing that. One other question; I have an MKVExtract GUI and I'm updating it for the changes in version 17. As far as I can see there's no way to determine from MKVInfo whether a file contains tags or cuesheets. To determine if tags and cuesheets were present I ran mkvextract tags and mkvxtract cuesheets and processed the output.

As of version 17, tags and cuesheets now output to a file, so this won't work. The only way I can see to detect if tags and cuesheets are present would be to output them to a file, read the file and then delete it, which would be a bit messy.

Is there a better way of detecting tags and cuesheets?
Inviska is offline  
Old 21st January 2018, 08:41   #5050  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,682
Of course there is: don't use mkvinfo in the first place but "mkvmerge --identification-format json --identify yourfile.mkv" As I've said numerous times. Using mkvinfo for that is the wrong tool.
__________________
Latest MKVToolNix is v26.0.0

If I ever ask you to upload something, please use my FTP server.
Mosu is offline  
Old 21st January 2018, 18:07   #5051  |  Link
Inviska
Registered User
 
Join Date: Dec 2016
Posts: 10
Quote:
Originally Posted by Mosu View Post
Of course there is: don't use mkvinfo in the first place but "mkvmerge --identification-format json --identify yourfile.mkv" As I've said numerous times. Using mkvinfo for that is the wrong tool.
Thanks a lot, that'll make things a lot easier.

I must admit, I never even looked at the mkvmerge documentation and just assumed mkvinfo was the tool to use. I see now I've done things in completely the wrong way. I'll rework it to use mkvmerge rather than mkvinfo.

Thanks again.
Inviska is offline  
Old 21st January 2018, 19:29   #5052  |  Link
gpower2
Yet another Doom9 member
 
gpower2's Avatar
 
Join Date: Aug 2003
Location: Greece / Thessaloniki
Posts: 183
You can check gMKVExtractGUI source code here:
https://sourceforge.net/p/gmkvextrac...e/gMKVToolNix/

Or you can use the .NET DLL "gMKVToolNix.dll" in your application if you want an easy solution to get the mkv info.

Thanks to Mosu, mkvmerge since MKVToolNix v9.1.0 reports all the necessary info for identifying the mkv tracks!
__________________
Gp2 says: Don't be a fool, just be cool :D !
gpower2 is offline  
Old 22nd January 2018, 16:12   #5053  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 926
Sometimes happens that a MKV is muxed inserting delays between tracks and/or changing fps.

Is there a way to reverse engineer what happened from the resulting MKV?

I have tried Media Info but there is no sign of it.
__________________
@turment on Telegram
tormento is offline  
Old 22nd January 2018, 16:19   #5054  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,054
If anything mkvinfo could help.

But of course you need to know what to look for. Better if you just upload samples, command lines and logs if you suspect mkvtoolnix is doing something wrong. Then we can analyze.

About fps also read:
https://gitlab.com/mbunkus/mkvtoolni...rate-displayed
sneaker_ger is offline  
Old 22nd January 2018, 17:08   #5055  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 926
Quote:
Originally Posted by sneaker_ger View Post
If anything mkvinfo could help.

But of course you need to know what to look for. Better if you just upload samples, command lines and logs if you suspect mkvtoolnix is doing something wrong. Then we can analyze.

About fps also read:
https://gitlab.com/mbunkus/mkvtoolni...rate-displayed
I mean intentionally. For example if you have a 23.976 video and 24 "fps" audio from another language or source.
__________________
@turment on Telegram
tormento is offline  
Old 22nd January 2018, 17:15   #5056  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,054
Changed video fps is not really detectable from the container. Maybe you can find info in the bitstream of original fps (e.g. in H.264 time_scale and num_units_in_ticks - I think MediaInfo even shows this).
Changed audio depends. Sometimes the audio is stretched so that the frames overlap or have gaps. eac3to will detect this if you demux/recode such tracks. If otherwise constant you can compare duration in mkv container with duration of extracted stream.

Very often the mkv container cannot offer you such informations except the duration. Merging video and audio from different sources is more of a trial and error process.

Last edited by sneaker_ger; 22nd January 2018 at 17:18.
sneaker_ger is offline  
Old 22nd January 2018, 19:52   #5057  |  Link
Sm3n
Registered User
 
Join Date: Jul 2012
Posts: 94
Hi,

Today I noticed that I'm no longer able to see any tracks in the mkvextractgui except some chapters or attachement:
https://picload.org/view/ddiapgow/attach.jpg.html
https://picload.org/view/ddiapglr/chapt.jpg.html

Any idea what could be the cause or the reason for this sudden change? Can't say when was the last time I used my "working" extractgui and what change I could make since. Program is uptodate.

thx in advance.
Sm3n is offline  
Old 22nd January 2018, 20:07   #5058  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,054
MKVToolNix 20.0.0 changed output of mkvinfo (among other things). It was already discussed a few posts earlier and also in other threads.

Try gMKVExtractGUI. It stuck to the recommendations of the MKVToolNix author and thus didn't break with 20.0.0.
sneaker_ger is offline  
Old 22nd January 2018, 20:58   #5059  |  Link
Sm3n
Registered User
 
Join Date: Jul 2012
Posts: 94
I have to admit I didn't think to look if it was discussed. Sorry about that. thx so much.
Sm3n is offline  
Old 22nd January 2018, 22:59   #5060  |  Link
Inviska
Registered User
 
Join Date: Dec 2016
Posts: 10
Quote:
Originally Posted by Mosu View Post
Of course there is: don't use mkvinfo in the first place but "mkvmerge --identification-format json --identify yourfile.mkv
Sorry to keep bothering you, but am I right in saying that command doesn't show if tags and cuesheets are present in the file?

Muxing the same file with and without tags shows the same output, so there's nothing to indicate the presence of the tags, even thought they are definitely there and can be extracted. Likewise with a cuesheet, I can't see anything that indicates its presence, even though it is there and can be extracted.
Inviska is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 22:41.


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