PDA

View Full Version : uncropMKV - get your video files to AVCHD/BD compliant resolution/level/ref frames


Pages : [1] 2

deank
25th March 2009, 15:04
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.

http://multiavchd.deanbg.com/uncropMKV.jpg

I first posted this in multiAVCHD (http://forum.doom9.org/showthread.php?t=143744) 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 (http://multiforum.deanbg.com)

If you already have multiAVCHD (http://forum.doom9.org/showthread.php?t=143744) 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 (http://sourceforge.net/project/downloading.php?group_id=57023&use_mirror=kent&filename=Avisynth_258.exe&6791458) installed and
* DirectShow decoder (ffdshow (http://sourceforge.net/project/showfiles.php?group_id=173941) - direct link (http://sourceforge.net/project/showfiles.php?group_id=173941&package_id=199421&release_id=469925))
* DirectShow splitter (Haali (http://haali.cs.msu.ru/mkv/MatroskaSplitter.exe)).

----------------------------------------

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 (http://forum.doom9.org/showthread.php?t=145482) or multiAVCHD (http://forum.doom9.org/showthread.php?t=143744) to create AVCHD or Bluray Discs

http://multiavchd.deanbg.com/uncropMKV_4x.jpg

If you like the application, support the author.

Dean Kasabow

Aai em ron
25th March 2009, 16:57
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: :thanks:

jtheripper
25th March 2009, 20:10
I tried it on a 720P MKV and unfortunately the uncropped version's audio was out of sync from the beginning

deank
25th March 2009, 20:13
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...

~bT~
26th March 2009, 03:09
thanks deank! another simple lil gem!

gaganspidey
26th March 2009, 09:09
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.

drpaulng
26th March 2009, 09:34
Does it accept ts or m2ts as input?

deank
26th March 2009, 12:36
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.

mmace
26th March 2009, 13:24
brilliant, cheers

deank
26th March 2009, 15:09
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: :)

http://multiavchd.deanbg.com/avc33mPS3.JPG

I think it is the x264 encoder that performs brilliant in its last builds and creates such outstanding quality, being much faster than before.

nwg
26th March 2009, 15:47
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.

deank
26th March 2009, 15:51
If you can send me a small sample to try with... It would need eac3to I guess... and an .ini file....

nwg
26th March 2009, 16:13
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/.

deank
26th March 2009, 16:23
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...

nwg
26th March 2009, 20:42
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.

herrde
26th March 2009, 22:00
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

deank
26th March 2009, 22:44
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.

ACrowley
27th March 2009, 13:31
"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

deank
28th March 2009, 02:34
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.

jj420
28th March 2009, 14:06
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...

deank
28th March 2009, 14:12
Please check if you have:

mkvmerge.exe

in your tools folder.

You either have to download the LATEST FULL multiAVCHD (14MB) or the full uncropMKV_0.2.exe. They both have the tools needed.

I think that if you have only the 264 file it is because mkvmerge is missing.

Don't delete these 264 files. Just use tsmuxer to demux the audio from them.. put them in a folder and name your files

movie.264
movie.ac3 (if your audio is ac3)

and multiavhcd will make a compilation.

Or you can add the 264+audio with mkvmerge to get your MKV.

Or just download the packages, check for tools\mkvmerge.exe and try again. Post back if it works for you.

If at the end of the log you see:

mkvmerge: .........

and then in 1 second program ends - it is mkvmerge problem for sure.

You can also test using "TRIM END" and cut just 1-2mins of your input file - just to see if it will work - no need to wait hours to find it doesn't work :)

jj420
28th March 2009, 14:46
thanks Dean i'll try that...

just to be clear, to do a small test i can just click on the "trim end" button to get it going?

i'll keep you posted

deank
28th March 2009, 14:50
Yes, move the slider to the left and click trim-end then start.

dracore
28th March 2009, 15:17
can this work in batch for over night work!

deank
28th March 2009, 15:23
No, but it can be added... probably as command-line utility... I will think of it.

jj420
28th March 2009, 15:46
it worked Dean, thanks very much!! now I can make compliant resolution files!!

I appreciate it! keep up the good work, you will be seeing a donation real soon... :)

deank
28th March 2009, 15:56
I'm glad to have another happy user of my tools :)

rhayman
28th March 2009, 18:29
Thankyou very much for this program. Extremely fast. I encoded a 720p movie in about 2 hours on a quad core.
Wierd thing is that encoding the same movie using a 2-pass encode on megui (blu-ray profile) took 8 hours.
Is there any way of doing a 2-pass encode using this program?

deank
28th March 2009, 18:34
Take a look at the quality and if you think there is need for 2 pass then use megui. I'd rather keep it 1 pass only.

Aai em ron
28th March 2009, 23:50
One little question: Wat are the best x264 settings for Ref. Frames and B.Frames. Their default settings are both 3.
Is that average quality? When I leave them both to 3, the quality of the uncropped movie is excellent. Can I make that even better with other x264 settings? I'm just wundering.
Thanks again for your great tools.
Ron.

deank
29th March 2009, 00:06
I'm using ref.4 and b-frames:4 for 1920x1080. The larger b-frame value is the better compression but quality may degrade. I'd suggest you use these 3/3 values or max. 4/4.

I've put settings that should provide real nice quality with less encoding time. Also I tried to make the output uncropped.mkv to be in size almost as the original. You can experiment with different settings in shorter clips and see the difference.

Aai em ron
29th March 2009, 10:53
I'm using ref.4 and b-frames:4 for 1920x1080. The larger b-frame value is the better compression but quality may degrade. I'd suggest you use these 3/3 values or max. 4/4.

I've put settings that should provide real nice quality with less encoding time. Also I tried to make the output uncropped.mkv to be in size almost as the original. You can experiment with different settings in shorter clips and see the difference.

So, you say, the higher the number you use, the higher the compression, butt you get less quality, is that right?
So, for example when I use 1/1 , I get a big file with perfect quality? Or can you hardly see the difference?

deank
29th March 2009, 11:47
I'd suggest you take a look here (http://mewiki.project357.com/wiki/X264_Settings). There are tons of options that have impact on quality/speed/compression.

Aai em ron
29th March 2009, 13:03
I'd suggest you take a look here (http://mewiki.project357.com/wiki/X264_Settings). There are tons of options that have impact on quality/speed/compression.

Oke,thanks.:)

Selur
29th March 2009, 23:06
@deank: since you write compliant with 720x480, 1280x720 and 1920x1080 AVCHD/BD requirements. I wonder, what vbv values do you use in your application?

deank
29th March 2009, 23:18
Compliant ones. I use 30/30 and tested on the slower DVD-RW with planet earth clip which shows momentum 50MBps (PS3 playback info) and there is no stutterning with 1920x1080@24fps w/ 448kbps ac3 with x264 enc bitrate @ 12Mbps.

herrde
30th March 2009, 13:33
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

Thanks for the tip, that did it!

Another thing that I noticed - though the resulting uncropped MKV files now seem to be perfect, I still get a large *.264 file next to the uncropped MKV... I suppose this is only the re-encoded videostream and can thus be safely deleted, right?

Thanks again,

Gero

deank
30th March 2009, 13:36
Yes, if you read the first post of this thread you will notice:


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.

deank
30th March 2009, 14:21
@deank: since you write compliant with 720x480, 1280x720 and 1920x1080 AVCHD/BD requirements. I wonder, what vbv values do you use in your application?

For bitrates and GOP shorter or eq. to one second (progressive video) for 1920x1080 and GOP of 24, for fps 23.976 max is 48mbps (Level 4.1), and for fps 24 it is 24mbps (Level 4.0).

Same is for 1280x720 with GOPs of 60 (fps 59.94) and 50 (fps 23.976/24).

For larger GOP as 48 or 120 (interlaced) max is 18mbps.

Not that I use all this to set proper max bitrate/buffer, but I think maxbuffer could be safely set to 30000 for all level 4.1 progressive sources.

deank
30th March 2009, 18:16
I updated the .exe - fixed drop-down with Ref. frames, sometimes showing values greater than 16 on lower resolutions, which is not correct.

Also tested to encode 1920x1080@23.976 with 4 ref. frames and 6 b-frames and PS3 plays it without problems.

***

edit:

I added another resize option: 540x480

If your source is 4:3 (and your player won't respect it, but stretches it to 16:9) you can choose between the following predefined resize options (at the bottom of the resize-drop-down list) to add black borders:

540x480 (for 480p)
960x720 (for 720p)
1440x1080 (for 1080p)

I performed some tests with 576i resolution to make my Playstation3 go into 576p and it worked. To use 576p mode in PS3, input file needs to be 720x576 interlaced @ 50fps. This is not included in the current version, but was a result of a test suggested by zoner.

At this point I can't find a way to make PS3 play 4:3 videos keeping their aspect ratio and not stretching it to 16:9.

T800
31st March 2009, 00:02
Can I use this program to cover existing video with black bars.

I have a 1.85:1 MKV open matte file that I would like to change to 2.35:1 OAR.

deank
31st March 2009, 00:02
Now you can queue files for all-at-once midnight :) processing.

Download the .exe. The full package is also updated to ver 0.3

Dean

edit:

@T800: Yes. It will reencode it, but will not crop it (to remove any existing bars).

tyee
31st March 2009, 06:52
Hi Dean
Everytime I hit "Trim End", my firewall (Online Armor with program guard running too) says the app is trying to access a few of my drives root directories and my source file is not on these drives. Is this normal?

deank
31st March 2009, 10:08
No... The only thing that happens after trim end is setting new last frame in the text box and doing a preview (using avisynth+x264) which creates 3 files.

Do you get the same warning when you move the slider and click the movie window?

Does your guard give more info? (not that I can change anything in the program, but still...)

deank
31st March 2009, 13:06
Another option to top/bottom CROP files before resizing/uncropping. You can experiment with positive/negative values to see what it does.

Positive crop values initiate RESIZE first and then CROP.
Negative crop values will make uncropMKV first to crop original video and then resize it.

tyee
31st March 2009, 16:15
Hi Dean
Yes, the same thing happens when I move the slider and click the movie window. The app is trying to access just my 3 drives that include 2 actual DVD drives plus my virtual drive letter. They are all empty of course.

update -- just noticed that it's the x264.exe that is trying to do this, not your app directly, maybe that gives you some clue? From your description above x264.exe is creating three files but why look at empty drives?

deank
31st March 2009, 16:19
I have no idea why this happens... It could be because of avisynth image-writer function that tries to extract a frame (as bitmap 00000.bmp) and saves it so it can be shown in the preview window. And the write-path for this image is the same as uncropMKV.exe, not outside it. I believe it is nothing to worry about. You can reinstall avisynth with the one in the first post.

Also - if you're using ffdshow - make sure you disable any post-processing/plugins. For example while generating the preview, ffdshow may try to look for subtitles and it scans drives for find a match.

This is the execution order: x264 -> avisynth -> ffdshow ... may be this is the problem.

jhmac
31st March 2009, 21:17
Tried out the v.03 version loaded up the queue with 6 movies let it work overnight and all I ended up with is the .264 files and no uncropped files. Hmmm wonder what happened. As far as I know they should have been in the same directory right?

Thanks

deank
31st March 2009, 21:24
It means that you don't have tools\mkvmerge.exe or it didn't do its work.

264 files are the most important ones so in case of (such) failure you can use them with mkvmerge gui, add your original audio and get your final file.

If you get only the .264 file it means that you 1st need to test and then rely on overnight processing. No refunding here.

Try again those unsuccessful files. Use "trim end" (while having slider moved to like 5% of your movie duration) and see what will happen.

Do you have full and latest uncropMKV package downloaded?

tyee
31st March 2009, 21:45
Hi Dean
Thanks for the tips, I try it when I get home. One other question. This app works with the typical MKV with lossy audio tracks, but can we get it working with Dolby TrueHD and DTS HD MA?

If we get eac3to to demux an actual BR disk to .mkv video and then one of the non lossy audio tracks to .trueHD, could we then use those in uncropMKV?

I know in that case (using a BR disk), that we wouldn't necessarily be cropping but it would be nice to use this app for both types of jobs;)

deank
31st March 2009, 22:01
I'm not really sure what you're asking about. uncropMKV cares only about the video stream and should keep all other (selected) streams intact (it doesn't make difference if audio is HD or not). How you process the resulting -uncropped.mkv file is left to your choice.

jhmac
31st March 2009, 22:09
It means that you don't have tools\mkvmerge.exe or it didn't do its work.

264 files are the most important ones so in case of (such) failure you can use them with mkvmerge gui, add your original audio and get your final file.

If you get only the .264 file it means that you 1st need to test and then rely on overnight processing. No refunding here.

Try again those unsuccessful files. Use "trim end" (while having slider moved to like 5% of your movie duration) and see what will happen.

Do you have full and latest uncropMKV package downloaded?

Yep that was the problem I have been running just the .exe in the MultiAVCHD dir like the forums says but it did not have MKVMege in the tools dir until now. It is working fine now. Thanks for the tip and the great programs.


Are you doing anymore work on popBD? I posted a request in the popBD forum.

Thanks for the great software making our lives easier!

deank
31st March 2009, 22:19
I removed the comment that users need "the latest/complete multiAVCHD, which includes mkvmerge", because I thought most people did update.

Yes, I read popBD thread, too. It's that 24hrs are not enough for the things I want/am asked to do. The option you ask for will be available tomorrow :)

I guess I'll add a warning in log if mkvmerge/x264 are missing.

fbimatrix
1st April 2009, 00:41
Thank you for the program, is exactly what I need , but i converted , and the video was without audio , why is that , help me

deank
1st April 2009, 00:48
If you give more info than I can probably help you.

Did you download the COMPLETE package?

What file exactly has no audio? Did you read POST#1 in this thread?!

jdeiro
1st April 2009, 01:07
Another excelent app, thanks Dean!!

Is it possible to add a "Shutdown PC after finished" option?

Cheers!

tyee
1st April 2009, 07:28
Hi Dean
I looked into that question I had about HD audio tracks and it looks like MKV's can't have TrueHD or DTS HD MA. Would it be possible to add a switch in your app so that the final MKV is not created. I just want the .264 encoded video. I will use it with a demuxed HD audio track and feed them both into tsmuxer to create the BR structure.

Also, what about a "crf" switch for one pass also. That's what I've been using up until now. It creates great quality too. Have you compared constant bitrate vs crf?

deank
1st April 2009, 09:50
MKV container supports HD audio, I don't know how you decided otherwise. I tried with various settings (incl. -crf) but then the final filesize got bigger and the quality with the current settings is really good. I'll see about additional switches & options in the interface.

jj420
1st April 2009, 14:37
so how can I get DTS audio to play in a AVCHD file structure, when all the programs downgrade to AC3?

deank
1st April 2009, 14:40
I don't know what do you mean by 'all programs'. Both popBD and multiAVCHD allow you to put your mkv into AVCHD and watch it with DTS or even DTS-MA/HRA or TrueHD without reencoding. uncropMKV also doesn't touch your audio nor cares what it is or if is present at all.

jj420
1st April 2009, 14:43
so to keep the DTS audio in MultiAVCHD, in audio settings keep all audio tracks checked will keep its original state provided that the audio stream is in DTS?

deank
1st April 2009, 14:51
popBD will never touch audio.
multiAVCHD will never reencode standard DTS to AC3.

If it is Master/HighResolution audio DTS then in multiAVCHD you need to uncheck [x] TrueHD/DTS-MA.... to [xxx] kbps AC-3 and LPCM in Audio/Subtitles tab.

it is unchecked by default anyway.

jj420
1st April 2009, 15:09
thanks Dean for helping me understand...i'm not an A/V guy so i'm just learning as I go along...

deank
1st April 2009, 15:15
No problem. Let me know if you run into troubles with any of these programs.

so to keep the DTS audio in MultiAVCHD, in audio settings keep all audio tracks checked will keep its original state provided that the audio stream is in DTS?

Yes, use [x] Keep all audio tracks. Otherwise only the first one will be kept. :)

GenesisPT
1st April 2009, 18:09
Hi Deank,
About the flickering we where talking about in the multiAVCHD thread, I've juste noticed that my TV says that the video is now 1080i not 1080p. This might be the problem but I don't know how this happened as the original is 1080p.

herrde
1st April 2009, 18:20
Hi Deank,
About the flickering we where talking about in the multiAVCHD thread, I've juste noticed that my TV says that the video is now 1080i not 1080p. This might be the problem but I don't know how this happened as the original is 1080p.

Just to let you know - I have replied to your flickering issue, but again over at the multiAVCHD thread as I think it's not uncropMKV-related. See my post here (http://forum.doom9.org/showthread.php?p=1268558#post1268558).

Best,

Gero

deank
1st April 2009, 18:36
Honestly I have no ideas.

Please make sure you have the latest Haali and ffdshow and have all postprocessing in ffdshow disabled.

I never witnessed anything similar. I'm using PAL PS3 -> HDMI -> 1920x1080p plasma tv.

Check your PS3 settings for 1080p output.

multiAVCHD menu is in 1080i - are you sure you didn't confuse it with the movie?

b66pak
1st April 2009, 19:58
hi,

can you add a check/uncheck box for turning off the PC when encoding ends (and maybe a timer)? ([x] turn off PC after encoding)?
_

deank
1st April 2009, 20:01
I should ask CalcIt developer about it. Once I find out how - I'll add this option.

Atak_Snajpera
2nd April 2009, 00:52
I should ask CalcIt developer about it. Once I find out how - I'll add this option.
Simply execute shutdown.exe with proper switch

tyee
2nd April 2009, 05:23
Hi Dean
One quick question, does your x264 command line include the "--threads auto" switch? Just want to confirm that I'm getting the fastest speed.Thanks.

deank
2nd April 2009, 09:22
Simply execute shutdown.exe with proper switch

He gave me the API call function, so I'll use it. :)

Hi Dean
One quick question, does your x264 command line include the "--threads auto" switch? Just want to confirm that I'm getting the fastest speed.Thanks.

Yes.

deank
2nd April 2009, 11:28
You can now download the updated .exe. It includes the shutdown option and small interface change.

http://multiavchd.deanbg.com/uncropmkv.jpg

deank
2nd April 2009, 15:46
A little update:

I added functionality to import various video-formats. If input file is not MKV, uncropMKV will use mkvmerge to generate a MKV and will process it.

Example:

1) I loaded AVI file (XVID 624x352 23.98fps) with MP3 audio
2) Set resize option to 720x480 (16:9 anamorphic)
3) Clicked Queue and then Start
4) Took the output (-uncropped.mkv) file and loaded it into multiAVCHD
5) multiAVCHD converted the MP3 audio to AC3
6) ...and I got a nice AVCHD folder with my AVI video :)

