Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
|
uncropMKV - get your video files to AVCHD/BD compliant resolution/level/ref frames
Some time ago I created a small tool to make mkv files compliant with 720x480, 1280x720 and 1920x1080 AVCHD/BD requirements. I also use it when I'm stuck with mkv videos with too high frame reference count (x264 ref) or level higher than 4.1.
![]() I first posted this in multiAVCHD thread, but I'd like to keep it separated. It's major function is to re-crop your input file, allowing you to change it before encoding. uncropMKV will try to make your VIDEO compliant to AVCHD/BD standards, but not the audio. Please check AVCHD/BluRay standards before complaining about anything. Download (7z self-extractable exe): ---------------------------------------- Full download: uncropMKV If you already have multiAVCHD you can download the .exe only and put it in your multiAVCHD folder. Make sure you have the latest full version and check if you have mkvmerge.exe in your tools folder. .EXE ONLY is suitable for multiAVCHD users who downloaded the FULL MULTIAVCHD package after 26-03-2009. ---------------------------------------- You'll also have to have: * AviSynth installed and * DirectShow decoder (ffdshow - direct link) * DirectShow splitter (Haali). ---------------------------------------- To start processing you need to add at least one file to the queue. (load file/change options/click queue button/click start button). uncropMKV allows you to do: * various resizing and uncropping and pre-cropping * framerate change, frame reference count change, bframes setting * sharpen/blur, h.264 level change, etc... * select/deselect streams that will be used/removed in the final -uncropped.mkv. * Max value for ref. frames is automatically calculated according to output resolution. You can safely use the largest number. * Uncropped resolution is automatically calculated and selected * Bitrate is automatically set to the original bitrate from your input file * The program works in 16:9 aspect ratio mode and uses square pixel (SAR 1:1), but... * Predefined re-size options allow creating anamorphic videos, for original videos with widths of 1920, 1440 or 1280 pixels. * Be advised that your final video will have the resolution set in uncrop dropdown box UNLESS resize and uncrop are in conflict. *** For example if the resize box shows 1920x1088 - uncrop will show 1920x1080 but your video will still be 1920x1088. *** You need to use CROP T/B to cut 4 pixels from both sides to make it 1088-4-4=1080 (1920x1080) and use the last items in resize box with fixed 1920x1080 sizes. It is a rare case for such thing to happen, but still it is good to be known. For example: Input video: 1920x816 Resize option: 720x364 Uncropping to: 720x480 (4:3 AR) and you'll get anamorphic 16:9 aspect ratio with really nice quality. I just tested it on my Playstation3 after running the mkv through multiAVCHD to get it to AVCHD/BD structure. The program won't demux the streams from the original file, but will only use the video (directshow) and those you decided to keep on the fly. Your output folder will contain the new movie-uncropped.mkv + movie.264. You can delete the latest if you don't need it for further processing. You can also use it: * ...to create overscan or/and * ...with videos which don't need re-cropping, but only change of Level/Bitrate/RefFrames. * ...with popBD or multiAVCHD to create AVCHD or Bluray Discs ![]() If you like the application, support the author. Dean Kasabow Last edited by deank; 3rd June 2009 at 21:14. |
![]() |
![]() |
![]() |
#4 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
|
If you had an older version it is possible. I fixed the issue this morning. Re-download the .exe only and try with a shorter clip or use "trim end"... And have your pre/post processing filters in directshow filter (ffdshow) disabled.
I did few encodes and I have no audio synch problems... Last edited by deank; 25th March 2009 at 20:19. |
![]() |
![]() |
![]() |
#10 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
|
A small example of application...
The last 2 mkv files I tried with: They had Level 5.1 and high ref count uncompatible with BD. Both files were 1920x1080, so no need for uncropping. I left resize/uncrop to 1920x1080, set ref.frames to 4 and bframes to 4, used the original bitrate ~12MBit and after about 3hrs I got the job done. Their input size was about 4.4GiB each but if muxed to m2ts they won't fit DVD5 media. After processing and muxing to m2ts the final size for DVD5 became 4.3GiB, which perfectly fit the media and played great in my PS3. And here is how Playstation3 performs with the bitrate from AVCHD DVD+RW disc: ![]() I think it is the x264 encoder that performs brilliant in its last builds and creates such outstanding quality, being much faster than before. Last edited by deank; 26th March 2009 at 15:13. |
![]() |
![]() |
![]() |
#13 | Link | |
Registered User
Join Date: Mar 2004
Posts: 819
|
Quote:
I get them from http://www.davestrailerpage.co.uk/. |
|
![]() |
![]() |
![]() |
#14 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
|
I just found one mp4 on my PSP and used mkvmerge to make it mkv and now i'm trying with it
![]() What happens when you use the mkv after mkvmerge? Doesn't it recognize the aac audio, because with my file it shows and is muxed in the final -uncropped.mkv as aac. And eac3to won't encode aac to ac3 without nero directshow filter (which I don't have)... duh... Last edited by deank; 26th March 2009 at 16:32. |
![]() |
![]() |
![]() |
#16 | Link |
Registered User
Join Date: Nov 2002
Posts: 87
|
Hi deank,
another brilliant program - just one issue and one question - I just did an uncrop of a 150 MB MKV. But when I try to load the now uncropped MKV into uncropMKV OR if I try to play it back using VLC Player, it first says "wait..." (as usual), but then the preview screen turns black and I receive the message: "CAVIStreamSynth: System exception - Access Violation at 0x0, reading from 0x0" The sound plays back fine, by the way. I ran uncropMKV in Administrator mode under Vista 32bit. Also, I noticed that it put out a *.264 file in the target directory which is 1,8 MB in size. What can I do? I am using your latest uncropMKV.exe (the one with today's date and "11:46" time stamp). AviSynth 2.5 is installed as is ffdshow. And the other question - uncropMKV really works quite fast - does it perform a full re-encoding of the MKV (thus lowering the picture quality like every recode does) or does it really just ADD the black borders without actually affecting the movie quality? Thanks for your help! All the best, Gero Last edited by herrde; 26th March 2009 at 22:10. |
![]() |
![]() |
![]() |
#17 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
|
Yes, it reencodes it. If you get a small .264 file it means something has gone wrong. It can be a badly cut mkv file you have or something else. I tried over 50 mkv files and they all work fine.
|
![]() |
![]() |
![]() |
#19 | Link |
Programmer (or just 教务长)
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
|
Another seven (static) resolutions are added at the end of the "Resize" drop-down:
640x480 720x480 720x576 960x720 1280x720 1440x1080 1920x1080 They should allow you to resize input video to full-frame or to a resolution that will keep original AR, no matter the uncrop. These are useful for weird resolutions and really make sense. I hope you'll find them useful. Dean p.s. Just re-download the .exe. The complete package is also updated. |
![]() |
![]() |
![]() |
#20 | Link |
Registered User
Join Date: Mar 2009
Posts: 8
|
i'm confused
hi Deank, I think all your programs work great...popBD, multiAVCHD, and you've finally shown me uncropMKV to fix those NC resolution mkv's.
I've run uncropMKV a couple of times now on 2 different files and both times i'm only seeing the x264 file and NOT the uncropped.mkv file. What am I doing wrong? here's what i'm running: uncropMKV ver. 0.2, Avisynth 2.58 and FFPshow i'm totally confused now... |
![]() |
![]() |
![]() |
Tags |
avchd, bdmv, compliant, mkv, multiavchd |
Thread Tools | Search this Thread |
Display Modes | |
|
|