Page 1 of 1

Raspberry Pi command line tool transform

Posted: 06 Dec 2023 18:22
by siteswapjuggler
Hello there,

I'm trying to configure an autonomous video player with some Raspberry Pi from Pi3 to Pi5 with the latest Raspberry Pi OS (Bookworm from 10.10.2023).

Just for understanding I was previously using omxplayer, but it has been deprecated and its team recommend to concentrate on VLC, well I took it from here and I try to get back my function one of them is to rotate the video by 180° depending on an extranal gpio state. I read the cvlc help, try to find example online, but as far as I try nothing is working...

cvlc --fullscreen --loop --no-osd --rotate-angle 180 somevideo.mp4 (as mentioned in the help)
cvlc --fullscreen --loop --no-osd --transform-type 180 somevideo.mp4 (as mentioned in the help)
cvlc --fullscreen --loop --no-osd --video-filter='transform{type="270"}' somevideo.mp4 (as mentioned here https://wiki.videolan.org/Documentation ... transform/)

Hope I can find some help here.
Sincerely

Re: Raspberry Pi command line tool transform

Posted: 06 Dec 2023 19:43
by Rémi Denis-Courmont
You may need to turn decoding acceleration off to use filters. The first two attempts won't do anything since they don't actually select any filter.

Re: Raspberry Pi command line tool transform

Posted: 07 Dec 2023 12:17
by siteswapjuggler
Ok then according to cvlc help, desactivate hw acceleration (if this is what you mean) is done with option --no-fb-hw-accel.
And I understand form your reply that you need to select then specify a filter. Here is the new line command I tried :

cvlc --fullscreen --loop --no-osd --no-fb-hw-accel --video-filter='transform{type="180"}'
cvlc --fullscreen --loop --no-osd --no-fb-hw-accel --video-filter=transform --transform-type=180

And unfortunatelly they doesn't work either. I did some extra searching and found out the forum where the "disable accerleration" is mentionned. By the way it refer to a desactivation method in the graphical intercace (I will try that). I found another occurence about filter being broken with mp4 files but it was an old version report (2.2.2). And by the way I'll need hw decoding but let's say one problem at a time.

I will continue to investigate, help still welcome if someone have complementary answers.

Re: Raspberry Pi command line tool transform

Posted: 01 Feb 2024 15:36
by siteswapjuggler
Ok then I give up with on cvlc option and I managed it with the new kms system in cmdline.txt
cf. https://www.raspberrypi.com/documentati ... mmand-line