1

Topic: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Here I share the ALPHA version of a small tool I work on from time-to-time.

https://docs.google.com/folder/d/0B_WxU … RfeTg/edit

What is it ment to do?
It is ment to be a small gui which allows to frame accurately (by using smart rendering) cut mkv files.

Limitations:
Since it's a alpha version and I really only look at it from time to time there are some major shortcomings.

  • It only properly supports progressive, constant frame rate H.264 content

  • it has an ugly user-interface

  • it does not come with any bells&whistles

  • x264 encoding is very rudimentary (no user choice, always crf 19 encode)

  • ignores subtitles if present

  • only supports 4:2:0 content

  • Windows OS only atm. (mainly because Avisynth is used for decoding and preview; in theory ffmpeg could be used as alternative so porting to Linux&Co should be possible)

here's a general overview how MKVCutter works:

  1. analyze content with MKVInfo (to get the key frame positions)

  2. analyze content with MediaInfo (to get some general data needed for audio reencoding and preview)

  3. create AvisynthSkript to preview the content (simple script that calls FFVideoSource on the input)

  4. let user set which parts of the content he wants

  5. create audio and video cut lists for mkvmerge, create trim calls

  6. let user set the output name and the temp folder

  7. call mkvmerge with the video cut lists to create a bunch of temporary files (here the cuts are always on key frames)

  8. analyze one of the not reencoded parts with h264_parse to improve compatibility

  9. create avisynth scripts using the trim calls and LWLibAVSource to decode the GOPs that need reencoding (smart rendering)

  10. create x264 call to reencode the content provided by the avisynth scripts

  11. call x264 to reencode

  12. when all GOPs that need to be reencoded are reencoded, call mkvmerge to cut the audio (here attachments, subtitles&co do not get disabled any therefore should still be available)

  13. merge the new audio video and all the reencoded and kept GOPs

Cu Selur

2

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

uploaded a new version which allows to:

  • load/save cut lists

  • jump to a specific frame

3

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

uploaded a new version which fixes a bug where:
- 'direct=3' was converted to '--direct optimal' instead of '--direct auto'

4 (edited by mogobime 2013-03-17 15:49:14)

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

you need ffmsindex.exe from ffmpegsource, download section here:
http://code.google.com/p/ffmpegsource/downloads/list

All other needed tools are located in Hybrid program folder -> just copy mkvcutter to that folder for testing issues.

5

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

@mogobime: ffmsindex.exe is part of the MkvCutter download,....
normally there is one 'larger' download which contains all the required tools and smaller downloads which just contain just updated MkvCutter binaries.
-> MkvCutter can be used without installing Hybrid or Avisynth.

Cu Selur

6

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

I have been trying to use this tool without success and am wondering what I am doing wrong. 

I am running Win7 32 bit and my aim is to trim the start of some mkv files. 

I have assumed the 'cut' file is the part I am trying to keep, so my cut item: 000310-138346

The process seems to start ok and gets as far as creating a series of files in my temp folder and then it crashes.

I have started with a file called Stage.720p.mkv and I would like a result called newstage.mkv. 

At the point is crashes I have in my Source directory
Stage.720p.mkv
STAGE7~1.avs
STAGE7~1.ffindex

While in the temp folder
newstage-001_reencode.264
newstage-003.264
newstage-002.264
newstage-001.avs
newstage-003.mkv
newstage-002.mkv
newstage-001.mkv
newstage_mkvOptions.txt

The mkv files are just video and no audio at this point.

and the last instructions before it crashes are

Mkv extractor call: "E:\Other Tools\MkvCutter\mkvextract.exe" tracks "H:\Temp\newstage-003.mkv" 0:"H:\Temp\newstage-003.264"
mkvExtract finished,..
encoding next file,...
 x264 call: "E:\Other Tools\MkvCutter\x264.exe" --profile high --level 40 --cabac --ref 11 --deblock -3:-3 --partitions all --me umh --subme 11 --psy-rd 0.95:0.00 --merange 24 --trellis 2 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --no-fast-pskip --qblur -2 --no-dct-decimate --bframes 12 --b-pyramid strict --b-adapt 2 --b-bias 0 --direct auto --weightp 2 --keyint 250 --min-keyint 23 --scenecut 40 --no-mbtree 0 --qcomp 0.75 --qpmin 0 --qpmax 69 --qpstep 4 --ipratio 1.40 --pbratio 1.30 --aq-mode 1 --aq-strength 0.70 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "H:\Temp\newstage-001_reencode.264" "H:\Temp\newstage-001.avs"
