Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request : rotate : reflect x or y axe #2175

Closed
iztoogood opened this issue Mar 6, 2021 · 3 comments
Closed

Feature request : rotate : reflect x or y axe #2175

iztoogood opened this issue Mar 6, 2021 · 3 comments

Comments

@iztoogood
Copy link

Hello,

May you add 2 orientation choice
To --rotation option ?

  • Swap x
  • Swap y

Please

@iztoogood iztoogood changed the title Feature request : rotate : reflect x ou y axe Feature request : rotate : reflect x or y axe Mar 6, 2021
@LonelyHowl
Copy link

Lmao I just had this struggle, changed --window-x and --window-y so it's in the right corner of my screen, only to discover it would be outside my screen when rotated, rip hahah

Oh well guess i'll use the left side for now

@iztoogood
Copy link
Author

iztoogood commented Mar 26, 2021

Hi,
For now, here is a solution i have found :

#!/bin/sh
echo "Start virtual framebuffer X ( :100 )..."
Xvfb :100 -screen 0 480x320x24 -nocursor &

echo "Start broadcast screen reversed in :100 send to player :current..."
screen -S stream -dm sh -c 'ffmpeg -f x11grab -s 480x320 -r 10 -draw_mouse 0 -i :100 -an -q 10 -f mjpeg -filter:v "vflip" - | DISPLAY=:0 ffplay -fflags nobuffer -fs -'

echo "Wait for android device..."
screen -S android -dm sh -c '/home/pi/autoadb/target/release/autoadb sh -c "DISPLAY=:100 scrcpy  --rotation 3 -w --window-width 480 --disable-screensaver -b 2M -m800 --max-fps 10"'

IMG_20210327_135109_2

thanks to the help of frogdoubler on reddit in his post:
https://www.reddit.com/r/linux/comments/4071n0/is_there_a_way_to_stream_one_specific_virtual/

@rom1v
Copy link
Collaborator

rom1v commented Sep 11, 2021

(I'm closing as a duplicate of #1380)

@rom1v rom1v closed this as completed Sep 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants