Menu

starting video through adb command

a l
2020-05-09
2023-02-24
  • a l

    a l - 2020-05-09

    I am trying to setup a workflow where I can capture and transfer video from my android phone directly from my PC. I have installed ADB and have successfully launched OpenCamera from command shell. Now I have been trying to find a button that would start a video and I can't. Basically, trying
    adb shell "input keyevent 0"
    adb shell "input keyevent 1"
    adb shell "input keyevent 2"
    etc.

    Could anyone tell me what I should do to launch Video capture?

     

    Last edit: a l 2020-05-09
  • a l

    a l - 2020-05-09

    Ok, answering my own question. It's adb shell "input keyevent KEYCODE_CAMERA". Instead of KEYCODE_CAMERA you can type 27. I actually tried it before posting this question, but it kept complaining that "Video file coudn't be saved" (or something like that). It turned out that my storage settings got screwed up. So, once I fixed that, everything started working.

     
  • shodan

    shodan - 2023-02-21

    Hello,
    I was wondering, did you manage to get more control out of opencamera using adb ?
    Is it possible to change opencamera's settings
    Maybe change the focus mode, exposure, whitebalance etc.. ?

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.