Hacker News new | ask | show | jobs
by vanderZwan 2243 days ago
Somewhat related: I recently realized that in theory I should be able to easily use ffmpeg with Termux to cut and concatenate clips I shoot on my phone without recompression, since they're all guaranteed to have the same settings (as long as all inputs are landscape or portrait). However, typing out the file path for a list of files would be a complete pain on the phone.

Does anyone know of a way to select a list of files on Android and send that list as input to a script in Termux? That would open up quite a bit of automation possibilities

2 comments

Put them in a given directory. When the phone is connected, use that as input to a script. Alternatively, use metadata such as date or location.
Sounds like a viable workaround if the automation app route doesn't work out for me, thanks!
You should be able to do that with the Tasker or Automate apps.
Will give that a try, thanks!