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

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th March 2020, 16:20   #661  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,868
Quote:
Originally Posted by tormento View Post
Ask me anything about hardware but I am a noob about programming software.
I'm sure you weren't born with your knowledge about hardware. So how did you acquire it? You invested time to learn about it.

Same with automating/scripting stuff. If you want to be efficient, use automation; if you don't know how, invest the time & learn.

If you aren't willing to invest the time, then I can only understand that to mean that the topic isn't that important to you.
__________________
Latest MKVToolNix is v46.0.0

If I ever ask you to upload something, please use my file server.
Mosu is offline   Reply With Quote
Old 19th March 2020, 17:53   #662  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 1,424
Quote:
Originally Posted by Mosu View Post
I'm sure you weren't born with your knowledge about hardware. So how did you acquire it? You invested time to learn about it.
I appreciate your wise reply. I can read you are proud of the lines you crossed.

In this spirit, I gave you a comment to improve your great product: my hint was about a feature many could find useful.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 20th March 2020, 08:51   #663  |  Link
Liisachan
李姗倩 Lǐ Shān Qiān
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,224
Quote:
Originally Posted by Mosu View Post
Nice catch, thanks. I'll have to replace all characters Windows doesn't allow in file names before copying the title to the file name.
The problem may not be just that some characters are illegal in the Windows file system. In my tests, GUI doesn't allow you to create foo.mkv from foo.264 at all, when the File title is non-empty and not "foo", even if you explicitly type "foo.mkv" in the File destination editbox. In other words, on GUI, when --title is specified, you can't select a Destination that happens to be identical to the initial default Destination.

Example:
- When you create a new job on GUI and add a source file "D:\CD Image.flac", the Destination file "D:\CD Image.mka" is auto-selected. Type something in the File title editbox; the Destination file remains the same. In this state, you'd think "CD Image.mka" will be created when "Start multiplexing" is clicked...


- What will actually happen is different (already reported).

