Raspberry Pi command line tool transform

*nix specific usage questions
siteswapjuggler
New Cone
New Cone
Posts: 5
Joined: 06 Dec 2023 18:11

Raspberry Pi command line tool transform

Postby siteswapjuggler » 06 Dec 2023 18:22

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Raspberry Pi command line tool transform

Postby Rémi Denis-Courmont » 06 Dec 2023 19:43

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

siteswapjuggler
New Cone
New Cone
Posts: 5
Joined: 06 Dec 2023 18:11

Re: Raspberry Pi command line tool transform

Postby siteswapjuggler » 07 Dec 2023 12:17

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.

siteswapjuggler
New Cone
New Cone
Posts: 5
Joined: 06 Dec 2023 18:11

Re: Raspberry Pi command line tool transform

Postby siteswapjuggler » 01 Feb 2024 15:36

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 31 guests