An open API service indexing awesome lists of open source software.

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).

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.