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 |
|
|
#2381 | Link | |
|
Swallowed in the Sea
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
|
Quote:
|
|
|
|
|
|
#2382 | Link |
|
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. |
|
|
|
|
#2384 | Link | |
|
Matroska find' ich toll
Join Date: Apr 2008
Posts: 1,413
|
Quote:
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 |
|
|
|
|
|
#2389 | Link |
|
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()
|
|
|
|
|
#2390 | Link |
|
Registered User
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 |
|
|
|
|
#2391 | Link |
|
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. |
|
|
|
|
#2392 | Link |
|
MKVToolNix author
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. |
|
|
|
|
#2394 | Link |
|
MKVToolNix author
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. |
|
|
|
|
#2395 | Link | |
|
Registered User
Join Date: Nov 2001
Posts: 1,105
|
Quote:
__________________
MultiMakeMKV: MakeMKV batch processing (Win) MultiShrink: DVD Shrink batch processing Offizieller Übersetzer von DVD Shrink deutsch |
|
|
|
|
|
#2396 | Link |
|
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]
Code:
mkvmerge -o output.mkv input.h264 Code:
mkvmerge -o output.mkv video.h264 subtitles.idx 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 - 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 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 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" 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. |
|
|
|
|
#2397 | Link |
|
Registered User
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 |
|
|
|
|
#2398 | Link |
|
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. |
|
|
|
|
#2399 | Link |
|
MKVToolNix author
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. |
|
|
|
|
#2400 | Link |
|
Registered User
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 |
|
|
![]() |
|
|