This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

odd numbers to crop
#1
Why can not use odd numbers to crop a movie in Avisynth setting?
Not a way to do this?
Reply
#2
Since most input is YUV12 (4:2:0) and as such only allow mod2 cropping at it's lowest Hybrid by default uses a +2 when using the spin box.
You can manually use uneven values if your are sure your content supports it.
Hybrid does no automated conversion to RGB atm. to allow odd cropping for all color spaces.
I could probably add this,... note that the resulting resolution needs to be 4:4:4 or RGB to support uneven resolutions. (+ not sure whether all encoders do support uneven resolution)


Cu Selur
------
offline 02.-07. July, https://www.rockharz-festival.com/ Big Grin
Reply
#3
Send you a link to a dev version which supports odd crop values.

Cu Selur
------
offline 02.-07. July, https://www.rockharz-festival.com/ Big Grin
Reply
#4
(10.03.2018, 00:44)Selur Wrote: Send you a link to a dev version which supports odd crop values.

Cu Selur

thanks a lot.
This feature is also released in the final release?
Reply
#5
Quote:This feature is also released in the final release?
I don't use it so I'm waiting from feedback from you. If it doesn't work it won't make into the next release. If it does work as it should, it will be kept.

Cu Selur
------
offline 02.-07. July, https://www.rockharz-festival.com/ Big Grin
Reply
#6
(10.03.2018, 12:28)Selur Wrote:
Quote:This feature is also released in the final release?
I don't use it so I'm waiting from feedback from you. If it doesn't work it won't make into the next release. If it does work as it should, it will be kept.

Cu Selur

I tried this feature on a few movies and did not work!
I set the crop top and bottom on 137, but the software crop 136 from top and 138 from bottom!
Reply
#7
Need more details, because when I set 137 for top&bottom crop, I get:

in Vapoursynth:
clip = core.std.CropRel(clip=clip, left=0, right=0, top=137, bottom=137)
in Avisynth:
Crop(0,137,0,-137)
FFmpeg uses:
-vf crop=1280:446:0:137
Mencoder uses: (uses DVD input to force mencoder as decoder)
-vf scale,format=i420,crop=720:446:0:137
my guess it that you are not using Avisynth or Vapoursynth and I missed to adjust one of the other decoding options.
Normally either (/ and or) Avisynth, Vapoursynth, Mencoder or FFmpeg should be used and they all seem to work fine here. :/
-> Create a debug output so I can see whats happening on your end. Smile

Cu Selur
------
offline 02.-07. July, https://www.rockharz-festival.com/ Big Grin
Reply
#8
(10.03.2018, 15:01)Selur Wrote: Need more details, because when I set 137 for top&bottom crop, I get:

in Vapoursynth:
clip = core.std.CropRel(clip=clip, left=0, right=0, top=137, bottom=137)
in Avisynth:
Crop(0,137,0,-137)
FFmpeg uses:
-vf crop=1280:446:0:137
Mencoder uses: (uses DVD input to force mencoder as decoder)
-vf scale,format=i420,crop=720:446:0:137
my guess it that you are not using Avisynth or Vapoursynth and I missed to adjust one of the other decoding options.
Normally either (/ and or) Avisynth, Vapoursynth, Mencoder or FFmpeg should be used and they all seem to work fine here. :/
-> Create a debug output so I can see whats happening on your end. Smile

Cu Selur


The #1 photo is extracted frame from source movie and 137 for top & bottom crop in Photoshop, and #2 is extracted frame from my Hybrid output movie with 137 for top & bottom crop, but the software crop 136 from top and 138 from bottom (Compare the two photos together).

Here is the DebugOutput Level 9 file:


Attached Files Thumbnail(s)
       
Reply
#9
Seems like ffmpeg needs some additional parameters to do this, because Hybrid sends to it:
-vf crop=1920:806:0:137
which should crop as you wanted.
Does is work if you enable: "Config->Internals->Avisynth->Always use Avisynth" ?

Cu Selur
------
offline 02.-07. July, https://www.rockharz-festival.com/ Big Grin
Reply
#10
(11.03.2018, 09:12)Selur Wrote: Seems like ffmpeg needs some additional parameters to do this, because Hybrid sends to it:
-vf crop=1920:806:0:137
which should crop as you wanted.
Does is work if you enable: "Config->Internals->Avisynth->Always use Avisynth" ?

Cu Selur

No. Does not work.
And this is the DebugOutput Level 9 file of that setting:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)