Log in

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


Pages : 1 2 [3] 4 5 6 7

deank
7th April 2009, 16: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, 16: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, 16: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, 16: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, 17:01
right.. uncropMKV was not supposed to work with other types...

vacano
7th April 2009, 17: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, 22: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, 01: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, 06:13
1920x1088 doesnt have to be cropped, they work fine as they are on PS3 at least.

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

coledow
10th April 2009, 19: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, 19: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, 17: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, 18: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, 20: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, 20: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, 20:59
Cool, I was just wondering. I've used sharpen() at times too.

erict
11th April 2009, 21: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, 21:46
Okay, let me check this.

erict
11th April 2009, 22: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, 22: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
11th April 2009, 23: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
11th April 2009, 23: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, 11: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, 13: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, 14: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, 14: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, 14: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, 14: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, 15: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, 15: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, 15:19
If i do this all files size is now 1920x1080 like the last one.

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

deank
12th April 2009, 15: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, 15: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, 15: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, 15: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, 15: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, 06: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, 08: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, 16: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, 16: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, 18:53
ok...can you do it?
_

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

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

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

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

I was in no mood...

pkho
16th April 2009, 12: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, 12: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, 14: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)