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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

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

Closed Thread
 
Thread Tools Search this Thread
Old 19th September 2013, 13:19   #2381  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Quote:
Originally Posted by DarrellS View Post
Maybe by then, someone will have implemented stdin input into the Multicoreware x265 encoder which seems to be a lot faster than the DivX encoder and has more options. The Rovi build does mux the DivX hevc file after it's created and creates an insync file if given the frame rate. It's just a lot easier using your builds to mux with with since they accept "--default-duration 0:%(fpsnum)/%(fpsden)fps" which saves me from either having to create separate encoder sets for each frame rate or muxing after the audio and video files have been created. The other issue is that the DivX files will only play in the DivX player and not in MPC-HC which is my player of choice.
who cares ? You're off-topic right now...
Kurtnoise is offline  
Old 24th September 2013, 14:50   #2382  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,413
hi mosu

i have a problem with appending files.
i have a movie(h264 untouched), i want cut a short videosequence by timecodes getting from the chapters (chapterfile).

first cut 00:01:30.000
second cut 00:02:50.000

now i have three videoparts. i load the first part in mmg and append the third part. muxing done with 0 error.

the videofile plays fine till the first cut (00:01:30.000), then stuttering the video for 2 or 3 seconds. and only madvr recalibrate the video after this short time. (EVR, vmr, haali renderer sucks).
when i jump back to 00:01:30.000 (in MPC-HC with chapter prev) plays the video fine, no stuttering. but when i go to previous timestamp as 00:01:30.000, the video stuttering agian.

the three video parts play seperatly fine.

Last edited by hubblec4; 24th September 2013 at 16:43.
hubblec4 is offline  
Old 24th September 2013, 15:12   #2383  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
It was originally a complete, single file? Was it encoded with OpenGOP?
sneaker_ger is offline  
Old 24th September 2013, 15:20   #2384  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,413
Quote:
Originally Posted by sneaker_ger View Post
It was originally a complete, single file? Was it encoded with OpenGOP?
it is a single file, yes. and it came from a bluray.

OpenGOP, i dont know. mediainfo:
Allgemein
UniqueID/String : 142136116527023072389979487536299840814 (0x6AEE6B98C50B77314A39226D8E07152E)
CompleteName : ***video.mkv
Format : Matroska
Format_Version : Version 1
FileSize/String : 5,38 GiB
Duration/String : 42min
OverallBitRate_Mode/String : variabel
OverallBitRate/String : 18,0 Mbps
Encoded_Date : UTC 2013-09-22 16:23:23
Encoded_Application : eac3to
Encoded_Library/String : Haali DirectShow Matroska Muxer 1.13.138.14

Video
ID/String : 1
Format : AVC
Format/Info : Advanced Video Codec
Format_Profile : High@L4.1
Format_Settings_CABAC/String : Ja
Format_Settings_RefFrames/String : 4 frames
MuxingMode : Container profile=Unknown@0.0
CodecID : V_MPEG4/ISO/AVC
Duration/String : 42min
BitRate_Mode/String : variabel
BitRate/String : 17,6 Mbps
BitRate_Maximum/String : 38,0 Mbps
Width/String : 1 920 Pixel
Height/String : 1 080 Pixel
DisplayAspectRatio/String : 16:9
FrameRate_Mode/String : konstant
FrameRate/String : 23,976 FPS
ColorSpace : YUV
ChromaSubsampling : 4:2:0
BitDepth/String : 8 bits
ScanType/String : progressiv
Bits-(Pixel*Frame) : 0.354
StreamSize/String : 5,27 GiB (98%)
Default/String : Nein
Forced/String : Nein
colour_primaries : BT.709
transfer_characteristics : BT.709
matrix_coefficients : BT.709
hubblec4 is offline  
Old 24th September 2013, 16:14   #2385  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
MediaInfo does not offer detection for open gop AFAIK (aside from reading x264 custom sei). Can you upload a short (~1 minute) sample, perhaps your "first cut"?
sneaker_ger is offline  
Old 24th September 2013, 16:32   #2386  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,413
Quote:
Originally Posted by sneaker_ger View Post
MediaInfo does not offer detection for open gop AFAIK (aside from reading x264 custom sei). Can you upload a short (~1 minute) sample, perhaps your "first cut"?
ok.

video.mkv
hubblec4 is offline  
Old 24th September 2013, 17:14   #2387  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
It seems to indeed be using open gop which cannot be cut reliably using mkvtoolnix.
sneaker_ger is offline  
Old 24th September 2013, 17:26   #2388  |  Link
hubblec4
Matroska find' ich toll
 
Join Date: Apr 2008
Posts: 1,413
mmh other episodes are work fine.

is this a problem to the entire file? or can i cut on other timecodes?
hubblec4 is offline  
Old 24th September 2013, 18:08   #2389  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
You should be able to cut on a few specific timecodes, namely I frames that are directly preceded by a P frame. You will mostly find these on scene changes.
This AviSynth script will show you the type of a given frame:
Code:
ffvideosource("split-001--1-.mkv")
ffinfo()
sneaker_ger is offline  
Old 26th September 2013, 11:24   #2390  |  Link
Chetwood
Registered User
 