I also tested it with MP4 and MOV.

*** edit: there are some audio sync problems if original audio is not AC3/DTS/PCM/WAV but I'll find a solution. It works with CBR mp3/mp2 audio.

edward1963
2nd April 2009, 21:21
Hi Deank

unfortunately uncropMKV seems not to be working on my computer
everything from avisynth and ffdshow ist installed and working(with other programs like megui encoder)
When I load the mkv file into the program: "video properties" doesn't show anything besides n/a. It somehow doesn't read the file!? I suspect is has something to do with the directshow filters (although otherwise they seem to be working). Any idea?
Anyway thanks for multiAVCHD, works like a charm,terrific program!
No problems here. A great item would be popup menus,but probably a big hassle to program.

Greetings Arthur :)

deank
2nd April 2009, 21:29
if you don't get a preview or 'video properties' it means that either you don't have tools\mkvinfo.exe or your file is not mkv.

download the latest FULL uncropMKV (link in 1st post) and try again.

Also I'd suggest to READ ALL that's in the first post in this thread.

b66pak
2nd April 2009, 22:46
thanks a lot...
_

b66pak
3rd April 2009, 01:29
it would be nice to add a .log file (in case something going wrong!)...
_

deank
3rd April 2009, 01:38
You can re-download the .exe. It will create a log file in uncropMKV.exe folder. :)

