https://github.com/langurmonkey/mediaorganiser
Media organiser, which renames media files (images, videos) from my phone into a sane directory structure (YYYYMM/-like).
https://github.com/langurmonkey/mediaorganiser
Last synced: 5 months ago
JSON representation
Media organiser, which renames media files (images, videos) from my phone into a sane directory structure (YYYYMM/-like).
- Host: GitHub
- URL: https://github.com/langurmonkey/mediaorganiser
- Owner: langurmonkey
- Created: 2024-11-08T08:39:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-08T08:40:03.000Z (over 1 year ago)
- Last Synced: 2025-03-27T00:54:17.390Z (over 1 year ago)
- Language: C++
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Media organiser
This program organises a bunch of media files in folders by date with the format `./YYYYMM`.
It recognises the following prefixes:
* `IMG-` + date
* `IMG_` + date
* `VID-` + date
* `VID_` + date
* `PANO_` + date
* `PHOTO_` + date
It also recognises dates in the filename as `YYYY-MM-DD`. If the script can't work out the date, then it copies the file to an `./undated` folder.
### Build
Clone the repo.
```bash
$ git clone https://gitlab.com/langurmonkey/mediaorganiser.git
```
You will need the `boost` library to build the project.
```bash
$ cd mediaorganiser/src
$ cmake . && make
```
Your executable is in `meidaorganiser/src/mediaorganiser`.
### Usage
```bash
$ mediaorganiser -i INPUT_FOLDER -o OUTPUT_FOLDER
```
Here are all the arguments:
```
General options:
-h [ --help ] print help
-i [ --input ] arg input folder
-o [ --output ] arg output folder
-c [ --copy ] if specified, files are copied instead of moved
```
If the output folder is not given, the output is set to the input folder.