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

fbimatrix
28th April 2009, 23: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, 19:13
Are there any plans to be able to trim the beginning as well as the end?

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

Puff Puff Give
1st May 2009, 00: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, 00: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, 09: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, 11: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, 01: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, 18: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, 18: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, 18: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, 19: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, 19:38
It is possible if you're using localized version (non-english) of mkv tools. ONLY ENGLISH version is supported.

odwoh
2nd May 2009, 19: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, 19: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, 19: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, 19: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, 20: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, 21: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, 03: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, 03:19
Never I have solved the problem - again have to uninstall FFDShow and reinstall again...

deank
3rd May 2009, 10: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, 18: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, 18: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, 21: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, 01:13
1 pass crf option in future updates? This would be great! Thx.

tyee
5th May 2009, 15: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, 15: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, 16:20
Much appreciated Dean! Thanks for all your work.

Eric B
6th May 2009, 11: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, 12: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, 13: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, 11: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, 11: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, 11: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, 01: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, 02: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, 06: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, 16: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, 16: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, 17: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, 17: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, 18: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, 19: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, 08: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
12th May 2009, 23: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, 07: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, 08: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, 09:03
This is not mediainfo :)
You'll find mediainfo.exe in tools folder.

gcrutcher
14th May 2009, 01: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