scrcpy
scrcpy copied to clipboard
compatible to termux_terminal?
hello guys,
i`ve installed Win 11 & Android 13 /API 33 - Win11 every fine (wrote a script.bat to bind and open scrcpy) **.bat Android App scrcpy also fine ;-) but in Termux (installed termux sdl & x11-repo) it starting process but ends up in
~ $ scrcpy -s 192.168.1.100:5555 scrcpy 1.25 https://github.com/Genymobile/scrcpy DEBUG: ADB device found: DEBUG: --> (tcpip) 192.168.1.100:5555 device SM_G986B DEBUG: (tcpip) emulator-5554 device SM_G986B DEBUG: Device serial: 192.168.1.100:5555 DEBUG: Using server: /data/data/com.termux/files/usr/share/scrcpy/scrcpy-server /data/data/com.termux/files/usr/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 49.3 MB/s (42151 bytes in 0.001s) [server] INFO: Device: samsung SM-G986B (Android 13) DEBUG: Server connected DEBUG: Starting controller thread DEBUG: Starting receiver thread [server] DEBUG: Using encoder: 'OMX.Exynos.AVC.Encoder' INFO: Renderer: opengl INFO: OpenGL version: 4.5 (Compatibility Profile) Mesa 22.3.3 INFO: Trilinear filtering enabled DEBUG: Using icon: /data/data/com.termux/files/usr/share/icons/hicolor/256x256/apps/scrcpy.png INFO: Initial texture: 1080x2400 DEBUG: Starting demuxer thread
and no screen - had i do to add options like | ffplay (have installed it to termux to can do it but don´t know how) ? ***
in App Bugjaeger scrcpy goes to Camview (very useful) - also record is possible
i didn´t get it running by myself in manual mode - maybe to do it with tasker
thx for help
**.bat @echo Off cd C:/PATH/to/platform-tools/(Android Studio or platform-tools only for itself / Android -> https://github.com/rendiix/termux-adb-fastboot echo startup adb-server adb kill-server adb start-server adb devices adb connect HOST:PORT (192.168.1.1:5555) timeout 5 scrcpy -s HOST:PORT
copy ffplay to /data/data/com.termux/files/usr/bin cp example/SDL2/ffplay/ffplay /data/data/com.termux/files/usr/bin chmod 755 /data/data/com.termux/files/usr/bin/ffplay
play video ffplay -i /sdcard/video/test.mp4
play music whit 1.5x speed ffplay -af atempo=1.5 -i /sdcard/music/hello.flac
2x speed playback ffplay -af atempo=2.0 -vf setpts=1/2*PTS -i /sdcard/video/test.mp4
play at any speed: atempo=x setpts=1/x*PTS
no window title(set title is null) ffplay -window_title -i /sdcard/video/test.mp4
full screen ffplay -fs -i /sdcard/video/test.mp4
also record is possible
You mean to say that when you try to record your screen using SCRCPY on Termux, it works?
yes in App Bugjaeger not in Termux (no screen pops up - but also no error) i think server is running but how to push it to screen?
think there´re missing options where to play and if then and i want to record too also a /sdcard/path/test.mp4
yes in App Bugjaeger
https://wiki.termux.com/wiki/Graphical_Environment Well I already have WSLg and WSL working, so I have no motivation to control my own phone using my own phone after doing bunch of unnecessary timepass, but I think the issue is with your Xserver or VNC server, or VNC server viewer app that you have installed on your phone. Read and understand the steps mentioned above and if you manage to get it working—well... I don't even know.
"control my own phone using my own phone" only for testing and i understand - maybe is x11-repo the prob
thx for link - i read first
bro just use termux-x11 it will support scrcpy "it even works on my 2gb ram calculator" i used to record my gaming videos with it.
~~How to make scrcpy use termux-x11? Care to tell for this uncle? Is that possible?~~
~~I managed to deploy a redroid in my oracle arm instance and able to connect via adb, scrcpy 2.1.1 is available in termux, now I would like to see/control it using my phone via termux-x11. How to make it work? Thank you.~~
Nvm, I managed to make it work.
termux-x11 :0 &
export DISPLAY=:0 scrcpy
yeah its possible you can use it, actually i use it in my daily life to record my gameplay videos often ly
its perfectly supported ^_^ !
just use to install & use xterm first
you will also need to install android-tools by using apt , ti would work fine with wireless debugging
if you wish to use scrcpy with otg cable , you will need termux-adb from github
firstly, make sure to connect usb/wireless debugging from host phone to target phone
then setup termux-x11, like this
termux-x11 -xstartup "xterm" (make sure you have xterm installed)
then in termux x11 app you will have xterm running, just execute scrcpy and done
( note: scrcpy will only work when adb is connected to a device )
I can start scrcpy in x11. But scrcpy is not full screen of x11. How to configuration it?
Many thanks
I can start scrcpy in x11. But scrcpy is not full screen of x11. How to configuration it? Many thanks
bro its so simple you must have installed any window manager like fluxbox or jwm with apt in termux so you can easily switch to fullscreen mode by clicking on maximize button;
you can use xterm within fluxbox for more convenience :)
I can start scrcpy in x11. But scrcpy is not full screen of x11. How to configuration it? Many thanks
Hey, I have a question. How in the world you are in termux-x11 but the scrcpy window is casting a game? Was not it supposed to be casting an infinite loop of termux-x11?
(Now that I think of, maybe that is another device?)
I can start scrcpy in x11. But scrcpy is not full screen of x11. How to configuration it? Many thanks
Hey, I have a question. How in the world you are in termux-x11 but the scrcpy window is casting a game? Was not it supposed to be casting an infinite loop of termux-x11?
(Now that I think of, maybe that is another device?)
Yeah. I running game/ app in another device. scrcpy is best with low lantency compare with teamviewer, anydesk, ... It not native as SCRCPY in window but it is still good enough.
I can start scrcpy in x11. But scrcpy is not full screen of x11. How to configuration it? Many thanks
bro its so simple you must have installed any window manager like fluxbox or jwm with apt in termux so you can easily switch to fullscreen mode by clicking on maximize button;
you can use xterm within fluxbox for more convenience :)
Thx you so much. I will try it.
This would be beautiful if it is used with an Android tv box that doesn't have chromecast option built-in with an old Android version that gets treated as a tablet
Please give tutorial if possible
Do you know how can I install termux-x11 on termux running on an Android TV box?
Nice
can you please help me how to install scrcpy in termux i still only have the steps to install it and it should work for me help plz:(