- Not only that, even if you manually type or select the Destination "D:\CD Image.mka" (suppose you do want to use that file name) after you type something in File title, GUI ignores it and still tries to create a Matroska file named after the File title. This behavior seems case-sensitive: GUI allows you to write e.g. "D:\CD Image.Mka" (capital M) from "D:\CD Image.flac" with an arbitrary --title.
Liisachan is offline   Reply With Quote
Old 20th March 2020, 15:54   #664  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,868
The GUI tries to determine whether the user has changed the destination file name manually and remembers the name it set automatically. If the current name is different than the automatically determined one, the GUI will stop auto-generating the file name. Sure, there might still be bugs in that process (because it's a shitty guesswork).

Nevertheless, the title issues should be fixed. The latest continuous builds contain the fixes.
__________________
Latest MKVToolNix is v46.0.0

If I ever ask you to upload something, please use my file server.
Mosu is offline   Reply With Quote
Old 21st March 2020, 01:58   #665  |  Link
Liisachan
李姗倩 Lǐ Shān Qiān
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,224
Thanks! Tested 44.0.0.14 and it's working fine

As for the second problem, I've found an easy workaround for Windows. If you want to do e.g. mkvmerge -o "D:\path to\foo.mkv" "D:\path to\foo.264" --title bar using GUI and doesn't want to get bar.mkv, you can just change one character - lowercase the drive letter - in the Destination editbox: "d:\path to\foo.mkv" instead of "D:\path to\foo.mkv".

Of course, one can also use Multiplexer | Show command line, and just paste it to cmd.exe or make a batch file (which is most convenient for me).

One cosmetic observation: the command line generated by GUI for cmd.exe uses forward slashes to write a path to the folder where mkvmerge.exe exists. E.g. if you have mkvmerge.exe & mkvtoolnix-gui.exe in
D:\folder\mkvtoolnix
then, a command line generated by GUI looks like:
D:/folder/mkvtoolnix\mkvmerge.exe --ui-language en --output ...
This seems harmless, though, as cmd.exe now accepts a forward slash as if it were a backslash.
Liisachan is offline   Reply With Quote
Old 21st March 2020, 19:26   #666  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,868
Quote:
Originally Posted by Liisachan View Post
Thanks! Tested 44.0.0.14 and it's working fine
Great! Thanks for the confirmation.

Quote:
Originally Posted by Liisachan View Post
As for the second problem, I've found an easy workaround for Windows. If you want to do e.g. mkvmerge -o "D:\path to\foo.mkv" "D:\path to\foo.264" --title bar using GUI and doesn't want to get bar.mkv, you can just change one character - lowercase the drive letter - in the Destination editbox: "d:\path to\foo.mkv" instead of "D:\path to\foo.mkv".
Yeah, that's definitely a useful workaround.

Quote:
Originally Posted by Liisachan View Post
One cosmetic observation: the command line generated by GUI for cmd.exe uses forward slashes to write a path to the folder where mkvmerge.exe exists.
Nice, you found one last place where I forgot to use the "show platform-dependent slashes" function. I'll fix that. Yes, it is completely cosmetic as Windows supports both backward and forward slashes as path separators (both in cmd.exe and all of its "open a file" functions).
__________________
Latest MKVToolNix is v46.0.0

If I ever ask you to upload something, please use my file server.
Mosu is offline   Reply With Quote
Old 28th March 2020, 09:34   #667  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 1,424
I am encoding lot of material with local dialects and I can't find them in ISO 639-2. I saw they are present in ISO 639-3, could you please add it as optional in the next nightly or major release?
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 28th March 2020, 09:45   #668  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,921
Quote:
Originally Posted by tormento View Post
I am encoding lot of material with local dialects and I can't find them in ISO 639-2. I saw they are present in ISO 639-3, could you please add it as optional in the next nightly or major release?
Strictly speaking, the Matroska specification says that codes should be ISO 639-2, if you use others you are likely to confuse reading applications

https://www.matroska.org/technical/s...html#languages
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 28th March 2020, 09:56   #669  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 1,424
Quote:
Originally Posted by nevcairiel View Post
Strictly speaking, the Matroska specification says that codes should be ISO 639-2, if you use others you are likely to confuse reading applications
Uh, I see.

Anyway, I don't remember where, I saw that current revision of specification is v3 and v4 is work in progress. Perhaps it refers to something else.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 28th March 2020, 17:37   #670  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,868
The current Matroska specs contain new elements for specifying languages following the IETF BCP 47 specification (see here for the full spec and here for Wikipedia's summary). That spec is pretty much complete and can express any type of language/territory relationship.

Unfortunately no tool supports those elements yet, and yes, that includes MKVToolNix — because handling those specs is rather complex. Just like real life.

So no, I will never add support for ISO 639-3 as I cannot simply use arbitrary values that aren't part of the spec — and the spec already includes a superior mechanism in IETF BCP 47 language elements. I plan on supporting them one day, but please don't ask me for an ETA.
__________________
Latest MKVToolNix is v46.0.0

If I ever ask you to upload something, please use my file server.
Mosu is offline   Reply With Quote
Old 28th March 2020, 18:56   #671  |  Link
Liisachan
李姗倩 Lǐ Shān Qiān
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,224
Quote:
Originally Posted by Mosu View Post
Nice, you found one last place where I forgot to use the "show platform-dependent slashes" function. I'll fix that. Yes, it is completely cosmetic as Windows supports both backward and forward slashes as path separators (both in cmd.exe and all of its "open a file" functions).
Still, it's Windows after all; backslashes are safer. For example, if you have mkvmerge in a folder "cd" something like this could happen.
Code:
R:\>cd\mkvmerge.exe --version
mkvmerge v44.0.0 ('Domino') 32-bit

R:\>cd/mkvmerge.exe --version
The system cannot find the path specified.
Also, though irrelevant to the current version of mkvmerge, XP is less tolerant of foward slashes.
Code:
C:\>mkvtoolnix\mkvmerge.exe --version
mkvmerge v20.0.0 ('I Am The Sun') 32-bit

C:\>mkvtoolnix/mkvmerge.exe --version
'mkvtoolnix' is not recognized as an internal or external command,
operable program or batch file.

Quote:
Originally Posted by tormento View Post
I am encoding lot of material with local dialects and I can't find them in ISO 639-2. I saw they are present in ISO 639-3, could you please add it as optional in the next nightly or major release?
If the language name is uncoded in ISO 639-2, perhaps something like this is the best one could do currently:
mkvmerge -o foo.mkv foo.264 --language 0:mis --track-name 0:"Venetian [vec]" foo.ogg

mis = “Uncoded languages” is not supported by GUI, not in the Available list, but mkvmerge does accept it. MPC shows whatever you type as track-name e.g. "Venetian".

It would be ideal if not only ISO 639-3 but the language subtag registry were supported so that e.g. simplified Chinese vs. traditional Chinese subs, or Mandarin vs. Cantonese dubs could be consistently tagged and auto-selected by players. Although the Matroska specs says one can (at least) use suffixes like -cn, -tw, -hk, they are not supported in reality; even if supported, they are not necessarily convenient (e.g. when talking about writing systems, not about countries).

Note: even if the language code is not in the GUI listbox by default, mkvmerge accepts any language codes in mkvmerge --list-languages > lang.txt.
*Example 1:
mkvmerge -o foo.mkv foo.264 --language 0:nap foo.ogg
MPC-HC & MPC-BE both show "Napolitan" for this track.

*Example2:
mkvmerge -o foo.mkv foo.264 --language 0:nap foo.ogg --language 0:mul --track-name 0:"Japanese karaoke with English translation" foo.ass
For this subtitle track, MPC-BE shows "Multilingual, Japanese karaoke with English translation".
Liisachan is offline   Reply With Quote
Old 28th March 2020, 19:29   #672  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 1,424
MKVToolNix v44.0.0 released

Quote:
Originally Posted by Mosu View Post
The current Matroska specs contain new elements
Well, thanks! You were really wise. Any ETA will be welcome, when any.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 29th March 2020, 08:58   #673  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,868
Quote:
Originally Posted by Liisachan View Post
mis = “Uncoded languages” is not supported by GUI, not in the Available list, but mkvmerge does accept it.
This is incorrect. "Uncoded languages" is very much available in the GUI.

In fact both the GUI and mkvmerge use the same list of languages for displaying/checking their validity. All entries that mkvmerge accepts are available in the GUI (preferences → "GUI" → "Often used selections" → "Languages").
__________________
Latest MKVToolNix is v46.0.0

If I ever ask you to upload something, please use my file server.
Mosu is offline   Reply With Quote
Old 29th March 2020, 16:51   #674  |  Link
Liisachan
李姗倩 Lǐ Shān Qiān
 
Liisachan's Avatar
 
Join Date: Nov 2002
Posts: 1,224
@Mosu: you're right. Sorry, was looking for "mis" under M, not U. That's why I couldn't find it.
Liisachan is offline   Reply With Quote
Old 29th March 2020, 19:38   #675  |  Link
stax76
Registered User
 
Join Date: Jun 2002
Posts: 6,291
@Mosu

Re-muxing a video that has a FLAC audio track and using split mode by parts don't seem to work, maybe you can take a look or maybe somebody else can verify it.

Code:
G: Matroska, 28.9 MiB, 2 min 49 s, 1 430 kb/s

V: HEVC, Main 10@L3.1@Main, 1280x720, 23.976 FPS, 2 088 kb/s

A: German, FLAC, 1 291 kb/s, 2ch, 44.1 kHz


General

CompleteName                     : C:\Users\frank\Desktop\aaa.mkv
Format/String                    : Matroska
Format_Version                   : Version 4
FileSize/String                  : 28.9 MiB
Duration/String                  : 2 min 49 s
OverallBitRate_Mode/String       : Variable
OverallBitRate/String            : 1 430 kb/s
Encoded_Date                     : UTC 2020-03-29 18:20:06
Encoded_Application/String       : mkvmerge v44.0.0 ('Domino') 64-bit
Encoded_Library/String           : libebml v1.3.10 + libmatroska v1.5.2

Video

ID/String                        : 1
Format/String                    : HEVC
Format/Info                      : High Efficiency Video Coding
Format_Profile                   : Main 10@L3.1@Main
CodecID                          : V_MPEGH/ISO/HEVC
Duration/String                  : 11 s 220 ms
BitRate/String                   : 2 088 kb/s
Width/String                     : 1 280 pixels
Height/String                    : 720 pixels
DisplayAspectRatio/String        : 16:9
FrameRate_Mode/String            : Constant
FrameRate/String                 : 23.976 (23976/1000) FPS
FrameRate_Original/String        : 23.976 (24000/1001) FPS
ColorSpace                       : YUV
ChromaSubsampling/String         : 4:2:0
BitDepth/String                  : 10 bits
Bits-(Pixel*Frame)               : 0.095
StreamSize/String                : 2.79 MiB (10%)
Encoded_Library/String           : x265 3.3+10-g08d895bb6:[Windows][GCC 9.3.0][64 bit] 10bit
Encoded_Library_Settings         : removed, was too long
Default/String                   : Yes
Forced/String                    : No
colour_range                     : Limited
colour_primaries                 : BT.709
transfer_characteristics         : BT.709
matrix_coefficients              : BT.709

Audio

ID/String                        : 2
Format/String                    : FLAC
Format/Info                      : Free Lossless Audio Codec
CodecID                          : A_FLAC
Duration/String                  : 2 min 49 s
BitRate_Mode/String              : Variable
BitRate/String                   : 1 291 kb/s
Channel(s)/String                : 2 channels
ChannelLayout                    : L R
SamplingRate/String              : 44.1 kHz
FrameRate/String                 : 9.571 FPS (4608 SPF)
BitDepth/String                  : 24 bits
Compression_Mode/String          : Lossless
StreamSize/String                : 26.1 MiB (90%)
Encoded_Library/String           : Lavf58.38.101
Language/String                  : German
Default/String                   : No
Forced/String                    : No
FLAC file was created with ffmpeg:

D:\Projekte\VB\staxrip\bin\Apps\Encoders\ffmpeg\ffmpeg.exe -i "D:\Samples\aaa_temp\aaa ID1.m4a" -af volume=1.7dB -y -hide_banner -ac 2 "D:\Samples\aaa_temp\aaa ID1.flac"

edit:

Happens also with FLAC created with eac3to.

Last edited by stax76; 29th March 2020 at 19:50.
stax76 is offline   Reply With Quote
Old 29th March 2020, 20:43   #676  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,541
I cannot reproduce. Does splitting work as expected if you disable the video track?
sneaker_ger is offline   Reply With Quote
Old 29th March 2020, 21:37   #677  |  Link
stax76
Registered User
 
Join Date: Jun 2002
Posts: 6,291
Thanks for testing, and if you demux the result with mkvextract, has the flac file the correct length in mpv?

Quote:
I cannot reproduce. Does splitting work as expected if you disable the video track?
Yes
stax76 is offline   Reply With Quote
Old 29th March 2020, 21:44   #678  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 3,868
Splitting & appending FLAC isn't supported by mkvmerge due to the very unfortunate way FLAC is stored in Matroska. And yes, I was the one who invented how it is stored. I obviously didn't grasp that what I was doing was problematic.
__________________
Latest MKVToolNix is v46.0.0

If I ever ask you to upload something, please use my file server.
Mosu is offline   Reply With Quote
Old 29th March 2020, 22:49   #679  |  Link
stax76
Registered User
 
Join Date: Jun 2002
Posts: 6,291
Thanks, next staxrip build has a verification and a suggestion which settings can be used instead.
stax76 is offline   Reply With Quote
Old 30th March 2020, 07:22   #680  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,541
Quote:
Originally Posted by stax76 View Post
Thanks for testing, and if you demux the result with mkvextract, has the flac file the correct length in mpv?
No. (Of course) Mosu is right and while it seemingly works if I play the FLAC file with mpv or MPC-HC the displayed duration is the one from before the splitting (even though the actual data from the cut-out parts is missing). He wrote some more info about it some time ago: https://gitlab.com/mbunkus/mkvtoolnix/-/issues/953

So re-encoding is the proper way to deal with this.
sneaker_ger is offline   Reply With Quote
Reply

Tags
matroska

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 17:59.


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