Page 1 of 1

VLCKit and croppadd

Posted: 01 Jul 2021 10:38
by Fanfwe
Hello,

I have compiled the SimplePlayer example from VLCKit for tvOS and I'm able to run it on my Apple TV.
Now I want to try cropping that video, so I modified the call to the VLCMediaPlayer constructor this way:

Code: Select all

mediaPlayer = VLCMediaPlayer(options: ["-vvv", "--video-filter=croppadd{cropleft=400}"])
I have successfully tested this parameter using the VLC media player on my Mac, however it has absolutely no effect on the app I'm building for Apple TV.

Is this at all supposed to be supported ? Am I trying something that isn't meant to be supported and hence won't work ?

Re: VLCKit and croppadd

Posted: 05 Jul 2021 10:10
by mfkl
Can you share full logs? Can you check whether it works on iOS?

Re: VLCKit and croppadd

Posted: 05 Jul 2021 16:16
by Fanfwe
In fact I just found out that there's a videoCropGeometry property in the VLCMediaPlayer class which takes a string as an input.
I've used it with a string at format WxH+X+Y and it does the job.