Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > (HD) DVD & Blu-ray authoring

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th March 2009, 14:04   #1  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
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
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP

Last edited by deank; 3rd June 2009 at 21:14.
deank is offline   Reply With Quote
Old 25th March 2009, 15:57   #2  |  Link
Aai em ron
Registered User
 
Join Date: Oct 2007
Posts: 23
Programm works perfectly and is extremely fast.
I tried an 9 GB 1080p movie and it took me only 3 hours to uncrop from 1920*800 to 1920*1080.
And the result was perfect.
So this is what I want to say:
Aai em ron is offline   Reply With Quote
Old 25th March 2009, 19:10   #3  |  Link
jtheripper
Registered User
 
Join Date: May 2002
Posts: 40
I tried it on a 720P MKV and unfortunately the uncropped version's audio was out of sync from the beginning
jtheripper is offline   Reply With Quote
Old 25th March 2009, 19:13   #4  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
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...
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP

Last edited by deank; 25th March 2009 at 19:19.
deank is offline   Reply With Quote
Old 26th March 2009, 02:09   #5  |  Link
~bT~
н∂-αиαтι
 
Join Date: May 2006
Location: Bedfordshire, UK
Posts: 1,005
thanks deank! another simple lil gem!
~bT~ is offline   Reply With Quote
Old 26th March 2009, 08:09   #6  |  Link
gaganspidey
Registered User
 
Join Date: Mar 2008
Posts: 21
Hey thanks for your contributions.
I wish there would be a way of adding black borders without re-encoding, unfortunately its not possible I guess.
gaganspidey is offline   Reply With Quote
Old 26th March 2009, 08:34   #7  |  Link
drpaulng
Registered User
 
Join Date: Mar 2002
Posts: 225
Does it accept ts or m2ts as input?
__________________
Paul Ng
drpaulng is offline   Reply With Quote
Old 26th March 2009, 11:36   #8  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
No, but you can demux the m2ts/ts file with tsmuxer to h.264+audio and merge them into mkv with mkvmerge and then use the output with uncropMKV... it takes minutes only.
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP
deank is offline   Reply With Quote
Old 26th March 2009, 12:24   #9  |  Link
mmace
Registered User
 
Join Date: Mar 2007
Posts: 123
brilliant, cheers
mmace is offline   Reply With Quote
Old 26th March 2009, 14:09   #10  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
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.
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP

Last edited by deank; 26th March 2009 at 14:13.
deank is offline   Reply With Quote
Old 26th March 2009, 14:47   #11  |  Link
nwg
Registered User
 
Join Date: Mar 2004
Posts: 819
Nice work. I wonder if it would be possible to add a audio aac to ac3 option. I have some mkv's that use aac audio and get just .264 video as the result.
nwg is offline   Reply With Quote
Old 26th March 2009, 14:51   #12  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
Join Date: Oct 2008
Location: Valencia, Spain
Posts: 4,248
If you can send me a small sample to try with... It would need eac3to I guess... and an .ini file....
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP
deank is offline   Reply With Quote
Old 26th March 2009, 15:13   #13  |  Link
nwg
Registered User
 
Join Date: Mar 2004
Posts: 819
Quote:
Originally Posted by deank View Post
If you can send me a small sample to try with... It would need eac3to I guess... and an .ini file....
They were just quicktime mov trailers converted to mkv using mkvmerge. I then usually put them through ripbot to make them into a resized m2ts with ac3 so multiavchd can read them. If uncropmkv could read them without ripbot then it would save a lot of time and another step.

I get them from http://www.davestrailerpage.co.uk/.
nwg is offline   Reply With Quote
Old 26th March 2009, 15:23   #14  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
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...
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP

Last edited by deank; 26th March 2009 at 15:32.
deank is offline   Reply With Quote
Old 26th March 2009, 19:42   #15  |  Link
nwg
Registered User
 
Join Date: Mar 2004
Posts: 819
It does detect the acc audio but it I don't get a uncropped mkv. I get the orignal mkv and the new .264 file.
nwg is offline   Reply With Quote
Old 26th March 2009, 21:00   #16  |  Link
herrde
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 21:10.
herrde is offline   Reply With Quote
Old 26th March 2009, 21:44   #17  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
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.
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP
deank is offline   Reply With Quote
Old 27th March 2009, 12:31   #18  |  Link
ACrowley
Registered User
 
Join Date: Apr 2006
Posts: 1,008
Quote:
Originally Posted by herrde View Post
"CAVIStreamSynth: System exception - Access Violation at 0x0, reading from 0x0"
I had this Error with Avisynth too in Year 2007. Install the latest Avsiynth (beta). That was the fix for me. I never get this Error again
ACrowley is offline   Reply With Quote
Old 28th March 2009, 01:34   #19  |  Link
deank
Programmer (or just 教务长)
 
deank's Avatar
 
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.
__________________
multiAVCHD - donate | popBD | uncropMKV | mkv2avi | easySUP
deank is offline   Reply With Quote
Old 28th March 2009, 13:06   #20  |  Link
jj420
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...
jj420 is offline   Reply With Quote
Reply

Tags
avchd, bdmv, compliant, mkv, multiavchd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:08.


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