Chetwood's Avatar
 
Join Date: Nov 2001
Posts: 1,105
@sneaker_ger

I tried to adapt your batch to muxing a folder full of MKVs and Vobsubs but failed. Can you give it another try?

1 idx/sub with 2 languages per MKV:
"D:\Programme\MKVtoolnix\mkvmerge.exe" -o "e:\\ok\\Test 1x05.mkv" "--priority" "lowest" "--language" "0:jpn" "--default-track" "0:yes" "--forced-track" "0:no" "--display-dimensions" "0:1280x720" "--language" "1:ger" "--track-name" "1:de DTS" "--default-track" "1:yes" "--forced-track" "1:no" "--language" "2:eng" "--track-name" "2:en AC3" "--default-track" "2:no" "--forced-track" "2:no" "-a" "1,2" "-d" "0" "-S" "-T" "--no-global-tags" "--no-chapters" "(" "D:\\remux\\Test 1x05.mkv" ")" "--language" "0:ger" "--track-name" "0:de" "--default-track" "0:no" "--forced-track" "0:no" "--language" "1:eng" "--track-name" "1:en" "--default-track" "1:no" "--forced-track" "1:no" "-s" "0,1" "-D" "-A" "-T" "--no-global-tags" "--no-chapters" "(" "D:\\remux\\Test 1x05.idx" ")" "--track-order" "0:0,0:1,0:2,1:0,1:1" "--engage" "no_cue_duration" "--engage" "no_cue_relative_position"

2 idx/sub with one language each per mkv:
"D:\Programme\MKVtoolnix\mkvmerge.exe" -o "e:\\ok\\Test 1x05.mkv" "--priority" "lowest" "--language" "0:jpn" "--default-track" "0:yes" "--forced-track" "0:no" "--display-dimensions" "0:1280x720" "--language" "1:ger" "--track-name" "1:de DTS" "--default-track" "1:yes" "--forced-track" "1:no" "--language" "2:eng" "--track-name" "2:en AC3" "--default-track" "2:no" "--forced-track" "2:no" "-a" "1,2" "-d" "0" "-S" "-T" "--no-global-tags" "--no-chapters" "(" "D:\\remux\\Test 1x05.mkv" ")" "--language" "0:ger" "--track-name" "0:de" "--default-track" "0:no" "--forced-track" "0:no" "-s" "0" "-D" "-A" "-T" "--no-global-tags" "--no-chapters" "(" "D:\\remux\\Test 1x05-de.idx" ")" "--language" "0:eng" "--track-name" "0:en" "--default-track" "0:no" "--forced-track" "0:no" "-s" "0" "-D" "-A" "-T" "--no-global-tags" "--no-chapters" "(" "D:\\remux\\Test 1x05-en.idx" ")" "--track-order" "0:0,0:1,0:2,1:0,2:0" "--engage" "no_cue_duration" "--engage" "no_cue_relative_position"

I'm pretty sure I'm not the only one to benefit from this. Thx.
__________________

MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink
: DVD Shrink batch processing
Offizieller Übersetzer von DVD Shrink deutsch
Chetwood is offline  
Old 26th September 2013, 17:23   #2391  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
I don't really see how you adapted my script. You simply copied the command-line from mkvmerge GUI which is not bad per se but is hard for others to take a look at. It's even harder if you just say "failed" instead of posting the error message.

As I told you in my last PM:
1. all parameters of an input file come directly in front on the input file
2. mkvmerge starts counting at 0. TrackIDs are per input file.
http://www.bunkus.org/videotools/mkv.../mkvmerge.html

You are trying to use TrackID 1 with an idx file but unless the idx file has two subtitle tracks (uncommon but possible) you should only be using TrackID 0.

/edit:
corrected idx tracks being able to hold more than 1 subtitle track as per Mosu's correction

Last edited by sneaker_ger; 26th September 2013 at 21:48.
sneaker_ger is offline  
Old 26th September 2013, 21:28   #2392  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 4,352
Minor nitpick : VobSub files can contain arbitrary number of tracks. I have plenty of those here. Otherwise you're correct, of course.
__________________
Latest MKVToolNix is v101.0

If I ever ask you to upload something, please use my file server.
Mosu is offline  
Old 26th September 2013, 21:30   #2393  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
I feared somebody might come and say that. But does mkvmerge read more than one track? I never actually tried.
sneaker_ger is offline  
Old 26th September 2013, 21:31   #2394  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 4,352
Sure it does :-) all of them, unless you tell it not to. Like with all file types it supports.
__________________
Latest MKVToolNix is v101.0

If I ever ask you to upload something, please use my file server.
Mosu is offline  
Old 27th September 2013, 08:25   #2395  |  Link
Chetwood
Registered User
 
Chetwood's Avatar
 
Join Date: Nov 2001
Posts: 1,105
Quote:
Originally Posted by sneaker_ger View Post
I don't really see how you adapted my script.
I haven't since I failed miserably at adapting it. Thanks for rubbing it in
__________________

MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink
: DVD Shrink batch processing
Offizieller Übersetzer von DVD Shrink deutsch
Chetwood is offline  
Old 27th September 2013, 11:35   #2396  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181


Maybe we start from the beginning so you can get a clear understanding. I'm using the mkvmerge docs for reference.

This is the general order of an mkvmerge command-line:
Code:
mkvmerge [global options] {-o out} [options1] {file1} [[options2] {file2}] [@optionsfile]
We start off with simply muxing an h264 video to an mkv container:
Code:
mkvmerge -o output.mkv input.h264
The next exercise would be to mux one h264 video track and one idx/sub subtitle track:
Code:
mkvmerge -o output.mkv video.h264 subtitles.idx
As you can see mkvmerge simply adds all files that don't have a "-o" in front of them into the file.

Now we want to define the video language as "English" and the subtitle language as "Dutch":
Code:
mkvmerge -o output.mkv --language 0:eng video.h264 --language 0:dut subtitles.idx
Notice how I've used the TrackID "0" for both input files. Lessons learned:
- the input TrackID's apply for each input file on their own.
- the options of an input file go in front of the input file

Since working with raw files is boring we will now try adding an mkv input file that has 3 tracks, with the first track being English, the second track being Finnish and the third track being Japanese. We will also add an idx/sub subtitle that is supposed to be German:
Code:
mkvmerge -o output.mkv --language 0:eng --language 1:fin --language 2:jpn input.mkv --language 0:ger subtitles.idx
As you can see we count from 0 to 2 for the input file with three tracks and still only use 0 for the single track after that.

We can do the same, but now with a second subtitle track which we will also mark as "forced":
Code:
mkvmerge -o output.mkv --language 0:eng --language 1:fin --language 2:jpn input.mkv --language 0:ger subtitles.idx --language 0:ger --forced-track 0:yes forced_subtitles.idx
Now let's say we also want to use some global options, for example --engage no_cue_relative_position and --clusters-in-meta-seek. We will simply put them into the front:
Code:
mkvmerge --engage no_cue_relative_position --clusters-in-meta-seek -o output.mkv --language 0:eng --language 1:fin --language 2:jpn input.mkv --language 0:ger subtitles.idx --language 0:ger --forced-track 0:yes forced_subtitles.idx

Well, that's pretty much it. We just have to be careful sometimes:
1.) If our file names or other descriptions have spaces in them, we have to use quotes around them. For example if we have "forced subtitles.idx" or we want to name the a track "Director's comment":
Code:
mkvmerge --engage no_cue_relative_position --clusters-in-meta-seek -o output.mkv --language 0:eng --language 1:fin --language 2:jpn --track-name 2:"Director's comment" input.mkv --language 0:ger subtitles.idx --language 0:ger --forced-track 0:yes "forced subtitles.idx"
2.) Some special characters have to be escaped
3.) In some cases (numbered VOBs) mkvmerge tries to automatically load several files without asking. We can stop it from doing so if we add a "=" directly before the filename or if we put it in Parentheses with spaces: "(" filename ")", (see the end of chapter 2.5 in the mkvmerge docs)
Code:
mkvmerge --engage no_cue_relative_position --clusters-in-meta-seek -o output.mkv --language 0:eng --language 1:fin --language 2:jpn --track-name 2:"Director's comment" ( input.mkv ) --language 0:ger subtitles.idx --language 0:ger --forced-track 0:yes ="forced subtitles.idx"

Last edited by sneaker_ger; 27th September 2013 at 11:46.
sneaker_ger is offline  
Old 28th September 2013, 05:55   #2397  |  Link
Chetwood
Registered User
 
Chetwood's Avatar
 
Join Date: Nov 2001
Posts: 1,105
Thanks for taking the time. I really appreciate it.
__________________

MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink
: DVD Shrink batch processing
Offizieller Übersetzer von DVD Shrink deutsch
Chetwood is offline  
Old 2nd October 2013, 13:18   #2398  |  Link
Morku
Registered User
 
Join Date: Jul 2012
Posts: 203
I have a little noob question.
Whats the difference between the subttles default flag and forced flag? I know forced subtitles are for parts of the movie with a different language in the scene. When I have the forced and complete subtitles in srt, I set the forced subtitles as default track and it will be shown in the media player. What would be the difference, if I use the forced flag?
Thank you very much.
Morku is offline  
Old 2nd October 2013, 13:50   #2399  |  Link
Mosu
MKVToolNix author
 
Mosu's Avatar
 
Join Date: Sep 2002
Location: Braunschweig, Germany
Posts: 4,352
Please read this fine FAQ entry about this very topic.
__________________
Latest MKVToolNix is v101.0

If I ever ask you to upload something, please use my file server.
Mosu is offline  
Old 3rd October 2013, 07:05   #2400  |  Link
Chetwood
Registered User
 
Chetwood's Avatar
 
Join Date: Nov 2001
Posts: 1,105
@Morku
You might also wanna read this.
__________________

MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink
: DVD Shrink batch processing
Offizieller Übersetzer von DVD Shrink deutsch
Chetwood is offline  
Closed Thread


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 20:00.


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