x264 [error]: could not open input file `0'

ExitCode: -1, ExitStatus: 1
 x264 encoding finished,..
Resetting since x264 crashed,..

Would you let me know what other information may help and what I should try next.

Thank you

7

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

I have assumed the 'cut' file is the part I am trying to keep

Please post the whole log.
Don't see a problem with the calls as they are shown.

-> Correction, I see the problem ' --no-mbtree 0 ' should be ' --no-mbtree'
uploaded a new version 'MkvCutter_rev20130428' which should fix the problem

8

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Worked perfectly.

Thank you very much.

9

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

No problem. smile Happy to hear it works for you.

Cu Selur

10

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

I have run into problems with a couple more files, both are crashing out at the same point, when the trim process is being applied and with problems with the level argument, in once case  --level C and the other --level E-AAC / LC.

I have entered some more detail below and can send the full logs if it would help.

LoadPlugin("E:\Other Tools\MkvCutter\ffms2.dll")
FFVideoSource("H:\Temp\Shadows.720p-001.mkv", threads=1)

Trim(37,length=5)
   ----------------------------
  to: H:\Temp\Shadows.720p-001.avs
 creating x264 reencode call for: H:\Temp\Shadows.720p-001.avs
 -> x264 call: "E:\Other Tools\MkvCutter\x264.exe" --profile main --level E-AAC / LC --cabac --ref 9 --deblock -3:-3 --partitions i4x4i8x8p8x8b8x8 --me umh --subme 9 --psy-rd 1.30:0.00 --merange 16 --trellis 2 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --no-fast-pskip --qblur -2 --no-dct-decimate --bframes 8 --b-pyramid strict --b-adapt 2 --b-bias 0 --direct auto --weightp 2 --keyint 250 --min-keyint 23 --scenecut 40 --no-mbtree --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --pbratio 1.30 --aq-mode 1 --aq-strength 0.50 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "H:\Temp\Shadows_reencode.264" "H:\Temp\Shadows.720p-001.avs"
 trim value for Shadows.FLAC2.0.x264_cut_002.mkv: KEEP
 trim value for Shadows.FLAC2.0.x264_cut_003.mkv: KEEP
Mkv extractor call: "E:\Other Tools\MkvCutter\mkvextract.exe" tracks "H:\Temp\Shadows.720p-002.mkv" 0:"H:\Temp\Shadows.720p-002.264"
mkvExtract finished,..
Mkv extractor call: "E:\Other Tools\MkvCutter\mkvextract.exe" tracks "H:\Temp\Shadows.720p-003.mkv" 0:"H:\Temp\Shadows.720p-003.264"
mkvExtract finished,..
encoding next file,...
 x264 call: "E:\Other Tools\MkvCutter\x264.exe" --profile main --level E-AAC / LC --cabac --ref 9 --deblock -3:-3 --partitions i4x4i8x8p8x8b8x8 --me umh --subme 9 --psy-rd 1.30:0.00 --merange 16 --trellis 2 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --no-fast-pskip --qblur -2 --no-dct-decimate --bframes 8 --b-pyramid strict --b-adapt 2 --b-bias 0 --direct auto --weightp 2 --keyint 250 --min-keyint 23 --scenecut 40 --no-mbtree --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --pbratio 1.30 --aq-mode 1 --aq-strength 0.50 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "H:\Temp\Shadows_reencode.264" "H:\Temp\Shadows.720p-001.avs"
x264 [error]: invalid argument: level = E-AAC

ExitCode: -1, ExitStatus: 1
 x264 encoding finished,..
Resetting since x264 crashed,..
LoadPlugin("E:\Other Tools\MkvCutter\ffms2.dll")
FFVideoSource("H:\Temp\veron.720p-001.mkv", threads=1)

Trim(71,length=178)
   ----------------------------
  to: H:\Temp\veron.720p-001.avs
 creating x264 reencode call for: H:\Temp\veron.720p-001.avs
 -> x264 call: "E:\Other Tools\MkvCutter\x264.exe" --profile main --level C --cabac --ref 9 --deblock -3:-3 --partitions i4x4i8x8p8x8b8x8 --me umh --subme 10 --psy-rd 1.25:0.10 --merange 16 --trellis 2 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --no-fast-pskip --qblur -3 --no-dct-decimate --bframes 7 --b-pyramid strict --b-adapt 2 --b-bias 0 --direct auto --weightp 2 --keyint 250 --min-keyint 23 --scenecut 40 --no-mbtree --ratetol 1.0 --qcomp 0.70 --qpmin 0 --qpmax 51 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --pbratio 1.20 --aq-mode 1 --aq-strength 0.75 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "H:\Temp\veron_reencode.264" "H:\Temp\veron.720p-001.avs"
 trim value for Veron.FLAC2.0.x264_cut_002.mkv: KEEP
 trim value for Veron.FLAC2.0.x264_cut_003.mkv: KEEP
Mkv extractor call: "E:\Other Tools\MkvCutter\mkvextract.exe" tracks "H:\Temp\veron.720p-002.mkv" 0:"H:\Temp\veron.720p-002.264"
mkvExtract finished,..
Mkv extractor call: "E:\Other Tools\MkvCutter\mkvextract.exe" tracks "H:\Temp\veron.720p-003.mkv" 0:"H:\Temp\veron.720p-003.264"
mkvExtract finished,..
encoding next file,...
 x264 call: "E:\Other Tools\MkvCutter\x264.exe" --profile main --level C --cabac --ref 9 --deblock -3:-3 --partitions i4x4i8x8p8x8b8x8 --me umh --subme 10 --psy-rd 1.25:0.10 --merange 16 --trellis 2 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --no-fast-pskip --qblur -3 --no-dct-decimate --bframes 7 --b-pyramid strict --b-adapt 2 --b-bias 0 --direct auto --weightp 2 --keyint 250 --min-keyint 23 --scenecut 40 --no-mbtree --ratetol 1.0 --qcomp 0.70 --qpmin 0 --qpmax 51 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --pbratio 1.20 --aq-mode 1 --aq-strength 0.75 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "H:\Temp\veron_reencode.264" "H:\Temp\veron.720p-001.avs"
x264 [error]: invalid argument: level = C

ExitCode: -1, ExitStatus: 1
 x264 encoding finished,..
Resetting since x264 crashed,..

11

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

It would be helpful if you could call:

MediaInfo --full "Path to file"

for both files and post the output, seems like there's a bug in the level extraction code.
On tour today, but if you post the mediainfo output I can fix it tomorrow. sad


Cu Selur

12

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Looking at the errors, --level seems to be calling parameters from an audio track and both of these mkv have two audio tracks. Removing either of them then allowed the trim to complete successfully (I checked each audio track for each file)

The full mediainfo for each file are below

Shadows

General
Count                                    : 280
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Unique ID                                : 175852353453850674760503867140676610665
Unique ID                                : 175852353453850674760503867140676610665 (0x844BEE6BB18FBBA9932022CD1A256A69)
Count of video streams                   : 1
Count of audio streams                   : 2
Count of text streams                    : 1
Count of menu streams                    : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Video_Language_List                      : English
Audio_Format_List                        : FLAC / AAC
Audio_Format_WithHint_List               : FLAC / AAC
Audio codecs                             : FLAC / AAC LC-SBR
Audio_Language_List                      : French / English
Text_Format_List                         : UTF-8
Text_Format_WithHint_List                : UTF-8
Text codecs                              : UTF-8
Text_Language_List                       : English
Complete name                            : H:\Source\Shadows.FLAC2.0.x264.mkv
Folder name                              : H:\Source
File name                                : Shadows.FLAC2.0.x264
File extension                           : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/Url                               : removed
Format/Extensions usually used           : mkv mk3d mka mks
Commercial name                          : Matroska
Format version                           : Version 2
Codec                                    : Matroska
Codec                                    : Matroska
Codec/Url                                : removed
Codec/Extensions usually used            : mkv mk3d mka mks
File size                                : 8605156424
File size                                : 8.01 GiB
File size                                : 8 GiB
File size                                : 8.0 GiB
File size                                : 8.01 GiB
File size                                : 8.014 GiB
Duration                                 : 8715691
Duration                                 : 2h 25mn
Duration                                 : 2h 25mn 15s 691ms
Duration                                 : 2h 25mn
Duration                                 : 02:25:15.691
Overall bit rate mode                    : VBR
Overall bit rate mode                    : Variable
Overall bit rate                         : 7898542
Overall bit rate                         : 7 899 Kbps
Encoded date                             : UTC 2011-05-01 19:13:14
File creation date                       : UTC 2013-04-30 16:58:15.644
File creation date (local)               : 2013-04-30 17:58:15.644
File last modification date              : UTC 2013-04-27 22:38:21.000
File last modification date (local)      : 2013-04-27 23:38:21.000
Writing application                      : mkvmerge v4.6.0 ('Still Crazy After All These Years') built on Mar 10 2011 02:50:32
Writing library                          : libebml v1.2.0 + libmatroska v1.1.0
Writing library                          : libebml v1.2.0 + libmatroska v1.1.0

Video
Count                                    : 253
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
Unique ID                                : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : removed
Commercial name                          : AVC
Format profile                           : High@L4.1
Format settings                          : CABAC / 9 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 9
Format settings, ReFrames                : 9 frames
Internet media type                      : video/H264
Codec ID                                 : V_MPEG4/ISO/AVC
Codec ID/Url                             : removed
Codec                                    : V_MPEG4/ISO/AVC
Codec                                    : AVC
Codec/Family                             : AVC
Codec/Info                               : Advanced Video Codec
Codec/Url                                : removed
Codec profile                            : High@L4.1
Codec settings                           : CABAC / 9 Ref Frames
Codec settings, CABAC                    : Yes
Codec_Settings_RefFrames                 : 9
Duration                                 : 8715674
Duration                                 : 2h 25mn
Duration                                 : 2h 25mn 15s 674ms
Duration                                 : 2h 25mn
Duration                                 : 02:25:15.674
Nominal bit rate                         : 6700000
Nominal bit rate                         : 6 700 Kbps
Width                                    : 1280
Width                                    : 1 280 pixels
Height                                   : 694
Height                                   : 694 pixels
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.844
Display aspect ratio                     : 1.85:1
Frame rate mode                          : CFR
Frame rate mode                          : Constant
Frame rate                               : 23.976
Frame rate                               : 23.976 fps
Frame count                              : 208967
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Interlacement                            : PPF
Interlacement                            : Progressive
Bits/(Pixel*Frame)                       : 0.315
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Writing library                          : x264 - core 115 r1937 aa21558
Writing library                          : x264 core 115 r1937 aa21558
Writing library/Name                     : x264
Writing library/Version                  : core 115 r1937 aa21558
Encoding settings                        : cabac=1 / ref=9 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.30:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=6700 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:0.50
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Audio #1
Count                                    : 218
Count of stream of this kind             : 2
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
Stream identifier                        : 1
StreamOrder                              : 1
ID                                       : 2
ID                                       : 2
Unique ID                                : 281885107
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Format/Url                               : removed
Commercial name                          : FLAC
Codec ID                                 : A_FLAC
Codec ID/Url                             : removed
Codec                                    : FLAC
Codec                                    : FLAC
Codec/Family                             : Flac
Codec/Url                                : removed
Duration                                 : 8715691
Duration                                 : 2h 25mn
Duration                                 : 2h 25mn 15s 691ms
Duration                                 : 2h 25mn
Duration                                 : 02:25:15.691
Bit rate mode                            : VBR
Bit rate mode                            : Variable
Channel(s)                               : 2
Channel(s)                               : 2 channels
Sampling rate                            : 48000
Sampling rate                            : 48.0 KHz
Samples count                            : 418353168
Resolution                               : 24
Resolution                               : 24 bits
Bit depth                                : 24
Bit depth                                : 24 bits
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 0
Video0 delay                             : 0
Writing library                          : reference libFLAC 1.2.1 20070917
Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)
Writing library/Name                     : libFLAC
Writing library/Version                  : 1.2.1
Writing library/Date                     : UTC 2007-09-17
Language                                 : fr
Language                                 : French
Language                                 : French
Language                                 : fr
Language                                 : fra
Language                                 : fr
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Audio #2
Count                                    : 218
Count of stream of this kind             : 2
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 1
Stream identifier                        : 2
StreamOrder                              : 2
ID                                       : 3
ID                                       : 3
Unique ID                                : 3600268698
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Commercial name                          : AAC
Format profile                           : HE-AAC / LC
Format settings, SBR                     : Yes (Implicit)
Format settings, SBR                     : Yes (Implicit)
Format settings, PS                      : No (Explicit)
Format settings, PS                      : No (Explicit)
Codec ID                                 : A_AAC
Codec                                    : AAC LC-SBR
Codec                                    : AAC LC-SBR
Codec/Family                             : AAC
Duration                                 : 8715691
Duration                                 : 2h 25mn
Duration                                 : 2h 25mn 15s 691ms
Duration                                 : 2h 25mn
Duration                                 : 02:25:15.691
Channel(s)                               : 1
Channel(s)                               : 1 channel
Channel positions                        : Front: C
Channel positions                        : 1/0/0
Sampling rate                            : 48000 / 24000
Sampling rate                            : 48.0 KHz / 24.0 KHz
Samples count                            : 418353168
Compression mode                         : Lossy
Compression mode                         : Lossy
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 0
Video0 delay                             : 0
Title                                    : Commentary
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Default                                  : No
Default                                  : No
Forced                                   : No
Forced                                   : No

Text
Count                                    : 193
Count of stream of this kind             : 1
Kind of stream                           : Text
Kind of stream                           : Text
Stream identifier                        : 0
StreamOrder                              : 3
ID                                       : 4
ID                                       : 4
Unique ID                                : 645620399
Format                                   : UTF-8
Commercial name                          : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Codec                                    : S_TEXT/UTF8
Codec                                    : UTF-8
Codec/Info                               : UTF-8 Plain Text
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Menu
Count                                    : 100
Count of stream of this kind             : 1
Kind of stream                           : Menu
Kind of stream                           : Menu
Stream identifier                        : 0
Chapters_Pos_Begin                       : 74
Chapters_Pos_End                         : 100
00:00:00.000                             : en:00:00:00.000
00:02:36.656                             : en:00:02:36.656
00:07:26.488                             : en:00:07:26.488
00:10:44.978                             : en:00:10:44.978
00:17:07.485                             : en:00:17:07.485
00:21:12.605                             : en:00:21:12.605
00:26:19.912                             : en:00:26:19.912
00:29:26.723                             : en:00:29:26.723
00:33:59.829                             : en:00:33:59.829
00:41:49.549                             : en:00:41:49.549
00:45:01.073                             : en:00:45:01.073
00:47:14.749                             : en:00:47:14.749
00:52:00.034                             : en:00:52:00.034
00:55:32.663                             : en:00:55:32.663
01:02:10.393                             : en:01:02:10.393
01:08:30.982                             : en:01:08:30.982
01:12:04.111                             : en:01:12:04.111
01:19:22.716                             : en:01:19:22.716
01:25:27.080                             : en:01:25:27.080
01:33:01.743                             : en:01:33:01.743
01:35:32.352                             : en:01:35:32.352
01:47:09.423                             : en:01:47:09.423
01:49:19.303                             : en:01:49:19.303
02:02:17.872                             : en:02:02:17.872
02:07:30.393                             : en:02:07:30.393
02:18:45.067                             : en:02:18:45.067

Veron

General
Count                                    : 280
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Unique ID                                : 189714050961233902746770167915487460346
Unique ID                                : 189714050961233902746770167915487460346 (0x8EB998DF973DC4B8A9FB97B69E307BFA)
Count of video streams                   : 1
Count of audio streams                   : 2
Count of text streams                    : 1
Count of menu streams                    : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Video_Language_List                      : French
Audio_Format_List                        : FLAC / AAC
Audio_Format_WithHint_List               : FLAC / AAC
Audio codecs                             : FLAC / AAC LC
Audio_Language_List                      : French / English
Text_Format_List                         : UTF-8
Text_Format_WithHint_List                : UTF-8
Text codecs                              : UTF-8
Text_Language_List                       : English
Complete name                            : H:\Source\veron.FLAC2.0.x264.mkv
Folder name                              : H:\Source
File name                                : veron.FLAC2.0.x264
File extension                           : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/Url                               : removed
Format/Extensions usually used           : mkv mk3d mka mks
Commercial name                          : Matroska
Format version                           : Version 4 / Version 2
Codec                                    : Matroska
Codec                                    : Matroska
Codec/Url                                : removed
Codec/Extensions usually used            : mkv mk3d mka mks
File size                                : 6034909128
File size                                : 5.62 GiB
File size                                : 6 GiB
File size                                : 5.6 GiB
File size                                : 5.62 GiB
File size                                : 5.620 GiB
Duration                                 : 5886954
Duration                                 : 1h 38mn
Duration                                 : 1h 38mn 6s 954ms
Duration                                 : 1h 38mn
Duration                                 : 01:38:06.954
Overall bit rate mode                    : VBR
Overall bit rate mode                    : Variable
Overall bit rate                         : 8201062
Overall bit rate                         : 8 201 Kbps
Encoded date                             : UTC 2013-05-01 16:11:08
File creation date                       : UTC 2013-04-30 17:50:12.222
File creation date (local)               : 2013-04-30 18:50:12.222
File last modification date              : UTC 2013-05-01 16:15:28.703
File last modification date (local)      : 2013-05-01 17:15:28.703
Writing application                      : mkvmerge v6.2.0 ('Promised Land') built on Apr 28 2013 12:22:01
Writing library                          : libebml v1.3.0 + libmatroska v1.4.0
Writing library                          : libebml v1.3.0 + libmatroska v1.4.0

Video
Count                                    : 253
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
Unique ID                                : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : removed
Commercial name                          : AVC
Format profile                           : High@L4.1
Format settings                          : CABAC / 9 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 9
Format settings, ReFrames                : 9 frames
Internet media type                      : video/H264
Codec ID                                 : V_MPEG4/ISO/AVC
Codec ID/Url                             : removed
Codec                                    : V_MPEG4/ISO/AVC
Codec                                    : AVC
Codec/Family                             : AVC
Codec/Info                               : Advanced Video Codec
Codec/Url                                : removed
Codec profile                            : High@L4.1
Codec settings                           : CABAC / 9 Ref Frames
Codec settings, CABAC                    : Yes
Codec_Settings_RefFrames                 : 9
Duration                                 : 5886970
Duration                                 : 1h 38mn
Duration                                 : 1h 38mn 6s 970ms
Duration                                 : 1h 38mn
Duration                                 : 01:38:06.970
Nominal bit rate                         : 6800000
Nominal bit rate                         : 6 800 Kbps
Width                                    : 1176
Width                                    : 1 176 pixels
Height                                   : 720
Height                                   : 720 pixels
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.633
Display aspect ratio                     : 1.633
Frame rate mode                          : CFR
Frame rate mode                          : Constant
Frame rate                               : 23.976
Frame rate                               : 23.976 fps
Frame count                              : 141146
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Interlacement                            : PPF
Interlacement                            : Progressive
Bits/(Pixel*Frame)                       : 0.335
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Writing library                          : x264 - core 112 r1867 22bfd31
Writing library                          : x264 core 112 r1867 22bfd31
Writing library/Name                     : x264
Writing library/Version                  : core 112 r1867 22bfd31
Encoding settings                        : cabac=1 / ref=9 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=1.25:0.10 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=3 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / constrained_intra=0 / bframes=7 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=6800 / ratetol=1.0 / qcomp=0.70 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.20 / aq=1:0.75
Language                                 : fr
Language                                 : French
Language                                 : French
Language                                 : fr
Language                                 : fra
Language                                 : fr
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Audio #1
Count                                    : 218
Count of stream of this kind             : 2
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
Stream identifier                        : 1
StreamOrder                              : 1
ID                                       : 2
ID                                       : 2
Unique ID                                : 3512771461
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Format/Url                               : removed
Commercial name                          : FLAC
Codec ID                                 : A_FLAC
Codec ID/Url                             : removed
Codec                                    : FLAC
Codec                                    : FLAC
Codec/Family                             : Flac
Codec/Url                                : removed
Duration                                 : 5886954
Duration                                 : 1h 38mn
Duration                                 : 1h 38mn 6s 954ms
Duration                                 : 1h 38mn
Duration                                 : 01:38:06.954
Bit rate mode                            : VBR
Bit rate mode                            : Variable
Channel(s)                               : 2
Channel(s)                               : 2 channels
Sampling rate                            : 48000
Sampling rate                            : 48.0 KHz
Samples count                            : 282573792
Resolution                               : 24
Resolution                               : 24 bits
Bit depth                                : 24
Bit depth                                : 24 bits
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 0
Video0 delay                             : 0
Title                                    : FLAC 2.0
Writing library                          : reference libFLAC 1.2.1 20070917
Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)
Writing library/Name                     : libFLAC
Writing library/Version                  : 1.2.1
Writing library/Date                     : UTC 2007-09-17
Language                                 : fr
Language                                 : French
Language                                 : French
Language                                 : fr
Language                                 : fra
Language                                 : fr
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No

Audio #2
Count                                    : 218
Count of stream of this kind             : 2
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 1
Stream identifier                        : 2
StreamOrder                              : 2
ID                                       : 3
ID                                       : 3
Unique ID                                : 2509667257
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Commercial name                          : AAC
Format profile                           : LC
Format settings, SBR                     : No (Explicit)
Format settings, SBR                     : No (Explicit)
Codec ID                                 : A_AAC
Codec                                    : AAC LC
Codec                                    : AAC LC
Codec/Family                             : AAC
Duration                                 : 5886954
Duration                                 : 1h 38mn
Duration                                 : 1h 38mn 6s 954ms
Duration                                 : 1h 38mn
Duration                                 : 01:38:06.954
Channel(s)                               : 2
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Channel positions                        : 2/0/0
Sampling rate                            : 48000
Sampling rate                            : 48.0 KHz
Samples count                            : 282573792
Compression mode                         : Lossy
Compression mode                         : Lossy
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 0
Video0 delay                             : 0
Title                                    : AAC 2.0
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Default                                  : No
Default                                  : No
Forced                                   : No
Forced                                   : No

Text
Count                                    : 193
Count of stream of this kind             : 1
Kind of stream                           : Text
Kind of stream                           : Text
Stream identifier                        : 0
StreamOrder                              : 3
ID                                       : 4
ID                                       : 4
Unique ID                                : 1375138976
Format                                   : UTF-8
Commercial name                          : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Codec                                    : S_TEXT/UTF8
Codec                                    : UTF-8
Codec/Info                               : UTF-8 Plain Text
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Default                                  : No
Default                                  : No
Forced                                   : No
Forced                                   : No

Menu
Count                                    : 95
Count of stream of this kind             : 1
Kind of stream                           : Menu
Kind of stream                           : Menu
Stream identifier                        : 0
Chapters_Pos_Begin                       : 74
Chapters_Pos_End                         : 95
00:00:00.000                             : en:
00:03:45.350                             : en:
00:09:32.697                             : en:
00:13:52.873                             : en:
00:16:19.937                             : en:
00:21:16.525                             : en:
00:25:33.490                             : en:
00:29:48.953                             : en:
00:36:16.132                             : en:
00:41:28.152                             : en:
00:46:29.203                             : en:
00:52:52.043                             : en:
00:58:38.640                             : en:
01:02:11.561                             : en:
01:07:20.244                             : en:
01:14:23.000                             : en:
01:18:34.501                             : en:
01:22:21.311                             : en:
01:29:22.273                             : en:
01:33:34.817                             : en:
01:38:06.672                             : en:

13

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

I found the problem, MkvCutters x264-Setting-Analysis couldn't handle multi audio smile
-> uploaded a new version (MkvCutter_rev20130502), try it fixes the problem for you

14

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

I have just completed both mkv without any problems and both audio tracks were included in the trimmed files.

Many thanks.

15

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Happy to help and that the new version fixed the problem. smile

Cu Selur

16 (edited by Charun 2013-05-05 10:27:54)

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Hallo,

bei meinen Versuchen kommt es immer zu falschen Ergebnissen.
Audio passt, aber Video wird nicht richtig geschnitten, oder gemuxt.

Manchmal entsteht auch kein Outputfile... wie in diesem Fall.
Ich füge mal das komplette Log an.
Win7 64


MkvInfoAnalyszer call: mkvinfo.exe --ui-language en  -s "D:\Cut\101.mkv"
video track numer: 1
Video stream frame rate: 23.976

Track 1: video, codec ID: V_MPEG4/ISO/AVC (h.264 profile: High @L3.0), mkvmerge/mkvextract track ID: 0, default duration: 41.708ms (23.976 frames/fields per second for a video track), language: und, pixel width: 720, pixel height: 400, display width: 720, display height: 400
Track 2: audio, codec ID: A_AAC, mkvmerge/mkvextract track ID: 1, default duration: 21.333ms (46.875 frames/fields per second for a video track), language: ger, sampling freq: 48000, channels: 2
Video stream frame count: 84217
MkvvInfo detected 84217 frames 878 of them are key frames
Video stream key frame count: 878, average distance: 95
MediaInfo call: "D:\Tools\MkvCutter\MediaInfo.exe" --Full "D:\Cut\101.mkv"
Aspect ratio of input: 1
Frame rate mode: cfr
 video scan order: progressive
FFIndexCaller(D:\Cut\101.mkv, D:\Cut\101.ffindex)
FFIndex call: "D:\Tools\MkvCutter\ffmsindex.exe" "D:\Cut\101.mkv" "D:\Cut\101.ffindex"
indexerFinished,..
initializing the avisynth script environment,..
Loading avisynth.dll
loaded avisynth dll,..
loaded CreateScriptEnvironment definition from dll,..
created an IScriptEnvironment,..
looking for avisynth version,..
current avisynth version: AviSynth 2.60, build:Aug 28 2012 [18:17:07]
Importing D:\Cut\101.avs into environment,..
 grabbing clip infos,..
 checking colorspace,..
 current color space is Yv12
 invoking ConvertToRGB
 initializating the clip anew,..
 grabbing clip infos,..
 adjusting slider to frame count,..
 showing first frame,..
add cut item: 00146-05697
add cut item: 07864-84010
collecting cut list and audio cuts,..
  looking at m_keyframes.at(0): 0, 0 (00:00:00.000)
  looking at current key frame position: 0
  -> currentKey(0) < frame(146) => previousKey(0) = currentKey(0)
  looking at m_keyframes.at(1): 24, 1001 (00:00:01.001)
  looking at current key frame position: 24
  -> currentKey(24) < frame(146) => previousKey(0) = currentKey(24)
  looking at m_keyframes.at(2): 82, 3420 (00:00:03.420)
  looking at current key frame position: 82
  -> currentKey(82) < frame(146) => previousKey(24) = currentKey(82)
  looking at m_keyframes.at(3): 252, 10511 (00:00:10.511)
  looking at current key frame position: 252
  -> currentKey(252) > frame(146) => cut.prevKey(-1) = previousKey(82) && cut.nextKey(-1) = currrentKey(252) && cut.cut.end(251) = currentKey-1 (251) && previousKey(82) = currentKey (252)
 => findCutForFrame(146): 82 146-251 252
  looking at m_keyframes.at(0): 0, 0 (00:00:00.000)
  looking at current key frame position: 0
  -> currentKey(0) < frame(5697) => previousKey(0) = currentKey(0)
  looking at m_keyframes.at(1): 24, 1001 (00:00:01.001)
  looking at current key frame position: 24
  -> currentKey(24) < frame(5697) => previousKey(0) = currentKey(24)
  looking at m_keyframes.at(2): 82, 3420 (00:00:03.420)
  looking at current key frame position: 82
  -> currentKey(82) < frame(5697) => previousKey(24) = currentKey(82)
  looking at m_keyframes.at(3): 252, 10511 (00:00:10.511)
  looking at current key frame position: 252
  -> currentKey(252) < frame(5697) => previousKey(82) = currentKey(252)
  looking at m_keyframes.at(4): 364, 15182 (00:00:15.182)
  looking at current key frame position: 364
  -> currentKey(364) < frame(5697) => previousKey(252) = currentKey(364)
  looking at m_keyframes.at(5): 595, 24816 (00:00:24.816)
  looking at current key frame position: 595
  -> currentKey(595) < frame(5697) => previousKey(364) = currentKey(595)
  looking at m_keyframes.at(6): 715, 29821 (00:00:29.821)
  looking at current key frame position: 715
  -> currentKey(715) < frame(5697) => previousKey(595) = currentKey(715)
  looking at m_keyframes.at(7): 925, 38580 (00:00:38.580)
  looking at current key frame position: 925
  -> currentKey(925) < frame(5697) => previousKey(715) = currentKey(925)
  looking at m_keyframes.at(8): 1079, 45003 (00:00:45.003)
  looking at current key frame position: 1079
  -> currentKey(1079) < frame(5697) => previousKey(925) = currentKey(1079)
  looking at m_keyframes.at(9): 1122, 46797 (00:00:46.797)
  looking at current key frame position: 1122
  -> currentKey(1122) < frame(5697) => previousKey(1079) = currentKey(1122)
  looking at m_keyframes.at(10): 1259, 52511 (00:00:52.511)
  looking at current key frame position: 1259
  -> currentKey(1259) < frame(5697) => previousKey(1122) = currentKey(1259)
  looking at m_keyframes.at(11): 1382, 57641 (00:00:57.641)
  looking at current key frame position: 1382
  -> currentKey(83865) < frame(84010) => previousKey(83833) = currentKey(83865)
  looking at m_keyframes.at(874): 83927, 3500455 (00:58:20.455)
  looking at current key frame position: 83927
  -> currentKey(83927) < frame(84010) => previousKey(83865) = currentKey(83927)
  looking at m_keyframes.at(875): 83978, 3502582 (00:58:22.582)
  looking at current key frame position: 83978
  -> currentKey(83978) < frame(84010) => previousKey(83927) = currentKey(83978)
  looking at m_keyframes.at(876): 84010, 3503917 (00:58:23.917)
  looking at current key frame position: 84010
  -> currentKey(84010) == frame(84010) -> previousKey(84010) = frame(84010)
  looking at m_keyframes.at(877): 84036, 3505002 (00:58:25.002)
  looking at current key frame position: 84036
  -> currentKey(84036) > frame(84010) => cut.prevKey(-1) = previousKey(84010) && cut.nextKey(-1) = currrentKey(84036) && cut.cut.end(84035) = currentKey-1 (84035) && previousKey(84010) = currentKey (84036)
 => findCutForFrame(84010): 84010 84010-84035 84036
 B: adding startCut to cuts: 7842 7864-7868 7869
 B: adding middleCut to cuts: 7869 7869-84009 84010
 B: adding endCut to cuts: 84010 84010-84010 84036
building trim and video parts,...
 Looking at: 82 146-251 252
  append: false
  File start 82, end: 252 key
  !append -> fileIndex 1
  adding 101_cut_001.mkv <> Trim(64,length=105)
 Looking at: 252 252-5696 5697
  !append -> fileIndex 2
  adding 101_cut_002.mkv <> KEEP
  keep: mkv parts append: 252-5697
 Looking at: 5697 5697-5697 5826
  append: false
  File start 5697, end: 5826 key
  !append -> fileIndex 3
  adding 101_cut_003.mkv <> Trim(0,length=0)
 Looking at: 7842 7864-7868 7869
  append: false
  File start 7842, end: 7869 key
  !append -> fileIndex 4
  adding 101_cut_004.mkv <> Trim(22,length=4)
 Looking at: 7869 7869-84009 84010
  !append -> fileIndex 5
  adding 101_cut_005.mkv <> KEEP
  keep: mkv parts append: 7869-84010
 Looking at: 84010 84010-84010 84036
  append: false
  File start 84010, end: 84036 key
  !append -> fileIndex 6
  adding 101_cut_006.mkv <> Trim(0,length=0)
New temp folder: D:\Cut\t
mkvParts count: 6
Calling video cutter,..
 m_mkvVideoParts:
82-252
 252-5697
 5697-5826
 7842-7869
 7869-84010
 84010-84036
Saving options:
---------------------------
-o
D:\\Cut\\t\\101_1.mkv
--split
parts-frames:82-252,252-5697,5697-5826,7842-7869,7869-84010,84010-84036
--no-audio
--no-subtitles
--no-buttons
--no-track-tags
--no-chapters
--no-attachments
--no-global-tags
D:\\Cut\\101.mkv
---------------------------
to:  D:\Cut\t\101_1_mkvOptions.txt
Saved D:\Cut\t\101_1_mkvOptions.txt.
Video split call: "D:\Tools\MkvCutter\mkvmerge.exe" @"D:\Cut\t\101_1_~1.TXT"
 -> new temp file: D:\Cut\t\101_1-001.mkv
 -> new temp file: D:\Cut\t\101_1-002.mkv
 -> new temp file: D:\Cut\t\101_1-003.mkv
 -> new temp file: D:\Cut\t\101_1-004.mkv
 -> new temp file: D:\Cut\t\101_1-005.mkv
 -> new temp file: D:\Cut\t\101_1-006.mkv
only one output file: D:\Cut\t\101_1.mkv
 video splitter created the following files:
  1: D:\Cut\t\101_1-001.mkv
  2: D:\Cut\t\101_1-002.mkv
  3: D:\Cut\t\101_1-003.mkv
  4: D:\Cut\t\101_1-004.mkv
  5: D:\Cut\t\101_1-005.mkv
  6: D:\Cut\t\101_1-006.mkv
mkvSplit finished,..
handling split files,...
 trim value for 101_cut_001.mkv: Trim(64,length=105)
 createAvisynthSkript(D:\Cut\t\101_1-001.mkv, Trim(64,length=105))
  Avisynth file name: D:\Cut\t\101_1-001.avs
  Saved avisynth script:
   ----------------------------

LoadPlugin("D:\Tools\MkvCutter\ffms2.dll")
FFVideoSource("D:\Cut\t\101_1-001.mkv", threads=1)

Trim(64,length=105)
   ----------------------------
  to: D:\Cut\t\101_1-001.avs
 creating x264 reencode call for: D:\Cut\t\101_1-001.avs
 -> x264 call: "D:\Tools\MkvCutter\x264.exe" --profile high --level 30 --cabac --ref 3 --deblock -1:-1 --partitions i4x4i8x8p8x8b8x8 --me hex --subme 7 --psy-rd 1.00:0.15 --merange 16 --trellis 1 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --qblur -3 --bframes 3 --b-pyramid strict --b-adapt 1 --b-bias 0 --direct spatial --weightp 2 --keyint 240 --min-keyint 23 --scenecut 40 --rc-lookahead 40 --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --aq-mode 1 --aq-strength 1.00 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "D:\Cut\t\101_1-001_reencode.264" "D:\Cut\t\101_1-001.avs"
 trim value for 101_cut_002.mkv: KEEP
 trim value for 101_cut_003.mkv: Trim(0,length=0)
 createAvisynthSkript(D:\Cut\t\101_1-003.mkv, Trim(0,length=0))
  Avisynth file name: D:\Cut\t\101_1-003.avs
  Saved avisynth script:
   ----------------------------

LoadPlugin("D:\Tools\MkvCutter\ffms2.dll")
FFVideoSource("D:\Cut\t\101_1-003.mkv", threads=1)

Trim(0,length=0)
   ----------------------------
  to: D:\Cut\t\101_1-003.avs
 creating x264 reencode call for: D:\Cut\t\101_1-003.avs
 -> x264 call: "D:\Tools\MkvCutter\x264.exe" --profile high --level 30 --cabac --ref 3 --deblock -1:-1 --partitions i4x4i8x8p8x8b8x8 --me hex --subme 7 --psy-rd 1.00:0.15 --merange 16 --trellis 1 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --qblur -3 --bframes 3 --b-pyramid strict --b-adapt 1 --b-bias 0 --direct spatial --weightp 2 --keyint 240 --min-keyint 23 --scenecut 40 --rc-lookahead 40 --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --aq-mode 1 --aq-strength 1.00 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "D:\Cut\t\101_1-003_reencode.264" "D:\Cut\t\101_1-003.avs"
 trim value for 101_cut_004.mkv: Trim(22,length=4)
 createAvisynthSkript(D:\Cut\t\101_1-004.mkv, Trim(22,length=4))
  Avisynth file name: D:\Cut\t\101_1-004.avs
  Saved avisynth script:
   ----------------------------

LoadPlugin("D:\Tools\MkvCutter\ffms2.dll")
FFVideoSource("D:\Cut\t\101_1-004.mkv", threads=1)

Trim(22,length=4)
   ----------------------------
  to: D:\Cut\t\101_1-004.avs
 creating x264 reencode call for: D:\Cut\t\101_1-004.avs
 -> x264 call: "D:\Tools\MkvCutter\x264.exe" --profile high --level 30 --cabac --ref 3 --deblock -1:-1 --partitions i4x4i8x8p8x8b8x8 --me hex --subme 7 --psy-rd 1.00:0.15 --merange 16 --trellis 1 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --qblur -3 --bframes 3 --b-pyramid strict --b-adapt 1 --b-bias 0 --direct spatial --weightp 2 --keyint 240 --min-keyint 23 --scenecut 40 --rc-lookahead 40 --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --aq-mode 1 --aq-strength 1.00 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "D:\Cut\t\101_1-004_reencode.264" "D:\Cut\t\101_1-004.avs"
 trim value for 101_cut_005.mkv: KEEP
 trim value for 101_cut_006.mkv: Trim(0,length=0)
 createAvisynthSkript(D:\Cut\t\101_1-006.mkv, Trim(0,length=0))
  Avisynth file name: D:\Cut\t\101_1-006.avs
  Saved avisynth script:
   ----------------------------

LoadPlugin("D:\Tools\MkvCutter\ffms2.dll")
FFVideoSource("D:\Cut\t\101_1-006.mkv", threads=1)

Trim(0,length=0)
   ----------------------------
  to: D:\Cut\t\101_1-006.avs
 creating x264 reencode call for: D:\Cut\t\101_1-006.avs
 -> x264 call: "D:\Tools\MkvCutter\x264.exe" --profile high --level 30 --cabac --ref 3 --deblock -1:-1 --partitions i4x4i8x8p8x8b8x8 --me hex --subme 7 --psy-rd 1.00:0.15 --merange 16 --trellis 1 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --qblur -3 --bframes 3 --b-pyramid strict --b-adapt 1 --b-bias 0 --direct spatial --weightp 2 --keyint 240 --min-keyint 23 --scenecut 40 --rc-lookahead 40 --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --aq-mode 1 --aq-strength 1.00 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "D:\Cut\t\101_1-006_reencode.264" "D:\Cut\t\101_1-006.avs"
Mkv extractor call: "D:\Tools\MkvCutter\mkvextract.exe" tracks "D:\Cut\t\101_1-002.mkv" 0:"D:\Cut\t\101_1-002.264"
mkvExtract finished,..
Mkv extractor call: "D:\Tools\MkvCutter\mkvextract.exe" tracks "D:\Cut\t\101_1-005.mkv" 0:"D:\Cut\t\101_1-005.264"
mkvExtract finished,..
encoding next file,...
 x264 call: "D:\Tools\MkvCutter\x264.exe" --profile high --level 30 --cabac --ref 3 --deblock -1:-1 --partitions i4x4i8x8p8x8b8x8 --me hex --subme 7 --psy-rd 1.00:0.15 --merange 16 --trellis 1 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --qblur -3 --bframes 3 --b-pyramid strict --b-adapt 1 --b-bias 0 --direct spatial --weightp 2 --keyint 240 --min-keyint 23 --scenecut 40 --rc-lookahead 40 --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --aq-mode 1 --aq-strength 1.00 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "D:\Cut\t\101_1-001_reencode.264" "D:\Cut\t\101_1-001.avs"
avs [info]: 720x400p 1:1 @ 23999/1001 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 3.0
[1.0%] 1/105 frames, 8.00 fps, 160.15 kb/s, eta 0:00:13
x264 [info]: frame I:2     Avg QP:10.54  size:  6072
x264 [info]: frame P:38    Avg QP:11.25  size:  2550
x264 [info]: frame B:65    Avg QP: 8.68  size:    21
x264 [info]: consecutive B-frames: 17.1%  0.0%  2.9% 80.0%
x264 [info]: mb I  I16..4: 64.7% 31.5%  3.8%
x264 [info]: mb P  I16..4:  1.4%  5.3%  0.3%  P16..4: 15.6%  6.5%  2.1%  0.0%  0.0%    skip:68.8%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
x264 [info]: 8x8 transform intra:56.8% inter:73.3%
x264 [info]: coded y,uvDC,uvAC intra: 44.7% 31.2% 6.2% inter: 4.1% 3.4% 0.0%
x264 [info]: i16 v,h,dc,p: 83%  3%  7%  7%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 15% 30%  6%  9%  6%  9%  6% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 18% 27%  6%  8%  6%  7%  4%  4%
x264 [info]: i8c dc,h,v,p: 78% 12%  8%  2%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 69.1% 15.6% 10.2%  5.1%
x264 [info]: kb/s:201.75

encoded 105 frames, 306.12 fps, 201.75 kb/s

 x264 encoding finished,..
encoding next file,...
 x264 call: "D:\Tools\MkvCutter\x264.exe" --profile high --level 30 --cabac --ref 3 --deblock -1:-1 --partitions i4x4i8x8p8x8b8x8 --me hex --subme 7 --psy-rd 1.00:0.15 --merange 16 --trellis 1 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --qblur -3 --bframes 3 --b-pyramid strict --b-adapt 1 --b-bias 0 --direct spatial --weightp 2 --keyint 240 --min-keyint 23 --scenecut 40 --rc-lookahead 40 --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --aq-mode 1 --aq-strength 1.00 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "D:\Cut\t\101_1-003_reencode.264" "D:\Cut\t\101_1-003.avs"
avs [info]: 720x400p 1:1 @ 23999/1001 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 3.0


 x264 encoding finished,..
encoding next file,...
 x264 call: "D:\Tools\MkvCutter\x264.exe" --profile high --level 30 --cabac --ref 3 --deblock -1:-1 --partitions i4x4i8x8p8x8b8x8 --me hex --subme 7 --psy-rd 1.00:0.15 --merange 16 --trellis 1 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --qblur -3 --bframes 3 --b-pyramid strict --b-adapt 1 --b-bias 0 --direct spatial --weightp 2 --keyint 240 --min-keyint 23 --scenecut 40 --rc-lookahead 40 --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --aq-mode 1 --aq-strength 1.00 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "D:\Cut\t\101_1-004_reencode.264" "D:\Cut\t\101_1-004.avs"
avs [info]: 720x400p 1:1 @ 24009/1001 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 3.0
[25.0%] 1/4 frames, 62.50 fps, 165.02 kb/s, eta 0:00:00  
                                                                               
x264 [info]: frame I:1     Avg QP: 8.35  size:   860
x264 [info]: frame P:1     Avg QP: 9.00  size:    23
x264 [info]: frame B:2     Avg QP: 9.00  size:    21
x264 [info]: consecutive B-frames: 25.0%  0.0% 75.0%  0.0%
x264 [info]: mb I  I16..4: 100.0%  0.0%  0.0%
x264 [info]: mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
x264 [info]: 8x8 transform intra:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 0.0% 0.5% 0.5% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 96%  0%  4%  0%
x264 [info]: i8c dc,h,v,p: 100%  0%  0%  0%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:44.37

encoded 4 frames, 250.00 fps, 44.37 kb/s

 x264 encoding finished,..
encoding next file,...
 x264 call: "D:\Tools\MkvCutter\x264.exe" --profile high --level 30 --cabac --ref 3 --deblock -1:-1 --partitions i4x4i8x8p8x8b8x8 --me hex --subme 7 --psy-rd 1.00:0.15 --merange 16 --trellis 1 --8x8dct --deadzone-inter 21 --deadzone-intra 11 --qblur -3 --bframes 3 --b-pyramid strict --b-adapt 1 --b-bias 0 --direct spatial --weightp 2 --keyint 240 --min-keyint 23 --scenecut 40 --rc-lookahead 40 --ratetol 1.0 --qcomp 0.60 --qpmin 0 --qpmax 69 --qpstep 4 --cplxblur 20.0 --qblur 0.5 --ipratio 1.40 --aq-mode 1 --aq-strength 1.00 --thread-input --crf 19 --demuxer avs --sar 1:1 -o "D:\Cut\t\101_1-006_reencode.264" "D:\Cut\t\101_1-006.avs"
avs [info]: 720x400p 1:1 @ 23993/1001 fps (cfr)
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 3.0


 x264 encoding finished,..
Finished all the video reencoding,...
Calling audio cutter,..
Saving options:
---------------------------
-o
D:\\Cut\\t\\101_1_AudioCut.mkv
--split
parts:00:00:06.089-00:03:57.612,+00:05:27.995-00:58:23.920
--no-video
D:\\Cut\\101.mkv
---------------------------
to:  D:\Cut\t\101_1_AudioCut_mkvOptions.txt
Saved D:\Cut\t\101_1_AudioCut_mkvOptions.txt.
Audio split call: "D:\Tools\MkvCutter\mkvmerge.exe" @"D:\Cut\t\101_1_~2.TXT"
 -> new temp file: D:\Cut\t\101_1_AudioCut.mkv
only one output file: D:\Cut\t\101_1_AudioCut.mkv
 audio splitter created the following files:
  1: D:\Cut\t\101_1_AudioCut.mkv
mkvAudioCut finished,..
cleanUpAndMerge,...
 video file count: 6
 audio file count: 1
 Muxing audio&video(2),..
Saved D:\\Cut\\t\\101_1-001_reencode_mkvOptions.txt.
MKVmerge call: "D:\Tools\MkvCutter\mkvmerge.exe" @"D:\Cut\t\101_1-001_reencode_mkvOptions.txt"
mkvMerge finished,..
Allgemein
Anzahl                                   : 284
Anzahl der Streams dieser Art            : 1
Art des Streams                          : General
Art des Streams                          : Allgemein
ID des Stream-Identifiers                : 0
Inform                                   : Matroska:474 MiB, 58min
UniqueID                                 : 203257926331855620292443832543081808492
UniqueID/String                          : 203257926331855620292443832543081808492 (0x98EA0D7C26E28167A33667ECF6B6426C)
Anzahl der Video-Streams                 : 1
Anzahl der Audio-Streams                 : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Video-Codecs                             : AVC
Video_Language_List                      : Englisch
Audio_Format_List                        : AAC
Audio_Format_WithHint_List               : AAC
Audio-Codecs                             : AAC LC
Audio_Language_List                      : Deutsch
Vollständiger Name                       : D:\Cut\101.mkv
Verzeichnisname                          : D:\Cut
Dateiname                                : 101
Dateierweiterung                         : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/URL                               :
Format/gebräuchliche File-Extension      : mkv mk3d mka mks
Format_Commercial                        : Matroska
Format-Version                           : Version 4 / Version 2
Codec                                    : Matroska
Codec                                    : Matroska
Codec/URL                                : 
Codec/gebräuchliche File-Extension       : mkv mk3d mka mks
Dateigröße                               : 496929425
Dateigröße                               : 474 MiB
Dateigröße                               : 474 MiB
Dateigröße                               : 474 MiB
Dateigröße                               : 474 MiB
Dateigröße                               : 473,9 MiB
Dauer                                    : 3512640
Dauer                                    : 58min
Dauer                                    : 58min 32s 640ms
Dauer                                    : 58min
Dauer                                    : 00:58:32.640
Gesamte Bitrate                          : 1131751
Gesamte Bitrate                          : 1 132 Kbps
Kodierungs-Datum                         : UTC 2013-05-05 07:55:58
Datum der Datei-Erstellung               : UTC 2013-05-05 07:56:48.367
Fileerstellungsdatum (lokal)             : 2013-05-05 09:56:48.367
Datum der letzten Datei-Veränderung      : UTC 2013-05-05 07:56:26.152
Fileveranderungsdatum (lokal)            : 2013-05-05 09:56:26.152
Kodierendes Programm                     : mkvmerge v6.2.0 ('Promised Land') built on Apr 28 2013 12:22:01
verwendete Encoder-Bibliothek            : libebml v1.3.0 + libmatroska v1.4.0
verwendete Encoder-Bibliothek            : libebml v1.3.0 + libmatroska v1.4.0

Video
Anzahl                                   : 263
Anzahl der Streams dieser Art            : 1
Art des Streams                          : Video
Art des Streams                          : Video
ID des Stream-Identifiers                : 0
StreamOrder                              : 0
Inform                                   : 720*400 (16:9), bei 23,976 FPS, AVC (High@L3.0) (CABAC / 4 Ref Frames)
ID                                       : 1
ID                                       : 1
UniqueID                                 : 12375748124461438607
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/URL                               : 
Format_Commercial                        : AVC
Format-Profil                            : High@L3.0
Format-Einstellungen                     : CABAC / 4 Ref Frames
Format-Einstellungen für CABAC           : Yes
Format-Einstellungen für CABAC           : Ja
Format-Einstellungen für ReFrames        : 4
Format-Einstellungen für ReFrames        : 4 frames
InternetMediaType                        : video/H264
Codec-ID                                 : V_MPEG4/ISO/AVC
Codec-ID/URL                             : 
Codec                                    : V_MPEG4/ISO/AVC
Codec                                    : AVC
Codec/Familie                            : AVC
Codec/Info                               : Advanced Video Codec
Codec/URL                                : 
Codec-Profile                            : High@L3.0
Codec-Einstellungen                      : CABAC / 4 Ref Frames
Codec-Einstellungen für CABAC            : Yes
Codec_Settings_RefFrames                 : 4
Dauer                                    : 3512638
Dauer                                    : 58min
Dauer                                    : 58min 32s 638ms
Dauer                                    : 58min
Dauer                                    : 00:58:32.638
nominale Bitrate                         : 1000000
nominale Bitrate                         : 1 000 Kbps
Breite                                   : 720
Breite                                   : 720 Pixel
Höhe                                     : 400
Höhe                                     : 400 Pixel
Pixelverhältnis                          : 1.000
Bildseitenverhältnis                     : 1.800
Bildseitenverhältnis                     : 16:9
Modus der Bildwiederholungsrate          : CFR
Modus der Bildwiederholungsrate          : konstant
Bildwiederholungsrate                    : 23.976
Bildwiederholungsrate                    : 23,976 FPS
Anzahl der Frames                        : 84219
Auflösung                                : 8
Auflösung                                : 8 bits
Colorimetrie                             : 4:2:0
ColorSpace                               : YUV
ChromaSubsampling                        : 4:2:0
BitDepth                                 : 8
BitDepth/String                          : 8 bits
Scantyp                                  : Progressive
Scantyp                                  : progressiv
Interlace                                : PPF
Interlace                                : progressiv
Bits/(Pixel*Frame)                       : 0.145
Verzögerung                              : 0
Verzögerung                              : 00:00:00.000
Delay_Source                             : Container
verwendete Encoder-Bibliothek            : x264 - core 130 r2273 b3065e6
verwendete Encoder-Bibliothek            : x264 core 130 r2273 b3065e6
verwendete Encoder-Bibliothek/Name       : x264
verwendete Encoder-Bibliothek/Version    : core 130 r2273 b3065e6
Kodierungseinstellungen                  : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Default                                  : Ja
Forced                                   : No
Forced                                   : Nein

Audio
Anzahl                                   : 220
Anzahl der Streams dieser Art            : 1
Art des Streams                          : Audio
Art des Streams                          : Audio
ID des Stream-Identifiers                : 0
StreamOrder                              : 1
Inform                                   : Deutsch, 48,0 KHz, 2 Kanäle, AAC (LC)
ID                                       : 2
ID                                       : 2
UniqueID                                 : 16969807385335883660
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format_Commercial                        : AAC
Format-Profil                            : LC
Format-Einstellungen für SBR             : No (Explicit)
Format-Einstellungen für SBR             : No (Explicit)
Codec-ID                                 : A_AAC
Codec                                    : AAC LC
Codec                                    : AAC LC
Codec/Familie                            : AAC
Dauer                                    : 3512640
Dauer                                    : 58min
Dauer                                    : 58min 32s 640ms
Dauer                                    : 58min
Dauer                                    : 00:58:32.640
Kanäle                                   : 2
Kanäle                                   : 2 Kanäle
Kanal-Positionen                         : Front: L R
Kanal-Positionen                         : 2/0/0
Samplingrate                             : 48000
Samplingrate                             : 48,0 KHz
SamplingCount                            : 168606720
Compression_Mode                         : Lossy
Verzögerung                              : 0
Verzögerung                              : 00:00:00.000
Delay_Source                             : Container
Video Verzögerung                        : 0
Video0 Verzögerung                       : 0
Sprache                                  : de
Sprache                                  : Deutsch
Sprache                                  : Deutsch
Sprache                                  : de
Sprache                                  : deu
Sprache                                  : de
Default                                  : Yes
Default                                  : Ja
Forced                                   : No
Forced                                   : Nein

Das vollständige Cutter-Log und MediaInfo noch als Anhang.

Bye Charun

P.S. Ach ja, vielen Dank für deine Mühe.

Post's attachments

Attachment icon cutter+media.txt 222.31 kb, 425 downloads since 2013-05-05 

17

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Fehler gefunden, hab ne neue Version hochgeladen die das Problem fixen sollte. (scheint als ob ich beim letzen Update aus Versehen, die Zeile, welche Komma zwischen die partition Werte setzte auskommentiert hatte)

Cu Selur

18

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Klappt leider immer noch nicht. Heute leider keine Zeit mehr für weitere Versuche. Werde die Tage aber nochmal probieren und Bescheid geben.

Charun

19

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Okay, poste dann bitte mit der neuen Version noch mal das Log, da der Aufruf jetzt eigentlich richtig aussieht. smile

20 (edited by Charun 2013-05-06 19:27:27)

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Also dann, neuer Versuch.

Neue Datei, ein Teil herausgeschnitten.

Im Output qay.mkv mit Standbild und dem richtigen audio. MediaInfo crasht
Im Temp "qay.mkv" mit dem richtigen Video, und qay_AudioCut.mkv mit dem richtigen Audio

MkvInfoAnalyszer call: mkvinfo.exe --ui-language en  -s "D:\Tools\in\test1.mkv"
video track numer: 1
Video stream frame rate: 23.976

Track 1: video, codec ID: V_MPEG4/ISO/AVC (h.264 profile: Main @L3.1), mkvmerge/mkvextract track ID: 0, default duration: 41.708ms (23.976 frames/fields per second for a video track), pixel width: 1280, pixel height: 720, display width: 1280, display height: 720
Track 2: audio, codec ID: A_AC3, mkvmerge/mkvextract track ID: 1, default duration: 32.000ms (31.250 frames/fields per second for a video track), language: ger, sampling freq: 48000, channels: 6
Video stream frame count: 7261
MkvvInfo detected 7261 frames 101 of them are key frames
Video stream key frame count: 101, average distance: 71
MediaInfo call: "D:\Tools\MkvCutter\MediaInfo.exe" --Full "D:\Tools\in\test1.mkv"
Aspect ratio of input: 1
Frame rate mode: cfr
 video scan order: progressive
FFIndexCaller(D:\Tools\in\test1.mkv, D:\Tools\in\test1.ffindex)
FFIndex call: "D:\Tools\MkvCutter\ffmsindex.exe" "D:\Tools\in\test1.mkv" "D:\Tools\in\test1.ffindex"
indexerFinished,..
initializing the avisynth script environment,..
Loading avisynth.dll
loaded avisynth dll,..
loaded CreateScriptEnvironment definition from dll,..
created an IScriptEnvironment,..
looking for avisynth version,..
current avisynth version: AviSynth 2.60, build:Aug 28 2012 [18:17:07]
Importing D:\Tools\in\test1.avs into environment,..
 grabbing clip infos,..
 checking colorspace,..
 current color space is Yv12
 invoking ConvertToRGB
 initializating the clip anew,..
 grabbing clip infos,..
 adjusting slider to frame count,..
 showing first frame,..
add cut item: 1527-1608
collecting cut list and audio cuts,..
 A1: adding to cuts: 1527 1527-1608 1609
building trim and video parts,...
 Looking at: 1527 1527-1608 1609
  !append -> fileIndex 1
  adding test1_cut_001.mkv <> KEEP
  keep: mkv parts append: 1527-1609
  removing test1_cut_001.mkv <> KEEP from trim list
  adding D:\Tools\in\test1.mkv <> KEEP to trim list
New temp folder: D:\Tools\tmp
mkvParts count: 1
Calling video cutter,..
 m_mkvVideoParts:
1527-1609
Saving options:
---------------------------
-o
D:\\Tools\\tmp\\qay.mkv
--split
parts-frames:1527-1609
--no-audio
--no-subtitles
--no-buttons
--no-track-tags
--no-chapters
--no-attachments
--no-global-tags
D:\\Tools\\in\\test1.mkv
---------------------------
to:  D:\Tools\tmp\qay_mkvOptions.txt
Saved D:\Tools\tmp\qay_mkvOptions.txt.
Video split call: "D:\Tools\MkvCutter\mkvmerge.exe" @"D:\Tools\tmp\QAY_MK~1.TXT"
 -> new temp file: D:\Tools\tmp\qay.mkv
deleted D:\Tools\tmp\qay_mkvOptions.txt
 video splitter created the following files:
  1: D:\Tools\tmp\qay.mkv
mkvSplit finished,..
handling split files,...
 trim value for D:\Tools\tmp\qay.mkv: KEEP
Mkv extractor call: "D:\Tools\MkvCutter\mkvextract.exe" tracks "D:\Tools\tmp\qay.mkv" 0:"D:\Tools\tmp\qay.264"
mkvExtract finished,..
Finished all the video reencoding,...
Calling audio cutter,..
Saving options:
---------------------------
-o
D:\\Tools\\tmp\\qay_AudioCut.mkv
--split
parts:00:01:03.689-00:01:07.066
--no-video
D:\\Tools\\in\\test1.mkv
---------------------------
to:  D:\Tools\tmp\qay_AudioCut_mkvOptions.txt
Saved D:\Tools\tmp\qay_AudioCut_mkvOptions.txt.
Audio split call: "D:\Tools\MkvCutter\mkvmerge.exe" @"D:\Tools\tmp\QAY_AU~1.TXT"
 -> new temp file: D:\Tools\tmp\qay_AudioCut.mkv
deleted D:\Tools\tmp\qay_AudioCut_mkvOptions.txt
 audio splitter created the following files:
  1: D:\Tools\tmp\qay_AudioCut.mkv
mkvAudioCut finished,..
cleanUpAndMerge,...
 video file count: 1
 audio file count: 1
 audio file: D:\Tools\tmp\qay_AudioCut.mkv
 Muxing audio&video(1),..
Saved D:\\Tools\\tmp\\qay_mkvOptions.txt.
MKVmerge call: "D:\Tools\MkvCutter\mkvmerge.exe" @"D:\Tools\tmp\qay_mkvOptions.txt"
Deleting D:\Tools\in\test1.avs,..
mkvMerge finished,..
 deleting split list elements,...
 deleting reencoded video files elements,...
Allgemein
Anzahl                                   : 284
Anzahl der Streams dieser Art            : 1
Art des Streams                          : General
Art des Streams                          : Allgemein
ID des Stream-Identifiers                : 0
Inform                                   : Matroska:85,6 MiB, 5min 2s
UniqueID                                 : 232575448817794425051207991229545668648
UniqueID/String                          : 232575448817794425051207991229545668648 (0xAEF866F162AA87589DBDA9808C036028)
Anzahl der Video-Streams                 : 1
Anzahl der Audio-Streams                 : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Video-Codecs                             : AVC
Video_Language_List                      : Englisch
Audio_Format_List                        : AC-3
Audio_Format_WithHint_List               : AC-3
Audio-Codecs                             : AC3
Audio_Language_List                      : Deutsch
Vollständiger Name                       : D:\Tools\in\test1.mkv
Verzeichnisname                          : D:\Tools\in
Dateiname                                : test1
Dateierweiterung                         : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/URL                               : 
Format/gebräuchliche File-Extension      : mkv mk3d mka mks
Format_Commercial                        : Matroska
Format-Version                           : Version 4 / Version 2
Codec                                    : Matroska
Codec                                    : Matroska
Codec/URL                                : 
Codec/gebräuchliche File-Extension       : mkv mk3d mka mks
Dateigröße                               : 89763584
Dateigröße                               : 85,6 MiB
Dateigröße                               : 86 MiB
Dateigröße                               : 86 MiB
Dateigröße                               : 85,6 MiB
Dateigröße                               : 85,61 MiB
Dauer                                    : 302848
Dauer                                    : 5min 2s
Dauer                                    : 5min 2s 848ms
Dauer                                    : 5min 2s
Dauer                                    : 00:05:02.848
Gesamte Bitrate                          : 2371185
Gesamte Bitrate                          : 2 371 Kbps
Stream-Größe                             : 1787146
Stream-Größe                             : 1,70 MiB (2%)
Stream-Größe                             : 2 MiB
Stream-Größe                             : 1,7 MiB
Stream-Größe                             : 1,70 MiB
Stream-Größe                             : 1,704 MiB
Stream-Größe                             : 1,70 MiB (2%)
Proportionen dieses Streams              : 0.01991
Kodierungs-Datum                         : UTC 2013-05-05 13:58:46
Datum der Datei-Erstellung               : UTC 2013-05-06 16:26:33.674
Fileerstellungsdatum (lokal)             : 2013-05-06 18:26:33.674
Datum der letzten Datei-Veränderung      : UTC 2013-05-05 13:58:48.336
Fileveranderungsdatum (lokal)            : 2013-05-05 15:58:48.336
Kodierendes Programm                     : mkvmerge v6.2.0 ('Promised Land') built on Apr 28 2013 12:22:01
verwendete Encoder-Bibliothek            : libebml v1.3.0 + libmatroska v1.4.0
verwendete Encoder-Bibliothek            : libebml v1.3.0 + libmatroska v1.4.0

Video
Anzahl                                   : 266
Anzahl der Streams dieser Art            : 1
Art des Streams                          : Video
Art des Streams                          : Video
ID des Stream-Identifiers                : 0
StreamOrder                              : 0
Inform                                   : Englisch, 2 000 Kbps, 1280*720 (16:9), bei 23,976 FPS, AVC (Main@L3.1) (CABAC / 4 Ref Frames)
ID                                       : 1
ID                                       : 1
UniqueID                                 : 919993640
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/URL                               : 
Format_Commercial                        : AVC
Format-Profil                            : Main@L3.1
Format-Einstellungen                     : CABAC / 4 Ref Frames
Format-Einstellungen für CABAC           : Yes
Format-Einstellungen für CABAC           : Ja
Format-Einstellungen für ReFrames        : 4
Format-Einstellungen für ReFrames        : 4 frames
InternetMediaType                        : video/H264
Codec-ID                                 : V_MPEG4/ISO/AVC
Codec-ID/URL                             : 
Codec                                    : V_MPEG4/ISO/AVC
Codec                                    : AVC
Codec/Familie                            : AVC
Codec/Info                               : Advanced Video Codec
Codec/URL                                : 
Codec-Profile                            : Main@L3.1
Codec-Einstellungen                      : CABAC / 4 Ref Frames
Codec-Einstellungen für CABAC            : Yes
Codec_Settings_RefFrames                 : 4
Dauer                                    : 302845
Dauer                                    : 5min 2s
Dauer                                    : 5min 2s 845ms
Dauer                                    : 5min 2s
Dauer                                    : 00:05:02.845
Bitrate                                  : 2000000
Bitrate                                  : 2 000 Kbps
Breite                                   : 1280
Breite                                   : 1 280 Pixel
Höhe                                     : 720
Höhe                                     : 720 Pixel
Pixelverhältnis                          : 1.000
Bildseitenverhältnis                     : 1.778
Bildseitenverhältnis                     : 16:9
Modus der Bildwiederholungsrate          : CFR
Modus der Bildwiederholungsrate          : konstant
FrameRate_Mode_Original                  : VFR
Bildwiederholungsrate                    : 23.976
Bildwiederholungsrate                    : 23,976 FPS
Anzahl der Frames                        : 7261
Auflösung                                : 8
Auflösung                                : 8 bits
Colorimetrie                             : 4:2:0
ColorSpace                               : YUV
ChromaSubsampling                        : 4:2:0
BitDepth                                 : 8
BitDepth/String                          : 8 bits
Scantyp                                  : Progressive
Scantyp                                  : progressiv
Interlace                                : PPF
Interlace                                : progressiv
Bits/(Pixel*Frame)                       : 0.091
Verzögerung                              : 0
Verzögerung                              : 00:00:00.000
Delay_Source                             : Container
Stream-Größe                             : 73439734
Stream-Größe                             : 70,0 MiB (82%)
Stream-Größe                             : 70 MiB
Stream-Größe                             : 70 MiB
Stream-Größe                             : 70,0 MiB
Stream-Größe                             : 70,04 MiB
Stream-Größe                             : 70,0 MiB (82%)
Proportionen dieses Streams              : 0.81815
verwendete Encoder-Bibliothek            : x264 - core 120
verwendete Encoder-Bibliothek            : x264 core 120
verwendete Encoder-Bibliothek/Name       : x264
verwendete Encoder-Bibliothek/Version    : core 120
Kodierungseinstellungen                  : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=abr / mbtree=1 / bitrate=2000 / ratetol=1.0 / qcomp=0.60 / qpmin=3 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Sprache                                  : en
Sprache                                  : Englisch
Sprache                                  : Englisch
Sprache                                  : en
Sprache                                  : eng
Sprache                                  : en
Default                                  : Yes
Default                                  : Ja
Forced                                   : No
Forced                                   : Nein
colour_primaries                         : BT.709
transfer_characteristics                 : BT.709
matrix_coefficients                      : BT.709

Audio
Anzahl                                   : 230
Anzahl der Streams dieser Art            : 1
Art des Streams                          : Audio
Art des Streams                          : Audio
ID des Stream-Identifiers                : 0
StreamOrder                              : 1
Inform                                   : Deutsch, 384 Kbps, 48,0 KHz, 16 bits, 6 Kanäle, AC-3
ID                                       : 2
ID                                       : 2
UniqueID                                 : 609755861
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format_Commercial                        : AC-3
Format_Settings_ModeExtension            : CM (complete main)
Format-Einstellungen für Endianess       : Big
Codec-ID                                 : A_AC3
Codec                                    : AC3
Codec                                    : AC3
Codec/Familie                            : AC3
Codec/Info                               : Dolby AC3
Dauer                                    : 302848
Dauer                                    : 5min 2s
Dauer                                    : 5min 2s 848ms
Dauer                                    : 5min 2s
Dauer                                    : 00:05:02.848
Bitraten-Modus                           : CBR
Bitraten-Modus                           : konstant
Bitrate                                  : 384000
Bitrate                                  : 384 Kbps
Kanäle                                   : 6
Kanäle                                   : 6 Kanäle
Kanal-Positionen                         : Front: L C R, Side: L R, LFE
Kanal-Positionen                         : 3/2/0.1
Samplingrate                             : 48000
Samplingrate                             : 48,0 KHz
SamplingCount                            : 14536704
Auflösung                                : 16
Auflösung                                : 16 bits
BitDepth                                 : 16
BitDepth/String                          : 16 bits
Compression_Mode                         : Lossy
Verzögerung                              : 0
Verzögerung                              : 00:00:00.000
Delay_Source                             : Container
Video Verzögerung                        : 0
Video0 Verzögerung                       : 0
Stream-Größe                             : 14536704
Stream-Größe                             : 13,9 MiB (16%)
Stream-Größe                             : 14 MiB
Stream-Größe                             : 14 MiB
Stream-Größe                             : 13,9 MiB
Stream-Größe                             : 13,86 MiB
Stream-Größe                             : 13,9 MiB (16%)
Proportionen dieses Streams              : 0.16194
Sprache                                  : de
Sprache                                  : Deutsch
Sprache                                  : Deutsch
Sprache                                  : de
Sprache                                  : deu
Sprache                                  : de
Default                                  : Yes
Default                                  : Ja
Forced                                   : No
Forced                                   : Nein
dialnorm                                 : -31
dialnorm/String                          : -31 dB
bsid                                     : 8
dialnorm_Average                         : -31
dialnorm_Average/String                  : -31 dB
dialnorm_Minimum                         : -31
dialnorm_Minimum/String                  : -31 dB
dialnorm_Maximum                         : -31
dialnorm_Maximum/String                  : -31 dB
dialnorm_Count                           : 2

Hoffe auf Hilfe
Charun

21

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

ist im temp folder auch noch die qay_mkvOptions.txt ?

22 (edited by Charun 2013-05-06 20:01:44)

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Ja, mit folgendem Inhalt

-o
D:\\Tools\\out\\qay.mkv
--compression
-1:none
D:\\Tools\\tmp\\qay.264
--compression
-1:none
D:\\Tools\\tmp\\qay_AudioCut.mkv

Übrigens die beiden *.mkv im tmp selber gemuxt läuft.

23

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

sieht eigentlich okay aus, was passiert wenn Du:

"D:\Tools\MkvCutter\mkvmerge.exe" @"D:\Tools\tmp\qay_mkvOptions.txt"

in der Konsole aufrufst? Beschwert sich mkvmerge über irgendwas?

24

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\XXXXX>"D:\Tools\MkvCutter\mkvmerge.exe" @"D:\Tools\tmp\qay_mkvOptions.txt"

mkvmerge v6.0.0 ('Coming Up For Air') built on Jan 20 2013 09:52:00
'D:\Tools\tmp\qay.264': Using the demultiplexer for the format 'AVC/h.264'.
'D:\Tools\tmp\qay_AudioCut.mkv': Using the demultiplexer for the format 'Matrosk
a'.
'D:\Tools\tmp\qay.264' track 0: Using the output module for the format 'AVC/h.26
4'.
'D:\Tools\tmp\qay_AudioCut.mkv' track 0: Using the output module for the format
'AC3'.
The file 'D:\Tools\out\qay.mkv' has been opened for writing.
'D:\Tools\tmp\qay.264' track 0: Extracted the aspect ratio information from the
MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1280/720.
Progress: 100%
The cue entries (the index) are being written...
Muxing took 0 seconds.

C:\Users\XXXX>

Erstellt wird aber wieder das .mkv mit Standbild und richtigem Audio

25

Re: MKV Cutter - tool to cut h.264 mkv files frame accurate,...

nochma selbe datei... zwei längere schnitte. mkv wird erstellt, läuft einige sekunden und friert dann ein. Audio läuft weiter, kann auch spulen. das ganze in den cutter gezogen kann ich in der preview alles ansehen.