aspect-ratio after crop

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
liviozanol
New Cone
New Cone
Posts: 4
Joined: 18 Jul 2019 19:37

aspect-ratio after crop

Postby liviozanol » 18 Jul 2019 19:59

Hello everyone!

I'm trying to scale a video after a crop using vlc. The problem is that vlc is not scaling the video, but instead is cropping it again. If I use the GUI it works ok... Can someone help?

Original video (before crop): Image

Cropped video: Image (yes, it is "zoomed in"? I don't know why...)

After zoom out and change in aspect-ratio: Image

The thing is, using this last video above (^^^^^), if I change the aspect-ratio in the GUI menu, it works ok, but not from the command line... Can somebody help?


Final video with my final command line (without menu, etc....):
Image

Final command used:

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" test.mp4 --no-embedded-video --qt-minimal-view --qt-start-minimized --qt-notification=0 --no-video-title-show --no-video-deco -q --no-audio --video-filter=croppadd{cropbottom=240} --zoom=0.5 --video-x=1 --video-y=1 --no-autoscale --aspect-ratio "4x3"
Tried also -width, canvas-width, etc... without luck.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: aspect-ratio after crop

Postby unidan » 18 Jul 2019 20:04

Hi
modules/gui/qt/components/extended_panels.cpp: var_SetInteger( p_vout.get(), "crop-bottom", ui.cropBotPx->value() );
The Qt GUI is using --crop-top/bottom/left/right parameter and not the video filter, you could try using that :)

liviozanol
New Cone
New Cone
Posts: 4
Joined: 18 Jul 2019 19:37

Re: aspect-ratio after crop

Postby liviozanol » 18 Jul 2019 20:56

Hi
modules/gui/qt/components/extended_panels.cpp: var_SetInteger( p_vout.get(), "crop-bottom", ui.cropBotPx->value() );
The Qt GUI is using --crop-top/bottom/left/right parameter and not the video filter, you could try using that :)
Thank you for the reply! I tried "--crop=4:3" but the result is the same... :(

This is the expected behavior... (using menu Video -> Aspect-Ratio -> 4:3 ): Image

The resulting image is distorted as expected.... I want just like this...

liviozanol
New Cone
New Cone
Posts: 4
Joined: 18 Jul 2019 19:37

Re: aspect-ratio after crop

Postby liviozanol » 19 Jul 2019 20:57

Can anybody help? I think this is a bug...

liviozanol
New Cone
New Cone
Posts: 4
Joined: 18 Jul 2019 19:37

Re: aspect-ratio after crop

Postby liviozanol » 19 Jul 2019 21:18

Well, I think I'm facing this bug: https://trac.videolan.org/vlc/ticket/18954


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 24 guests