Skip Navigation

Posts
81
Comments
4,390
Joined
2 yr. ago

Permanently Deleted

Jump
  • car airbags are now filled with ludicrous amounts of fire-suppressor foam

  • Relevant Two Ronnies - Hieroglyphics sketch:
    (just kidding, youtube doesnt have it....)

  • ant

    Jump
  • And now let there be ant lions

  • Semd me your poops. The good ones.

  • it's been 2 hours...

  • This completely. You cant end capitalism with that kind of money, but you can provide cheap or free alternatives to basic needs to force the price-gouging vendors to actually compete for once and align their businesses better with the consumer.

  • Hello there sweetie! I'm politely throwing sand in your face, whilst not offering any helpful or insightful data other than a single counter anecdotal observation. Hope that's okay, and not passive-aggressive at all!

  • Eat a pound of flesh too

  • I cried so hard I laughed

  • Who needs comedians when the reality is already so absurd

  • well the coins weren't, but the people were cheating each other with paid goods of subpat quality

  • Ancient Mesopotamian: "am I a joke to you?"

  • My ex's grandma slept 5 hours a night, worked a full time seamstress job and cooked and cleaned and raised her kids and grandkids. She enjoyed just 1 year of retirement before Covid hit.

  • Batman

    Jump
  • That's it Alfred, you need to take a sabbatical to abate your combative perturbations

  • Yeah, I mean it's not like they're calling native Android functions there (in proceedWithOpenCamera), it looks like the CameraDevice object might offer a lot more capture modes that just aren't being tapped into. Is it just a programming issue, or does Android only offer Photo contexts but not Video ones, or...?

  • Is it just a permissions issue? On a rooted phone, could I not simply add termux user to the camera group

  • Yeah I have a bash script that does similar, using the notification API for interactivity

     
        
    FOLD_CAMERA=CameraShots
    TEMP_PID=~/.record_pid
    APP_ID=record
    
    mkdir -p $FOLD_CAMERA
    
    function main {
        termux-notification \
            --id $APP_ID --group RECORD \
            --priority max \
            --button1 "Front" \
            --button1-action "termux-notification-remove $APP_ID;bash $0 record 1" \
            --button2 "Back"  \
            --button2-action "termux-notification-remove $APP_ID;bash $0 record 0" \
            --button3 "Quit" \
            --button3-action "termux-notification-remove $APP_ID;exit" \
            --title "Record"
        
    }
    
    function record {
        local cam=${1:-0}
    
        termux-notification \
            --id $APP_ID --group RECORD \
            --priority max \
            --button1 "Stop" \
            --button1-action "termux-notification-remove $APP_ID; bash $0 killproc" \
            --title "Rec. $cam"
        
        (while :; do
             termux-camera-photo \
                 -c $cam \
                 $FOLD_CAMERA/$(date "+%Y%m%d-%H%M_${cam}_record.jpg")
         done) &
    
        local pid=$!
        echo -n $pid > $TEMP_PID
    } 
    
    function killproc {
        local last_pid=$(cat $TEMP_PID)
        if [ "$last_pid" == "" ]; then
            termux-toast "Could not kill process. Restart the phone."
        else
            kill $last_pid &&
                bash $0 main
        fi
    }
    
    
    [ "$*" = "" ] && main || eval "$*"
    
      

    It just needs ffmpeg tied to the exit function

  • Oral Beth T

    She got the nickname for her unyielding devotion to the service of mankind, big or small, but often small.

  • There are some things people should not know, and I agree that the pain threshold and communication of forced euthanization and slavery of animals will be a game changer. Thanks for this analysis