Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tomcur/phone-camera-upload
Recompress and upload synced pictures and videos from a Phone to a WebDAV server
https://github.com/tomcur/phone-camera-upload
Last synced: about 14 hours ago
JSON representation
Recompress and upload synced pictures and videos from a Phone to a WebDAV server
- Host: GitHub
- URL: https://github.com/tomcur/phone-camera-upload
- Owner: tomcur
- License: mit
- Created: 2021-05-30T15:42:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-04T11:12:23.000Z (over 2 years ago)
- Last Synced: 2024-11-09T02:25:40.066Z (about 2 months ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# phone-camera-upload
This script recompresses and uploads synced pictures and videos from my phone
to a remote.Currently supported remotes:
- WebDAV servers;
- local directories.Pictures are recompressed to medium quality using the SmallFry JPEG optimizer from [jpeg-archive](https://github.com/danielgtaylor/jpeg-archive).
Videos are recompressed/re-encoded to H.265 with a constant rate factor using [ffmpeg](https://ffmpeg.org).
# Building / Installing
## With Nix
Run:```bash
$ git clone https://github.com/tomcur/phone-camera-upload.git
$ cd phone-camera-upload
$ nix-env --file default.nix -i
```
This installs the required dependencies and places phone-camera-upload's executables in
your path.## With Nix flakes
Run:```bash
$ git clone https://github.com/tomcur/phone-camera-upload.git
$ cd phone-camera-upload
$ nix build .#
```This places phone-camera-upload's executables in `./result/bin`.
# Usage
Copy `./config/phone-camera-upload.json.example` to
`$HOME/.config/phone-camera-upload/config.json` and edit it with your remote
details.The script is hardcoded to upload media in
`~/syncthing/oneplus-a3003-camera/Camera` to the configured remote. It stores
file names of successful uploads in `~/.local/share/phone-camera-upload`.To start the script, run:
```bash
$ phone-camera-upload
```