Vote count:
0
Using this code in a C# application I'm generating a file in /data/local/tmp/new.jpg on an android device.
Process screenCap = new Process();
screenCap.StartInfo.FileName = "adb.exe";
screenCap.StartInfo.Arguments = "shell screencap | /data/local/tmp/tools/./ffmpeg - > /data/local/tmp/new.jpg";
However, I want to redirect to a path on my computer, such as /user/desktop/img.jpg. I know the syntax changes for this and the quotes must be moved, but I'm not sure exactly how.
screenCap.StartInfo.Arguments = "shell screencap | /data/local/tmp/tools/./ffmpeg - " > "/user/desktop/img.jpg";
I tried this and it actually redirects too much output from the command line, making the file too large and unreadable. Any help is appreciated.
asked 23 secs ago
Aucun commentaire:
Enregistrer un commentaire