[02:36:37] Pre-processing input file (captivity-tlr2_h1080p.mp4)...
[02:36:48] Detected video: ID#1:V_MPEG4/ISO/AVC:1920x800 23.976fps (AR:2.4)
[02:36:48] Video height not compliant (480/576/720/1080)!
[02:36:48] Detected audio: ID#2:A_AAC:audio (44100Hz/2ch) Language: und
[02:36:52] Will keep track#2, Audio, A_AAC, und, 44100Hz 2ch
[02:36:52] File queued: captivity-tlr2_h1080p_new.mkv
[02:36:54] Re-encoding with x264 (captivity-tlr2_h1080p_new.mkv)...
[02:36:58] Will keep track#2, Audio
[02:36:58] mkvmerge: ...
[02:37:00] Done!

jj420
3rd April 2009, 14:57
quick question Dean. if the source file has h.264 & DTS audio is there a way to convert the audio to AC3 and still keep the DTS stream? essentially i want to get to a file that now has the h.264 file + DTS audio & AC3 audio

deank
3rd April 2009, 15:00
Yes, you can use eac3to to convert dts to ac3 and then add it as another audio track so you'll have both selectable DTS & AC3.

jj420
3rd April 2009, 15:04
how would i add that new AC3 file to the existing?

deank
3rd April 2009, 15:05
If you want to have it in a MKV then you'll use mkvmerge (there is a GUI) or if you want to use it with multiAVCHD, just place it in the same path with your mkv file and name it the same way:

movie.mkv
movie.ac3
movie.dts
.... etc...

drpaulng
4th April 2009, 02:27
Dean,
Do you consider incorporating chapter points registering function on the slider and help us generate a chapter-list?

DMagic1
4th April 2009, 07:29
Just came on to this topic. Great work on yet another.

b66pak
4th April 2009, 18:56
can you add priority levels to the application?
_

Digi
4th April 2009, 21:26
I need some help here please i have a 1920x1084 MKV that evrytime i load into uncrop and leave all settings apart from uncrop to 1920x1080 the resulting file is still 1920x1084.

Also any files that i have that are say 1920x800 and i rezise to 1920x1080 always look stretched and no longer anamorphic. Any help.


Thanks

deank
4th April 2009, 21:49
In latest versions you have CROP T/B - Crop Top/Bottom and there you can select 2 or -2 and scroll down the "resize" list to the bottom - there you have 1920x1080.

uncropMKV usually doesn't need any options changes if your video has height SMALLER than required... when it is bigger as in your case (1084) you may need to use the manual resize (the last options in the resize list). You can play with CROP T/B also.

***

You CAN'T change the UNCROP option - it is auto-selected with the proper resolution. If you load 1920x800 - resize should show "1920x800 (No change)" but uncrop will be to '1920x1080' - adding black bars. So don't use the resize option. Just take a look at the preview - your output will look as in the preview window.

almeidajack
5th April 2009, 16:27
Hello

Firstly congratulations for MULTIAVCHD tool. It really is a powerfull way to make mkv movies playable in PS3.

I am sure one of the serious problems we have are make playable the non compliants HD movies and I was looking for a simple tool as uncropMKV. Unfortunately it is ot working for me. As soon I load the non copliant MKV the uncropMKV reads quickly movie information and minimize itself at upper left corner of my display. I have reinstalled everything (avisynth, ffdshow and haali) and is still not working.

Your help would be appreciated.

deank
5th April 2009, 16:36
Can you resize it and see if there is something written in this small box?

Also - did you download the complete uncropMKV?

almeidajack
5th April 2009, 17:39
Thanks for prompt reply!

Yes, I downloaded the complete pack/

See below. It looks like there is no reencoding for movie.

[12:36:07] Detected video: ID#1:V_MPEG4/ISO/AVC:1920x1080 23.976fps (AR:1.78)
[12:36:07] Detected audio: ID#2:A_AC3:audio (48000Hz/6ch) Language: eng
[12:36:07] Detected subtitles: ID#3:S_TEXT/ASS Language: eng
[12:36:17] Will keep track#2, Audio, A_AC3, eng, 48000Hz 6ch
[12:36:17] Will keep track#3, Subtitles, S_TEXT/ASS, eng
[12:36:17] File queued: movie.mkv
[12:36:20] Re-encoding with x264 (movie.mkv)...
[12:36:20] Will keep track#2, Audio
[12:36:20] Will keep track#3, Subtitles
[12:36:20] mkvmerge: -o "H:\VIDEOS\MOVIES HD\movie.mkv" -a 2 -D -s 3 "H:\VIDEOS\MOVIES HD\movie.mkv" --default-duration 0:23.976fps -d 0 "H:\VIDEOS\MOVIES HD\movie.264"
[12:36:21] Done!
[12:36:21] Author: Dean Kasabow (dean@deanbg.com)

