[RESOLVED] CLIP + cropping
Re: CLIP + cropping
Good eyes, thanks DJ.
Re: CLIP + cropping
Changed avatar again?
Re: CLIP + cropping
Bullwinkle was feeling left out.
Re: CLIP + cropping
Yogi felt left out too, he is smarter than the average bear after all
Did you mean to remove "Always Crop 1088 -> 1080"?
Edit, it still seems to crop to 1080
Did you mean to remove "Always Crop 1088 -> 1080"?
Edit, it still seems to crop to 1080
Re: CLIP + cropping
That option never made any sense so you can pretend that it is always on. There's no reason not to always honor the stream's coded display area.
Re: CLIP + cropping
Seems to be working fine
Please note that the mod 2 crop worked on this sample
mediainfo report and script
Please note that the mod 2 crop worked on this sample
mediainfo report and script
Code: Select all
General
Unique ID : 43861704572585296599800650762977012602 (0x20FF74FF94230A62181AE663D95FEB7A)
Complete name : W:\TEMP\FANBOYS.mkv
Format : Matroska
Format version : Version 4
File size : 5.36 GiB
Duration : 1 h 29 min
Overall bit rate : 8 557 kb/s
Encoded date : UTC 2018-12-07 23:46:33
Writing application : mkvmerge v28.2.0 ('The Awakening') 64-bit
Writing library : libebml v1.3.6 + libmatroska v1.4.9
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4.1@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 1 h 29 min
Bit rate : 7 915 kb/s
Width : [color=#FF0000]1 918[/color] pixels
Height : [color=#FF0000]1 078[/color] pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Bits/(Pixel*Frame) : 0.160
Stream size : 4.96 GiB (92%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Code: Select all
import vapoursynth as vs
core = vs.get_core()
core.std.LoadPlugin("C:/Users/LUIS/Desktop/CropRedesign/DGDecodeNV.dll")
clip = core.dgdecodenv.DGSource(r'I:\FANBOYS.dgi', ct=2, cl=2, fieldop=0)
clip.set_output()
Re: CLIP + cropping
Can I have that sample, please?
Re: CLIP + cropping
I'll cut a clip and upload it
Edit
Have a 5 minute clip from sample.
I'll upload it in a couple of hours.
Do you want it on your FTP server
Edit
Have a 5 minute clip from sample.
I'll upload it in a couple of hours.
Do you want it on your FTP server
Re: CLIP + cropping
Sure, FTP server is fine. Thanks.
Re: CLIP + cropping
Thanks, Don, I am currently testing.
It seems that I can enforce mod2 incl. top and left already right now. In my tests with the value 2 for ct and cl it simply did not crop. From the user perspective this is not what would be expected, however it is better than to force mod4 and then at some point depending on the driver version to remove that restriction. And of corse it would be worse if mod2 would crash it or would detroy the video, but that does not seem to be the case.
Any additional thoughts?
OT: I do not get anymore mail messages for topics I have subscribed to. The mail adress I use here is ok as I receive other mails (and no, they are not in my spam folder). Is that only me or a general issue?
It seems that I can enforce mod2 incl. top and left already right now. In my tests with the value 2 for ct and cl it simply did not crop. From the user perspective this is not what would be expected, however it is better than to force mod4 and then at some point depending on the driver version to remove that restriction. And of corse it would be worse if mod2 would crash it or would detroy the video, but that does not seem to be the case.
Any additional thoughts?
OT: I do not get anymore mail messages for topics I have subscribed to. The mail adress I use here is ok as I receive other mails (and no, they are not in my spam folder). Is that only me or a general issue?
Re: CLIP + cropping
Let me know if you have the file
Re: CLIP + cropping
Yes, that is what I expect. But gonca reported otherwise so I asked for the stream to check that.
I agree. We can go with a warning in the manual and hope for a timely fix from nVidia.From the user perspective this is not what would be expected, however it is better than to force mod4 and then at some point depending on the driver version to remove that restriction. And of course it would be worse if mod2 would crash it or would destroy the video, but that does not seem to be the case.
Any additional thoughts?
I'll check into it and report back. I wasn't aware of any issues.OT: I do not get anymore mail messages for topics I have subscribed to. The mail address I use here is ok as I receive other mails (and no, they are not in my spam folder). Is that only me or a general issue?
Re: CLIP + cropping
For gonca's stream, it behaves as I expected: cl=2 does not crop anything from the left, but due to the reduction in width by 2, it effectively crops the right by 2.
Re: CLIP + cropping
Okay, so the crop is actually being shifted to the other side?
My eyesight ain't what it used to be, oy vey.
My eyesight ain't what it used to be, oy vey.
Re: CLIP + cropping
You have to user a viewer that doesn't change anything together with a screen magnifier where needed.
Re: CLIP + cropping
Changes released in slipstream 163.
Re: [RESOLVED] CLIP + cropping
I started using 2053.165 after old 2053 (first release I guess) and got a problem with dgindexnv. I opened .m2ts from bluray and made a .dgi. Coded area is 1920*1088 in both cases. First release crops 8 pixels from bottom and 1920*1080 frame looks normal in avisynth, equal to ffvideosource, for example. But release 165 crops 16 pixels from bottom and then resizes to 1920*1080. So it looks stretched in avisynth. In the dgindexnv window frame looks normal at the same time. I'll upload screens tomorrow.
No templates or cropping in dgsource() were used.
No templates or cropping in dgsource() were used.
Re: [RESOLVED] CLIP + cropping
What is your script?
Re: [RESOLVED] CLIP + cropping
Loadplugin(..)
Dgsource(".dgi")
Dgsource(".dgi")
Re: [RESOLVED] CLIP + cropping
OK, thank you. I have an idea what is going on. But please post your stream and screenshots so I can test my theory.
Re: [RESOLVED] CLIP + cropping
Here are screens
and video
https://dropmefiles.com/Po4vz
https://yadi.sk/i/8GaX8b-uEl3j1w
(One minute from Waterworld TV Cut without audio and subs).
If we open "cropping tool" in menu there's bottom crop 8 pixels already. To fix 1088 problem I guess. It seems it crops twice.
And there's another problem. With mkv. Coded size is always wrong. Height is always bigger then in "display size". Difference is that "bottom crop" in cropping tool. And video get cropped and stretched after dgsource.
and video
https://dropmefiles.com/Po4vz
https://yadi.sk/i/8GaX8b-uEl3j1w
(One minute from Waterworld TV Cut without audio and subs).
If we open "cropping tool" in menu there's bottom crop 8 pixels already. To fix 1088 problem I guess. It seems it crops twice.
And there's another problem. With mkv. Coded size is always wrong. Height is always bigger then in "display size". Difference is that "bottom crop" in cropping tool. And video get cropped and stretched after dgsource.
Re: [RESOLVED] CLIP + cropping
Thank you. Can you please test this revised version of DGDecodeNV.dll (64-bit)?
http://rationalqm.us/misc/DGDecodeNV_Keyser78.dll
http://rationalqm.us/misc/DGDecodeNV_Keyser78.dll
Re: [RESOLVED] CLIP + cropping
It works perfect now (Coded size in mkv is wrong but result is ok).
Note: I've been tested 32-bit version before.
Note: I've been tested 32-bit version before.
Re: [RESOLVED] CLIP + cropping
Good, thanks. Can you give me an MKV that you think shows wrong coded size? Coded size is an elementary stream thing, not a container thing, so being MKV should be irrelevant.