Download the PHP package eigan/mediasort without Composer
On this page you can find all versions of the php package eigan/mediasort. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package mediasort
Mediasort
A batch rename tool for media files (audio, video and images). Move, or create an hardlink, with a new name based on meta information extracted from the file.
- Example
- Installation
- Requirements
- Arch Linux
- Usage
- Options
- About
- Speed
- Date and time from files
- File name collision
- Step by step (internal)
- Tips
- Remove empty directories
Example
destination
is optional.--format=":year/:month/:date :time"
default format of new filenames
Common options
-r
for recursive--link
for using hardlinks-n
for no interaction (autoconfirm)-q
quiet- See more options
Before
After
Files are moved into destination/
(create hardlinks with --link
)
Installation
See the wiki page.
Requirements
- PHP 7.0.24+
- ext-exif. For precise meta information (dates), and more.
- ext-phar For composer (build from source), or to execute phar file
Arch Linux
Mediasort is available through AUR: mediasort.
Composer (global)
Usage
Options
Note: shortcuts cannot be combined, -nv
will not work. This is a limitation of the CLI library used.
About
Date and time from files
Date is retrieved from files in the following order:
- exif meta information (image)
- id3 meta information (video/audio)
-
Date in path matching pattern:
- YYYYMMDD_HHMMSS
- YYYY-MM-DD HH.mm.ss
- YYYY-MM-DD HH:mm:ss
- YYYYMMDDHHMMSS
- YYYYMMDD-HHMMSS
If no dates are found, then the format fails and file is skipped.
File name collision
When a file is identical, it gets ignored, otherwise we append an index to the filename.
Step by step (internal)
Tips
Remove empty directories
Todo
These are things I would like to do sometime, but I don't really need right now.
- Split code into more files.
- More formatters
:type-s
:exif(ExifProp)
:path
full original path
--filter=":size>10 & :name~/regex/ & :weekday=monday
- I18n
- Test Mac (travis) / Windows (tea-ci)
- symlink
All versions of mediasort with dependencies
php Version >=7.2
monolog/monolog Version ^1.23
james-heinrich/getid3 Version ^1.9