almeidajack
5th April 2009, 17:44
would be important to say I can`t see a image preview?

deank
5th April 2009, 17:56
Yes - no reencoding is done... It means that there is something wrong with AviSynth... Try do uninstall it... Reboot and install 2.58 again.

If you get no preview - you'll get no-reencoding... Preview is the first test if x264+avisynth work properly. Also if you installed ffdshow - check if you used 'avisynth frame serve...' option during install.

And please remove all MOVIE NAMES from your post.

b66pak
6th April 2009, 20:25
it is be possible to add to the log the x264 and mkvmerge windows output?
_

deank
6th April 2009, 22:58
No, sorry.

deank
7th April 2009, 16:29
vacano:Thanks, my next post will be in UncropMKV section as is creating a small file first then it goes to do the cropping and stops.

Read the first page of the thread. It is good to have the complete uncrop or complete multiAVCHD downloaded. Also avisynth is required!

vacano
7th April 2009, 16:51
Yes, before i did anything i went and got multiAVCHD whole package that comes with popBD and uncropMKV and extracted it to my folder called multiAVCHD and execute the programs from there, i do have avisynth 2.5, ffdshow and haali splitter install in their default location, something weird just happen i loaded an mkv file instead of a ts file to see the difference and so far so good but that's not the file i want to work with so while i still have the frame from the mkv file open in front of me i loaded the ts file i want and it works no idea why but if i only put the ts file it does no work. any ideas

deank
7th April 2009, 17:04
Well probably there is something with the ts file... can you send what mediainfo says about it?

vacano
7th April 2009, 17:12
Yeap, is a fact loaded MKV file with same video size as my TS file, MKV file fills Avisynth section (TS won't don't know why) i don't queue the MKV and open TS, queue TS and start re-encoding and is doing the TS file as i can see it in the log window, weird. any idea why my TS file is no triggering Avisynth, Oh, i almost forgot when i loaded the Ts file the bitrate changed under x264 settings that was another way to let me know it was working with the TS file not the MKV.

vacano
7th April 2009, 17:17
OK, i need to stop re-encoding as it's taken a lot resources give me a bit and i'll send that info.

deank
7th April 2009, 17:24
Well, if it is processing your TS - let it run... you can always use TRIM END and test with a small part of your file.

vacano
7th April 2009, 17:27
OK here's the info you request hope it helps.



General
ID : 1
Complete name : x:\Temp for UncropMKV\xxxxx.ts
Format : MPEG-TS
File size : 3.87 GiB
Duration : 1h 50mn
Overall bit rate : 5 030 Kbps
Maximum Overall bit rate : 35.5 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Duration : 1h 49mn
Bit rate : 4 190 Kbps
Nominal bit rate : 4 178 Kbps
Width : 1 280 pixels
Height : 544 pixels
Display aspect ratio : 2.35
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.251
Writing library : x264 core 65 r1028 83baa7f
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 /

psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 /

chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 /

direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=2pass / bitrate=4178 / ratetol=1.0 /

qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.0

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Duration : 1h 50mn
Bit rate mode : Constant
Bit rate : 640 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Surround: L R, LFE
Sampling rate : 48.0 KHz

deank
7th April 2009, 17:32
When you load this .ts what happens?
uncropMKV shoud convert it to MKV and process it afterwards.


edit: You're right... only certain files will be accepted if not in native MKV format - for example AVI/MPEG/MPEG2 files.

May be I should add demuxing of elementary streams and muxing them back to mkv.

vacano
7th April 2009, 17:49
it tries but nothing, it says pre-processing input file (xxxxx.ts), the preview screen it's empty, Avisynth resize field is empty, crop T/B is (0) , x264 settings is fine, video properties is n/a in every sub properties. that's for this particular file , now for the other TS file it creates the MKV the way is suppose to but file size is about 7 times smaller, original video size is 4,764,564KB and MKV it creates is 610,947KB does not sound right to me but i could be wrong.

deank
7th April 2009, 18:01
right.. uncropMKV was not supposed to work with other types...

vacano
7th April 2009, 18:02
Man i wish i had more time but this afternoon i'm going away for 3 to 4 days so if you deank or anybody else find a solution i'll try it when i'm back, for the records i just loaded an mp4 file and it created the MKV file no problems right file size and everything going to leave it re-encoding.

dracore
7th April 2009, 23:33
Now you can queue files for all-at-once midnight :) processing.

Download the .exe. The full package is also updated to ver 0.3

Dean

edit:

@T800: Yes. It will reencode it, but will not crop it (to remove any existing bars).

outstanding thanks bud

drpaulng
10th April 2009, 02:40
Can there be a special setting for 1920x1088 uncrop? Because the 8 pixel black bar is all at the bottom. It would be best if uncropping only the bottom 8 rather than the top and bottom 4.

zoner
10th April 2009, 07:13
1920x1088 doesnt have to be cropped, they work fine as they are on PS3 at least.

drpaulng
10th April 2009, 10:02
That would be a good news. I'll try to author without uncropping.

coledow
10th April 2009, 20:17
is there any way to add another uncropping option for 480? when I try to add bars to my 640x480 videos and it changes them to 720x480, it looks very stretched out on my blu ray player. its not a 16:9 resolution

deank
10th April 2009, 20:26
It has to be 720x480 - otherwise it will not be compliant, but you can use "resize" dropdown and see if other resolutions will work for you. If your source is 4:3 try to use resize 540x480 - it is somewhere at the end of the list.

erict
11th April 2009, 18:55
Nice prog Dean!

The good thing is, i can use all cores on a Mac Pro in Bootcamp (winxp) and its very fast. :)
Bad thing, it works only if i load files one by one, but queued files have mostly wrong sizes.
Does the Queued files work for you? TIA!

deank
11th April 2009, 19:00
Yes it works when I queue files. You set all properties for a VIDEO before clicking QUEUE... Then the next... set properties/resize/uncrop... queue... and after the last one - START... It works. There is no way that it works for 1 file and not for multiple because the program logic is the same.

DMagic1
11th April 2009, 21:50
Just wondering what you are using for your sharpen tool? In the past I've used MSharpen in my scripts and I just wonder about this in uncropMKV.

deank
11th April 2009, 21:52
Just "Sharpen()". uncropMKV is not a PRO-tool... it is for those who need fast/reliable/speedy vs. quality output. Not that I can see any quality loss with 1080p videos.

DMagic1
11th April 2009, 21:59
Cool, I was just wondering. I've used sharpen() at times too.

erict
11th April 2009, 22:27
Thats exactly what i did. I konw it sounds illogical. I tried this 5 times with different files. One file 1280x528 uncropped correct to 1280x720 if no other files in the queue.
Same file in queue with other files uncropped to 1280x704!?!
The Logfiles shows the right settings but the ffdshow window shows the wrong format. Do i need a special version of ffdshow or something?

deank
11th April 2009, 22:46
Okay, let me check this.

erict
11th April 2009, 23:07
Seems that all files in queue gets the settings from the last file in the queue. No prob if all have the same size but not if files have different formats.
Thats why my 1st file (1280x528) has now 1280x808 instead of 1280x720, thats the setting (+280) of my last file in the queue 1920x800.

deank
11th April 2009, 23:35
It shouldn't be that way - and I checked it - at least on my win PC. I'll do some test later/tomorrow.

***

edit: I queued 3 files: 1) 720x480, 2) 1280x720, 3) 1920x1080 and all three got processed properly and the result was as expected. There is something wrong in your configuration or with using it in MacOS.

Try to redownload the full-uncropMKV again.

erict
12th April 2009, 00:04
I meant just uncropping files with different formats like 1280x528, 1280x544 and 1920x800 in the same queue.
My Windows XP SP3 is running on its own partition Bootcamp just installs some Apple drivers that shouldn't be the problem.
To be sure, i go and try it on a win pc tomorrow. Thank you again for helping.

deank
12th April 2009, 00:14
I meant just uncropping files with different formats like 1280x528, 1280x544 and 1920x800 in the same queue.
My Windows XP SP3 is running on its own partition Bootcamp just installs some Apple drivers that shouldn't be the problem.
To be sure, i go and try it on a win pc tomorrow. Thank you again for helping.

Yes, I loaded 3 files with different resolutions:

1) 640x480 and got it to 720x480
2) 1280x584 -> 1280x720
3) 1920x800 -> 1920x1080

All three were resized and uncropped properly in the queue.

erict
12th April 2009, 12:53
I also tried on a windows pc with the same result. All files are uncropped with the setting from the last file in queue.

deank
12th April 2009, 14:04
Can you QUEUE 3-4 files and click on the Queue TAB (next to stream list) and post a screenshot?

erict
12th April 2009, 15:06
Ok, here is a picture from the queue:

http://i39.tinypic.com/2dhwutv.jpg

and now file 1 in ffdshow window:

http://i43.tinypic.com/10prpew.jpg

file2:

http://i39.tinypic.com/2s7yik8.jpg

file3:

http://i42.tinypic.com/2qk4eu8.jpg

and file4:

http://i42.tinypic.com/2hdp8bm.jpg

thank you for checking!

erict
12th April 2009, 15:24
Yes, i already use the latest version. Maybe i should setup a new vista partition and try again? Which OS are you using?

deank
12th April 2009, 15:31
PLEASE try to disable ALL PRE-POST processing in you FFDSHOW, because it may be messing with the resolution.

Also - while doing the conversion - can you check the TOOLS folder - there should be 20090412xxxxxxxx.AVS file - open it with notepad and paste its contents. While x264 is encoding the AVS file will be there.

deank
12th April 2009, 15:45
Also - a small test for you to do - use CROP T/B: 2 and if it works then the problem is with your ffdshow changing the resolution while parsing it to uncropMKV.


*** EDIT :

download again uncropMKV.exe - I just updated it.

Now when you load your file you'll have TWO SIMILAR resize options. For example if your video is 1280x584 you'll have

1280x584 (No change)
1280x584

Just select the second one and try without CROP T/B. It will FORCE resize - ignoring ffdshow settings.

erict
12th April 2009, 16:01
Ok, there is no preprocessing in ffdsow, everything unchecked. I still got the same result.

Here is the .avs file Movie01:

filename="C:\movie01 fof.mkv"
b = directshowsource(filename,audio=false).trim(0,892)
bordersizeX=int(0/2)
bordersizeY=int(280/2)
AddBorders(b, bordersizeX, bordersizeY, bordersizeX, bordersizeY)
b=last
b=b.ConvertToYV12()
return b

Movie02:

filename="C:\movie02 wd.mkv"
b = directshowsource(filename,audio=false).trim(0,1407)
bordersizeX=int(0/2)
bordersizeY=int(280/2)
AddBorders(b, bordersizeX, bordersizeY, bordersizeX, bordersizeY)
b=last
b=b.ConvertToYV12()
return b

Movie03:

filename="C:\movie03 ij.mkv"
b = directshowsource(filename,audio=false).trim(0,1466)
bordersizeX=int(0/2)
bordersizeY=int(280/2)
AddBorders(b, bordersizeX, bordersizeY, bordersizeX, bordersizeY)
b=last
b=b.ConvertToYV12()
return b

and Movie04:

filename="C:\movie04 sc.mkv"
b = directshowsource(filename,audio=false).trim(0,1452)
bordersizeX=int(0/2)
bordersizeY=int(280/2)
AddBorders(b, bordersizeX, bordersizeY, bordersizeX, bordersizeY)
b=last
b=b.ConvertToYV12()
return b

deank
12th April 2009, 16:06
Ok, just download the .exe again and do what I asked in the previous post - select the second resolution (without the No change label).

Like here:

http://multiavchd.deanbg.com/uncrop-er.jpg

erict
12th April 2009, 16:19
If i do this all files size is now 1920x1080 like the last one.

Comatose
12th April 2009, 16:22
So wait, does this re-encode?

deank
12th April 2009, 16:26
I'm sorry - I can't help you more than that - it seems that there is something wrong at your side.

for example, this line

b = directshowsource(filename,audio=false).trim(0,892)

shows that uncropMKV is not resizing your video, but for some reason your directshow filter/codecs change it.

@Comatose: yes it does - it is all in the first post.

erict
12th April 2009, 16:31
No prob, i test it on a third computer later. Otherwise i just queue files with the same size.
Still the fastest way to uncrop. Thank you for help!

Comatose
12th April 2009, 16:31
I took another quick look and I don't see anything about re-encoding - it says it does certain things, but I was wondering if it did them without re-encoding.

In any case, this is just designed to make this process more simple then?

mp3_godfather
12th April 2009, 16:32
Hi deank,
first of all let me thank you for the great tools you offered us (multiavchd is fantastic)!!

Hi read here in this forum that for an 4.7G file it takes aprox. 3 hours to uncrop. I have installed the latest version and all the required tools, but in my pc (Pentium 4 CPU 3 GHz with 2G of RAM, with SP3 of XP) it take 8 hours to uncrop a file with size:1200x534 to 1280x720!!! Am I doing something wrong? Is there any optimal configurations for the tools in use (aviSynth,ffdshow and haali)? And What can I do to make it a litle more faster?

Thanks in advance.

deank
12th April 2009, 16:44
t says it does certain things, but I was wondering if it did them without re-encoding.

In any case, this is just designed to make this process more simple then?

Yes.


Hi read here in this forum that for an 4.7G file it takes aprox. 3 hours to uncrop. I have installed the latest version and all the required tools, but in my pc (Pentium 4 CPU 3 GHz with 2G of RAM, with SP3 of XP) it take 8 hours to uncrop a file with size:1200x534 to 1280x720!!!

I think your CPU is not powerfull enough. I'm using core2 duo @2ghz and I get 1920x1080 in 3-4 hours.

If you have latest avisynth and NO OTHER CODECS but ffdshow (with all pre-post processing disabled) it should work faster.

DMagic1
13th April 2009, 07:32
I actually been wondering about my speed. I have a core 2 duo @ 2.4 with 3ghz ram and it takes me 6hours for a 1080 uncrop. It seems slower than others results but I just figured faster CPUs were used than mine. Now after your specs I'm wondering why it take me so long. You think other codes are the problem?

deank
13th April 2009, 09:28
Well it actually varies by source.. Sometimes 1280x720 takes about 3-4 hours... sometimes 1920x1080 takes 5 hours. It depends what you use your PC during the conversion. I doubt it can be done faster without significant quality loss.

b66pak
13th April 2009, 17:28
it is be possible to add to the log the x264 and mkvmerge windows output?
_

take a look at this:

http://forum.doom9.org/showthread.php?p=1272585#post1272585

and at kemuri-_9's answer...
_

deank
13th April 2009, 17:38
I know how to do it, but then you won't see anything while it is converting, just a black screen I think. I'll test later.

b66pak
14th April 2009, 19:53
ok...can you do it?
_

deank
14th April 2009, 19:58
Yes, I'll add a checkbox tomorrow.

b66pak
14th April 2009, 20:59
thanks a lot...
_

b66pak
15th April 2009, 19:30
ready?
_

deank
15th April 2009, 19:31
:devil: :eek:

I was in no mood...

pkho
16th April 2009, 13:37
Have done some quick test and works great with 1280 width files. However there are some with odd resolutions like 960x544 that should be 2.35:1 but came out vertically stretched with black bars on all 4 sides. I have uncheck everything in ffdshow. I wonder what I need to set to get a proper Aspect Ratio 1280x720 result. Is the preview window always shows what the output file will look like?

deank
16th April 2009, 13:40
Just scroll thru all RESIZE options in the drop-down list and find the one that fits. Yes, the preview shows how it will look in 16:9.

pkho
16th April 2009, 15:31
Just scroll thru all RESIZE options in the drop-down list and find the one that fits. Yes, the preview shows how it will look in 16:9.

Thanks for the prompt advise. Tried them all but none seems right. The original file is 960x544 which is vertically stretched of a 2.35:1 picture to fill up a 16:9 screen with no black bars. So uncropmkv only sees the input as 16:9 and can't change it back to the correct AR of 2.35:1. My guess is that if there is a resize option of 1280x544 then it might work. Will it?

Detected video: ID#1:V_MPEG4/ISO/AVC:960x544 23.810fps (AR:1.76)

deank
16th April 2009, 15:55
Ok, just download the .exe from the first post and you'll have 1920x800 and 1280x544 in the drop-down resize.

Yes, it will work - I never thought there will be such strange resolutions+AR :) I tested it and it works fine with 960x544 to uncropped 1280x720.

pkho
16th April 2009, 19:36
Ok, just download the .exe from the first post and you'll have 1920x800 and 1280x544 in the drop-down resize.

Yes, it will work - I never thought there will be such strange resolutions+AR :) I tested it and it works fine with 960x544 to uncropped 1280x720.

Awesome! It is working great. You are fast to the point. Wonder if it is possible to enter the height at will then it can cover all possible aspect ratios like 2.40:1 etc. Just a thought. Thanks again.

HDMadness
16th April 2009, 21:03
First of all let me thank you for all your hard work! You did some amazing tools! :thanks:
I'm following the creation of your tools from the beginning and if i'm allowed i would want to request that you add a simple option and make a second pass on encoding possible. I know that you prefer speed over quality on this tool (that is the intended anyway) but it would be amazing if you could add that simple option for the people (like myself) that would like to preserve the most possible quality of the original file. The default option should remain one pass, but if you could add an option for a second pass on encoding that would be great. Thanks in advance! ;)

deank
16th April 2009, 21:17
Yes, I'll add a tab next to Stream list and Queue with x264 options for more experienced users. Just need more time, because other tools (as multiAVCHD) needed more attention last week.

b66pak
16th April 2009, 22:14
please don't forget about the logs...
_

scott1256ca
17th April 2009, 00:20
is uncropMKV available for download anywhere but rapidshare? I can't download from there. From rapidshare I get
"You have reached the download limit for free-users. Would you like more?"
which is an issue with my ISP, and there is nothing I can do about that.

gcrutcher
17th April 2009, 05:39
Hi,
Great product by the way!!!!

I have a movie - 1920x816 - which will not uncrop. Creates a very small file and does it quickly.

If I choose resize: 1280x544, the program works.

Any ideas why at 1920x816 it will not work?

I did download the complete 4mb package BTW.

Thanks,
Gary

deank
17th April 2009, 10:00
It is really strange... Can you post your log and screenshot of QUEUE tab?

gcrutcher
17th April 2009, 10:23
Hi,
Here is the log file and attached screenshot.

[08:28:14] Detected video: ID#1:V_MPEG4/ISO/AVC:1920x816 23.976fps (AR:2.35)
[08:28:14] Video height not compliant (480/576/720/1080)!
[08:28:14] Detected audio: ID#2:A_DTS:audio (48000Hz/6ch) Language: eng
[08:28:28] Will keep track#2, Audio, A_DTS, eng, 48000Hz 6ch
[08:28:28] File queued: grim.track_2.mkv
[08:28:30] Re-encoding with x264 (grim.track_2.mkv)...
[09:34:26] Will keep track#2, Audio
[09:34:26] mkvmerge: -o "F:\HD-Movies\grim.track_2-uncropped.mkv" -a 2 -D -S "F:\HD-Movies\grim.track_2.mkv" --default-duration 0:23.976fps -d 0 "F:\HD-Movies\grim.track_2.264"
[09:36:23] Done!
[09:36:23] Author: Dean Kasabow (dean@deanbg.com)

Thanks,
Gary

deank
17th April 2009, 10:36
Did you try with other 1920x.... videos? There is no reason for what's happening... And I can see that x264 works for about an hour... How does the final -uncropped.mkv look like?

gcrutcher
17th April 2009, 12:54
Hi,

Other 1920 x 1080p movies have been okay.

When I played the video after uncropMKV there was no video.
The file mkv file size was a little larger than DTS audio file.

What I had to do was resize to 1280 x 720. That worked fine.
Took about 3 hours to complete.

Gary

pkho
17th April 2009, 12:54
I also tried on a windows pc with the same result. All files are uncropped with the setting from the last file in queue.

I also have the same problem. Choosing the resize option without (No Change) as advised by deank fixed it for me.

erict
18th April 2009, 02:33
I also have the same problem. Choosing the resize option without (No Change) as advised by deank fixed it for me.

Not for me. I still have to uncrop one by one. :confused:

deank
18th April 2009, 09:21
is uncropMKV available for download anywhere but rapidshare? I can't download from there. From rapidshare I get
"You have reached the download limit for free-users. Would you like more?"
which is an issue with my ISP, and there is nothing I can do about that.

VideoHelp updates regularly my tools: here (http://www.videohelp.com/tools/multiAVCHD). It is better to download the latest multiAVCHD. It contains uncropMKV.

Glorioso
19th April 2009, 15:19
I'm getting a problem, the resulting file has a .h264 extension and i cant play it....

deank
19th April 2009, 15:21
It should be used by mkvmerge to create a mkv file... don't you have an -uncropped.mkv in the output folder?

if not - use tsmuxer or mkvgui and add this .264 file.. add audio and you're done.

Do you have the full download and mkvmerge in \tools folder?

Glorioso
19th April 2009, 16:09
It should be used by mkvmerge to create a mkv file... don't you have an -uncropped.mkv in the output folder?

if not - use tsmuxer or mkvgui and add this .264 file.. add audio and you're done.

Do you have the full download and mkvmerge in \tools folder?

I've downloaded the full package and started from the beginning. I cant use mkvmerge because i stream the file, and the audio i had was of the original file.

Glorioso
19th April 2009, 20:04
Deak, it worked, a clean install and solved the problem. Only problem was thar FFdshow "burned" the subtitles...

deank
19th April 2009, 20:47
Yes, you need to disable all pre/post processing in ffdshow...

Just start your movie and right-click on the ffdshow icon and click on subtitles to disable the plugin... them run uncropmkv and it won't show them.

Glorioso
19th April 2009, 23:40
Yes, you need to disable all pre/post processing in ffdshow...

Just start your movie and right-click on the ffdshow icon and click on subtitles to disable the plugin... them run uncropmkv and it won't show them.

Yes, i know how to do it, didn't remember that, so i'm making ir again.

One other question, i have a problem, after i put the files in AVCHD format normaly they "grow" and will not fit in a DVD5 or DVD9 like the original MKV. How can i calculate the bitrate for the resulting file?

deank
20th April 2009, 09:01
uncropMKV usually creates a bit smaller MKV that after converting to m2ts fits... It depends on your audio but usual overhead is about 7%. RipBot can help you with bitrate calculation.

odwoh
21st April 2009, 18:15
It should be used by mkvmerge to create a mkv file... don't you have an -uncropped.mkv in the output folder?

if not - use tsmuxer or mkvgui and add this .264 file.. add audio and you're done.

Do you have the full download and mkvmerge in \tools folder?

I too am getting an .264 file and also the uncropped .mkv but its very small ..
388,341 movie.mkv
5,005,056,235 movie.264

I tried tsmuxer with both files but the output was unplayable?

deank
21st April 2009, 18:22
Run it again and watch what's going on... There may be x264 exception error and it stops encoding... may be you didn't download the full package... may be your PC is too weak and you don't have enough memory.

b66pak
21st April 2009, 19:09
the .log feature for x264 and mkvmerge will help debugging...do you have time to add it?
_

deank
21st April 2009, 21:21
Yes, I'm testing it. I added "Settings" tab next to Stream list / Queue list... I'll also add 2pass x264 there soon.

odwoh
21st April 2009, 21:49
Run it again and watch what's going on... There may be x264 exception error and it stops encoding... may be you didn't download the full package... may be your PC is too weak and you don't have enough memory.

E8400 with 4Gb Ram running Win7 x64.
Did download full package

Progress of sorts. Tried it on another .mkv movie and got:

6,710,532,196 movieX.mkv
5,226,904,567 movieX.264

Ran the cropped .mkv and it works and looks/sounds great.
I then ran tsmuxer 1.9.9 to output avchd folders. But when I play the movie its now in 4:3 aspect and theres no sound!??

HDMadness
22nd April 2009, 03:35
...I'll also add 2pass x264 there soon.

Thank You! :cool:

deank
22nd April 2009, 09:01
@odwoh: please edit your post and remove filenames of your videos.

odwoh
22nd April 2009, 09:03
E8400 with 4Gb Ram running Win7 x64.
Did download full package

Progress of sorts. Tried it on another .mkv movie and got:

6,710,532,196 movie.mkv
5,226,904,567 movie.264

Ran the cropped .mkv and it works and looks/sounds great.
I then ran tsmuxer 1.9.9 to output avchd folders. But when I play the movie its now in 4:3 aspect and theres no sound!??

I also reran the first movie and got the same results as this one. When I try to convert the .mkv to avchd there is no sound nor does the movie info show any audio???

deank
22nd April 2009, 09:43
What player did you use? Did you play directly the m2ts file or played the whole AVCHD structure?

deank
22nd April 2009, 10:35
the .log feature for x264 and mkvmerge will help debugging...do you have time to add it?
_

uncropMKV.log is generated in exe-path if you use the checkbox in settings. During x264/mkvmerge execution - nothing will be shown on screen.

Download the .exe only from the first post.

CoolHandPuke
22nd April 2009, 10:46
Deank,

I would just like to say that this collection of programs have made my life a whole lot easier.

I DO HAVE A PROBLEM THOUGH

When I am using uncropMKV I never mess with any settings at all, just leave them at default.

So lets say I load a 1280x558 into uncropo and hit cue, then I add say a 1280x566 and cue that, then I press start.

I always end up with one MKV file that has uncropped correctly (to the default 720p) and the other seems to come out wrong like 1280x722 or 1280x718 etc.

Is there any reason for this because the batch uncrop feature is definately a plus but doesnt seem to work when I use the batch method. Single FIles ALWAYS come out perfect?

THanks in advance

deank
22nd April 2009, 11:28
There was a bug in uncropMKV really.

It is fixed now, so download version 0.7 (first post is updated with both full and .exe only).

Dean

odwoh
22nd April 2009, 17:33
What player did you use? Did you play directly the m2ts file or played the whole AVCHD structure?

I use the Elecard AVC HD player and play the m2ts directly.
I am just running uncrop again with the newer 07
Whats another m2ts/avchd player I can try with?
i didn't burn it because I've been making a lot of coasters so far ....

odwoh
22nd April 2009, 23:55
I use the Elecard AVC HD player and play the m2ts directly.
I am just running uncrop again with the newer 07
Whats another m2ts/avchd player I can try with?
i didn't burn it because I've been making a lot of coasters so far ....

Weird ... I download BS player which works with avch.
It played just the audio so I burned it and it works on my BDP-S550.
So I did the same with the other movie but this time BS Player played the video as well as sound. Burned it and its working too!

sweet .... thx for your help

What avchd/m2ts player are others using?

deank
23rd April 2009, 07:17
PowerDVD, Total Media Theater (TMT), Nero Showtime, CorelWinDVD

deank
23rd April 2009, 11:24
I updated the exe and full package to ver 0.8. Two-pass x264 checkbox in settings tab is added.

HDMadness
23rd April 2009, 17:05
I updated the exe and full package to ver 0.8. Two-pass x264 checkbox in settings tab is added.

Once again, thank you! Keep up the good work. ;)

phate89
25th April 2009, 16:37
i have a problem with a cropping of a video.. i have this video with resolution of 1904 x 800 (i attach the avinaptic report) that i need to see on a playstation 3 with avchd..because the resolution itěs not standard i try to uncrop it with uncropmkv with all the combinations, but when i click to start everytime the conversion windows appears and close itself immediatly and give me done after less than one second! obviously he don't finish the work..but it only create a file video.264 empty.. what i can do?

deank
25th April 2009, 20:04
Have you had successful re-encodings with uncoprMKV before?

Try to download the complete setup from the fist page. This resolution shouldn't be a problem for uncropMKV.

phate89
25th April 2009, 20:08
yes i successful reencode before..and i download the complete setup..same result..doesn't work

deank
25th April 2009, 20:11
Do you see the preview of your movie? Can you enable [x] Redirect output to log option in settings and post your log?

phate89
25th April 2009, 20:20
no.. i can't see the preview...this is the log file (is the .log file in the uncropmkv directory right?)
avis [error]: unsupported input format (DIB )
x264 [error]: could not open input file 'D:\Download\uncropMKV\tools\20090425-202106-convert.avs'
mkvmerge v2.5.3 ('Boogie') built on Mar 7 2009 15:00:39
Error: The file 'G:\Video\Films\video.264' has unknown type. Please have a look at the supported file types ('mkvmerge --list-types') and contact the author Moritz Bunkus <moritz@bunkus.org> if your file type is supported but not recognized properly.

deank
25th April 2009, 20:44
If you load another mkv - do you see the preview? There is something wrong and avisynth doesn't parse proper frames to x264.

phate89
25th April 2009, 20:49
no with unother video i can see the preview..it's not the first time i use uncropmkv and your programs and reencoding with uncropmkv i never had problems..

phate89
25th April 2009, 23:21
i try to extract it with mkvextract,mux and cut with mkvmerge..i can do all that things...only the uncrpping with uncropmkv fails :(

fbimatrix
28th April 2009, 05:16
After I reinstalled uncrop , I cant convert any more movies , they start , and closes quickly , but no conversion is made , what may be happening?

deank
28th April 2009, 09:18
Nothing is changed in uncropMKV. You must have done something with your TOOLS folder or ffdshow/avisynth.

fbimatrix
28th April 2009, 22:58
I continue to have the same problem , I ve done a clean install and continues to dont convert anything , this is the log ,


[17:57:13] Detected audio: ID#1:A_AC3:audio (48000Hz/6ch) Language: eng
[17:57:13] Detected subtitles: ID#2:S_TEXT/UTF8 Language: eng
[17:57:13] Detected video: ID#3:V_MPEG4/ISO/AVC:1280x720 23.976fps (AR:1.78)
[17:57:23] Detected video: ID#1:V_MPEG4/ISO/AVC:1280x544 23.976fps (AR:2.35)
[17:57:23] Video height not compliant (480/576/720/1080)!
[17:57:23] Detected audio: ID#2:A_AC3:audio (48000Hz/6ch) Language: eng
[17:57:23] Detected subtitles: ID#3:S_TEXT/UTF8 Language: eng
[17:57:25] Will keep track#2, Audio, A_AC3, eng, 48000Hz 6ch
[17:57:25] Will keep track#3, Subtitles, S_TEXT/UTF8, eng
[17:57:25] File queued: xxs.mkv
[17:57:25] Re-encoding with x264 xxs.mkv)...
[17:57:25] Will keep track#2, Audio
[17:57:26] Will keep track#3, Subtitles
[17:57:26] mkvmerge: -o "C:\xxs.mkv" -a 2 -D -s 3 "C:\xxs.mkv" --default-duration 0:23.976fps -d 0 "C:\bluray\xxs.264"
[17:57:26] Done!
[17:57:26] Author: Dean Kasabow (dean@deanbg.com)

deank
28th April 2009, 23:35
1st) remove your log because it contains downloaded content!
2nd) we'll see... but mkv with 2 video tracks is not supported I guess

fbimatrix
29th April 2009, 00:20
1st) remove your log because it contains downloaded content!
2nd) we'll see... but mkv with 2 video tracks is not supported I guess

Sorry , but I tryed to reencode the same videos that I 've converted before after I installed this new version , but it dont reencode either , I dont know whats is happening , I will try to uncrop at my notebook , thankz for the attention , and continue with Your good work to help us.

odwoh
30th April 2009, 20:13
Are there any plans to be able to trim the beginning as well as the end?

deank
30th April 2009, 22:44
I never thought about it, but I will test and will let you know.

Puff Puff Give
1st May 2009, 01:37
Thanks deank for putting together such a handy utility!

I have a question. I have an input file that is 1280x680 @ 25fps with DTS audio. If I uncrop to 720p, can I keep it at 25fps or do I have to change it to 23.976?

odwoh
1st May 2009, 01:46
I never thought about it, but I will test and will let you know.

cool ...
this would help too in splitting a file over 2 disks

This is a great and useful program .... thx for all the work

deank
1st May 2009, 10:35
I have a question. I have an input file that is 1280x680 @ 25fps with DTS audio. If I uncrop to 720p, can I keep it at 25fps or do I have to change it to 23.976?

You don't need to change the frame rate. Just leave "Change FPS" drop-down to "Original".

deank
1st May 2009, 12:27
Are there any plans to be able to trim the beginning as well as the end?

It may be easier to add "SPLIT" option in settings with predefined sizes like "No split, 700MiB, 1400MiB, 2GiB, 4GiB, 8GiB"... If using the SPLIT - TRIM will not be available. User can either select to split the output or to use a TRIM END.

tk3
2nd May 2009, 02:30
Hi Deank

unfortunately uncropMKV seems not to be working on my computer
everything from avisynth and ffdshow ist installed and working(with other programs like megui encoder)
When I load the mkv file into the program: "video properties" doesn't show anything besides n/a. It somehow doesn't read the file!? I suspect is has something to do with the directshow filters (although otherwise they seem to be working). Any idea?
Anyway thanks for multiAVCHD, works like a charm,terrific program!
No problems here. A great item would be popup menus,but probably a big hassle to program.

Has anyone an idea?
Thanks and bye

Have you found a solution? I have the same problem. I installed uncropmkv (full pack), AviSynth ffdshow and haali are installed too. mkvinfo is in the tool folder.

But if I load a mkv I have no Video properties and in Uncrop to: only 720x480.
File is a mkv.
eneral #0
Complete name : D:\temp\no.mkv
Format : Matroska
File size : 9.81 GiB
PlayTime : 1h 49mn
Bit rate : 12.8 Mbps
Encoded date : UTC 2009-03-10 22:54:53
Writing application : mkvmerge v2.4.2 ('Oh My God') built on Jan 18 2009 17:30:28
Writing library : libebml v0.7.7 + libmatroska v0.8.1

odwoh
2nd May 2009, 19:50
Now that I've been prefecting my technique and working with uncropp and multiavchd I am finding that the ones that are uncropped to 1920x1080 are not filling the screen completely!
I've been using all the default settings in uncropmkv.

I know you mentioned using the Crop T/B option setting to 4 etc but its not clear if this is the issue or not? Also other than trying it on my BD player/Tv is there a way to tell if it is correct?

And finally as a result of this I am not sure if the ones uncropped to 1280x720 are filling as much of the screen either??

thx

deank
2nd May 2009, 19:52
Final resolution is based on the RESIZE drop-down + CROP T/B value. Check your files with mediainfo and see what it will report. If it says it is 1920x1080 - then it is. Or simply reload the output in uncropMKV - it will report it too.

odwoh
2nd May 2009, 19:55
Has anyone an idea?
Thanks and bye

Have you found a solution? I have the same problem. I installed uncropmkv (full pack), AviSynth ffdshow and haali are installed too. mkvinfo is in the tool folder.

But if I load a mkv I have no Video properties and in Uncrop to: only 720x480.
File is a mkv.

I did have that problem once, too, but after reinstalling avisynth it worked. I am running Win7 by the way and I found after doing the latest update(7100) that I had to reinstall AviSynth again??

Try installing AviSynth from Administrator option if in Vista/Win7.

tk3
2nd May 2009, 20:35
I have avisynth uninstalled and new installed. the same problem. I notized that multiavchd had an error to whith reading mkv.

[20:34:37] mkvinfo did not return valid information!
[20:34:37] Not enough data for meta creation!

but both tool folders contains mkvinfo.

deank
2nd May 2009, 20:38
It is possible if you're using localized version (non-english) of mkv tools. ONLY ENGLISH version is supported.

odwoh
2nd May 2009, 20:41
Final resolution is based on the RESIZE drop-down + CROP T/B value. Check your files with mediainfo and see what it will report. If it says it is 1920x1080 - then it is. Or simply reload the output in uncropMKV - it will report it too.


I've found 2 uncropped movies 1 doesn't fill the screen and the other does. the Mediainfo below does not appear to be any different (didn't include audio part)??

Not Full Screen Screen
Complete name : h:\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : BluRay Video
File size : 3.45 GiB
Duration : 58mn 46s
Overall bit rate : 8 396 Kbps
Maximum Overall bit rate : 35.5 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Duration : 58mn 43s
Bit rate : 7 605 Kbps
Nominal bit rate
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.153
Writing library
Encoding settings


Full Screen

Complete name : h:\BDMV\STREAM\00000.m2ts
Format : BDAV
Format/Info : BluRay Video
File size : 7.91 GiB
Duration : 1hr 59 min
Overall bit rate : 9 480 Kbps
Maximum Overall bit rate : 35.5 Mbps

Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Duration : 1h 59mn
Bit rate : 7 560 Kbps
Nominal bit rate : 7 598 Kbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16/9
Frame rate : 23.976 fps
Resolution : 24 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.152
Writing library : x264 core 67 r1139M 1024283
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=5 / psy_rd=0.0:0.0 / mixed_ref=1 / me_range=12 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=3 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=24 / keyint_min=1 / scenecut=40 / rc=cbr / bitrate=7598 / ratetol=1.0 / qcomp=0.50 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=30000 / vbv_bufsize=30000 / ip_ratio=1.10 / pb_ratio=1.10 / aq=1:1.00


Any ideas on why one fills the screen and not the other one??

deank
2nd May 2009, 20:44
What do you mean by 'filling the whole screen'?

If you uncropped a movie it will have some black bars top/bottom. It may show as 1080p but some pixels can be black - that's the general idea... Or may be I'm missing something.

odwoh
2nd May 2009, 20:55
What do you mean by 'filling the whole screen'?

If you uncropped a movie it will have some black bars top/bottom. It may show as 1080p but some pixels can be black - that's the general idea... Or may be I'm missing something.

On that 2nd movie that fills the whole screen there are no black bars on the top and bottom. Also the size of the black bars seem to vary too depending on the movie. Would the original a/r like 1:85, 2:35, etc have anything to do with this?

deank
2nd May 2009, 20:59
What player are you using?

All uncrop options are based and rely on the presumption you've DISABLED all pre/post processing in your ffdshow.

odwoh
2nd May 2009, 21:06
What player are you using?

All uncrop options are based and rely on the presumption you've DISABLED all pre/post processing in your ffdshow.

Sony BDP-S550
ffdshow r2895. I just installed it and left it alone

tk3
2nd May 2009, 22:58
It is possible if you're using localized version (non-english) of mkv tools. ONLY ENGLISH version is supported.

Thank you for you help. MKVtoolnix was the reason. but I found nothing about a spezial mkvtoolnix in english.

desray
3rd May 2009, 04:07
Hi deank, I'm having problem with the latest uncrop mkv (ver.08)...I have a clip with resolution (1280 x 536). To make it AVCHD compliant, I have to re-crop it to 1280 x 720 (apparently) :P
I've used demuxing function from TSMuxer and used to the video segment (i.e. video.h264) to perform the re-crop...but when I start the cropping function...nothing happens even though an output file has been generated (with 0 kb in size)

In the past, that is ver.0.6, I have no problem performing the un-cropping function...so what could be the cause of it? Baffled and in need of your expertise. Is it because of a new version of complemtary utility that I need to upgrade? Say for instance a newer version of FFDShow or AVISynth etc with this newer version?

desray
3rd May 2009, 04:19
Never I have solved the problem - again have to uninstall FFDShow and reinstall again...

deank
3rd May 2009, 11:08
You need to use a MKV file for input. 264 also works but framerate may get wrong.

I changed nothing in version 0.8 (only added second pass option). Just tested it with 1280x568 and it uncropped it fine.

If uncropMKV stopped working for any of you - the problem is with your system/software - nothing in the processing part of uncropmkv was changed.

fbimatrix
4th May 2009, 19:18
You need to use a MKV file for input. 264 also works but framerate may get wrong.

I changed nothing in version 0.8 (only added second pass option). Just tested it with 1280x568 and it uncropped it fine.

If uncropMKV stopped working for any of you - the problem is with your system/software - nothing in the processing part of uncropmkv was changed.

When I used the version 0.2 everything worked fine , but I installed the windows 7 build 7100 and From there I cant crop any file , I installed in a difent pc and the same error , I dont know what may be happening here. the conversion dont start

deank
4th May 2009, 19:21
Another user reported that with win7 he needed to reinstall avisynth. You need to have avisynth + directshow decoder (ffdshow or coreavc) + haali media splitter. Otherwise it won't work.

fbimatrix
4th May 2009, 22:54
Another user reported that with win7 he needed to reinstall avisynth. You need to have avisynth + directshow decoder (ffdshow or coreavc) + haali media splitter. Otherwise it won't work.

YES found the soultion , Is not only reinstall , I ve installed with the option run as administrator and worked , so this is it , THANK YOU for your great job , you help us a lot with this programs.

Alfeuss
5th May 2009, 02:13
1 pass crf option in future updates? This would be great! Thx.

tyee
5th May 2009, 16:30
Yes, I would like one pass crf also even though this app was for quick re-encoding. I use USB drive so size doesn't matter. I prefer using uncropMKV instead of megui for all my re-encoding!

Also is it possible to see the command line switches so we could add/delete certain switches for personal testing. If these two additions were made it would be perfect I think!

deank
5th May 2009, 16:42
Yes, I can add crf and a x264 switches editable box so you can alter them in any way you wish.

tyee
5th May 2009, 17:20
Much appreciated Dean! Thanks for all your work.

Eric B
6th May 2009, 12:59
Hello,
along with multiAVCHD topic, I discover this one, and I wonder what is actually done: it seems the video is fully re-encoded, which will generate a quality loss. Will it be possible to "just" encode the black bands and mux the original video with them?
I have more knowledge in picture as in video, and know that some programs can save jpg while keeping the exact 8x8 block and only crop or add new blocks. Is that also possible with x264 videos?
On the other hand, the full reencode is probably required when changing level / frame ref, etc. This is done quite fast: ~20 fps on a Core2Duo @ 2.8Ghz with a 1280x528 mkv uncropped to 1280x720.

I am testing multiAVCHD for a panasonic BD35 player. It seems that there are some tolerance in the resolution: 1920x1072, 720x432 (11% to 480), 704x576 videos were played fine, but a 1280x528 not (36% to 720). What is the max tolerance?

Finally, a suggestion for uncropMKV: we have a "trim end" option. It would be nice to have a "trim begin" option too, in order to test only a particular part of a full video.
EDIT: I forgot to thank you for the tool: it does a nice job already...

deank
6th May 2009, 13:02
About resolutions:

http://forum.doom9.org/showthread.php?p=1235782#post1235782

http://forum.doom9.org/showpost.php?p=1236068&postcount=322

About adding borders: no, it is not as easy as with static jpg files.

Eric B
6th May 2009, 14:14
thanks for the fast answer and the links (thus, 1280x584++), I may try your videos on the bd35...
I've just looked at a 7min "uncropped" video. Although it is very subtle, I can see a little loss in quality by the reencoding. Thus, I will prefer remuxing the video in a mp4 file for the Xbox360 (and re encoding the audio) instead of re encoding the video for the BD35, or at least compare the 2 outputs, I suppose the upscaling of the BD35 to be much better than the one of the Xbox360.

turbojet
7th May 2009, 12:26
deank: Do you have any plans on making this a full featured encoding frontend?
I have a lot of thoughts if you do and there are some key things that are missing/wrong in current solutions with no real plans of adding/fixing as far as I know.

I found a few cosmetic bug that if one exe is missing in tools folder it lists all exe's are missing.

Also vbv might be too high for dvd at 30 mbps in some situations, theoretically dvd's are read at 30-32 mbps and you have to consider audio, sub and overhead as well. I've found a 25 mbps spike to be safe so far but in most realistic situations 20 mbps or so might be safer and have no affect on anything except when encoding above 20 mbps average bitrate.

deank
7th May 2009, 12:31
I was thinking of keeping it simple and quick for those willing to sacrifice some quality but get it done in one-click.

Post your suggestions and I'll look into it.

turbojet
7th May 2009, 12:43
OK here it goes

- output size (custom, DVD5, DVD9, BD25) with within ~10 MB calculation
- drag and drop input
- restrict ref to 4 when outputting 1920x1080 and 1440x1080
- x64 x264 through avs2yuv+pipebuf support
- process priority option
- external audio aupport
- keep audio (core and HD) or encode audio to 192/384/448/640 AC3, 768/1536 DTS (would be a first with dts encoding)
- external srt/txt/ass/ssa/sup support
- internal/external vobsub support, bdsup2sub can convert to sup.
- resize sup with bdsup2sub or other way (would be a first)
- encoding options: bpyramid, deblock, me, subme, psy-rd:trellis, trellis, long (240/24) or short (24/1) gop (a custom line works too like you mentioned)
- chapter editor that loads mkv, dvd, tsmuxer formats (would be a first)
- convert chapter file to x264 qp_file to insert keyframe on the exact frame (would be a first)
- BD input which selects largest playlist by default with an option to choose others
- output file/folder option
- ts/m2ts/avchd/bd/mp4 output
- with avchd/bluray it outputs all directories with option to remove empty directories for Samsung players only (would be a first since BD-RB changed)
- trim start (+1 to what Eric B mentioned already) (would be a first)
- avs/m2ts/mpls/mp4 input
- more robust crop that allows adjustable mod2 in preview, white border is crop or something on all 4 sides
- compression check by crf 18-20 on 3-5% of the input selecting a small range of frames every so often like gordianknot does and gives a percentage compared to resolution set. (would be a first, sx264 is a little different)
- option to calculate to avchd/bd size but output to mkv as mkv is still friendlier on computers and it promotes mkv to avchd/bd convertors
- suspend/resums with a program like process (http://www.beyondlogic.org/consulting/processutil/processutil.htm)

Also is resize to non-native resolutions useful to anyone?
If not maybe they can be removed so it contains simpler avchd outputs.

odwoh
9th May 2009, 02:16
I've been using uncropmkv to make sure the resolution of a movie has been compliant as I was having problems with movies not playing that were not compliant.

But...... I've now done 2 movies without using uncropmkv but instead just used BDRebuilder, to resize them to fit, and they play fine and fill the whole screen!
This latest one was 1920x816. BDRebuilder doesn't change AR as its still the same.

So ... why or what does BDRebuilder do thats different from uncropmkv so that non-compliant movies work? And how may this effect PQ as its not 1920x1080?

thx

Moritzio
9th May 2009, 03:47
I tried to uncrop an mkv today and all worked well, but my output files have progress info in the upper left corner of the actual video image, below the added top black bar:
Current frame number
CPU load %
input size
output size

Where do I find a setting to turn that off?
From the log, input was V_MPEG4/ISO/AVC:1920x816 23.976fps (AR:2.35)

I checked this information is not on the input file (when played in MPC-HC), but is on the preview screen.

nevermind - uninstalled and reinstalled avisynth and ffdshow and the onscreen display is now gone.

turbojet
9th May 2009, 07:55
I've been using uncropmkv to make sure the resolution of a movie has been compliant as I was having problems with movies not playing that were not compliant.

But...... I've now done 2 movies without using uncropmkv but instead just used BDRebuilder, to resize them to fit, and they play fine and fill the whole screen!
This latest one was 1920x816. BDRebuilder doesn't change AR as its still the same.

So ... why or what does BDRebuilder do thats different from uncropmkv so that non-compliant movies work? And how may this effect PQ as its not 1920x1080?

thx

It places a 1920x1080 video in the stream folder and instructs the player to play it before playing the movie. This works for some players but not others, see this C1080 column in this thread (http://forum.doom9.org/showthread.php?t=146339) to see which players have been tested and work or don't work. Please report if your player doesn't have results yet.

I tried to uncrop an mkv today and all worked well, but my output files have progress info in the upper left corner of the actual video image, below the added top black bar:
Current frame number
CPU load %
input size
output size

Where do I find a setting to turn that off?
From the log, input was V_MPEG4/ISO/AVC:1920x816 23.976fps (AR:2.35)

I checked this information is not on the input file (when played in MPC-HC), but is on the preview screen.

nevermind - uninstalled and reinstalled avisynth and ffdshow and the onscreen display is now gone.

I see you've fixed it now, but that is ffdshow's on screen display.

odwoh
9th May 2009, 17:18
[QUOTE=turbojet;1283150]It places a 1920x1080 video in the stream folder and instructs the player to play it before playing the movie. This works for some players but not others, see this C1080 column in this thread (http://forum.doom9.org/showthread.php?t=146339) to see which players have been tested and work or don't work. Please report if your player doesn't have results yet.

This is interesting. I put a note in that thread.
So ... using this BDR method the screen is filled completely without any bars... BUT an uncropped 1920x1080 has horizontal bars and even when using Zoom there are still bars though smaller?? I find that BDR takes usually 2x longer the uncropmkv.
So is there anyway to implement this BDR stream folder in uncropmkv?

thx

turbojet
9th May 2009, 17:26
Thanks updated.

I'm not too sure what you are saying but is it BD-RB way you get bad aspect ratio or some of the picture is missing?

There is a way to do the 1920x1080 video before cropped video trick without re-encoding in TSMuxer.

odwoh
9th May 2009, 18:06
Thanks updated.

I'm not too sure what you are saying but is it BD-RB way you get bad aspect ratio or some of the picture is missing?

1920x 800/808/816 etc Outputted by BD-RB when played fills the complete screen without anybars.
1920x 800/808/816 etc uncropped to 1920x1080 by uncropmkv has horizontal bars.

There is a way to do the 1920x1080 video before cropped video trick without re-encoding in TSMuxer.

Cool ... what is it?

thx

turbojet
9th May 2009, 18:12
So either video is cut off on the sides of the BD-RB output or everything looks tall and skinny, do you know which one?

TSMuxer (http://smlabs.net/tsmuxer_en.html) is the muxer used in BD-RB and popBD

odwoh
9th May 2009, 19:37
So either video is cut off on the sides of the BD-RB output or everything looks tall and skinny, do you know which one?

TSMuxer (http://smlabs.net/tsmuxer_en.html) is the muxer used in BD-RB and popBD

hmmm... this is where it gets confusing!
some of the BD-RB movies look fine and a few look tall and skinny.
I thought if its 1.85 then it should look normal and be full screen?
Is it when theres some other ratio like 2.35 etc that these issues come up? If so then I would think that uncropmkv will give the truest results for ratios other than 1.85?

deank
9th May 2009, 20:00
I can't understand how BD-RB can output weird AR if you're using it to backup a Blu-ray disc.

If you're trying to feed it with something else (your own MKV files/encodes "converted" to blu-ray like structure) - the problem is with you.

uncropMKV is really-really simple tool and just adds borders/changes AR - nothing else.

turbojet
10th May 2009, 09:45
hmmm... this is where it gets confusing!
some of the BD-RB movies look fine and a few look tall and skinny.
I thought if its 1.85 then it should look normal and be full screen?
Is it when theres some other ratio like 2.35 etc that these issues come up? If so then I would think that uncropmkv will give the truest results for ratios other than 1.85?

You are always safer with a 1920x1080, 1440x1080, 1280x720, 720x576 or 720x480 video file with borders if needed.

canarias
13th May 2009, 00:20
Hello, I have a .mkv container with following basics:

VIDEO RESOLUTION: 1080p ( 1920x816)
.. VIDEO CONTAINER: Matroska ( MKV )
.. VIDEO BITRATE: 10100

.. AUDIO 1: German DTS 786kbps
.. AUDIO 2: /

.. SUB 1: German Forced

I tried a lot of time to uncrop this fil, but always the final file is async of 10 seconds. The original file is OK!

Do somebody have a solution for me, please?

Just for Info: All Tools are installed correctly.

Thx

canarias

deank
13th May 2009, 08:24
It is possible that there is audio delay, which is not handled properly by uncropMKV (it still uses mkvinfo, not mediainfo).

Can you check what mediainfo reports about your original file?

canarias
13th May 2009, 09:56
Mediainfo:

[08:54:34] Detected video: ID#1:V_MPEG4/ISO/AVC:1920x816 23.976fps (AR:2.35)
[08:54:34] Video height not compliant (480/576/720/1080)!
[08:54:34] Detected audio: ID#2:A_DTS:audio (48000Hz/6ch) Language: ger
[08:54:34] Detected subtitles: ID#3:S_TEXT/UTF8 Language: ger

greets

deank
13th May 2009, 10:03
This is not mediainfo :)
You'll find mediainfo.exe in tools folder.

gcrutcher
14th May 2009, 02:34
Hi,

I have been using uncropMKV for some time now and it is a great product.

But...some videos (1920x800, 1920x816, etc.) are not getting uncropped.

When I run uncropMKV the program processes the video at 36.xx fps, well beyond the 23.976 fps of the movie. The time to completion is about 1 hour and the filesize is about 16-20% of the original.

Normally, the fps is around 7-10 when the program is actually uncropping the video and takes about 5 hours to complete.

For some movies I have used an earlier version which has worked fine.

I am now faced with a situation where ver.05 nor ver.08 does not uncrop the moview (1920x800).

I have downloaded the complete uncropMKV package. I uninstalled ffdshow and reinstalled it, making no changes to the configuration.

I have even tried using MKVextract and MKV merge to remake the MKV file, still with no success.

In version .08, I have also tried 2-pass, which has worked in the past.

Note: the movie does play in MKV form and when exploded to BD file form (*.m2ts file).

I am beginning to think the problem lies with the other programs in the package. I say this because one video would not uncrop in v.08, but would in ver.05.

Any suggestions?

Thanks,
Gary