Rename file and add README.md
This commit is contained in:
parent
893cb4194e
commit
bc81999eef
2 changed files with 13 additions and 2 deletions
11
README.md
Normal file
11
README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
rename-video
|
||||
============
|
||||
|
||||
This is a little script which renames a list of files to date and time from their
|
||||
meta data with help of ffprobe.
|
||||
|
||||
You need to have ffmpeg installed so that ffprobe is accessible in your path.
|
||||
|
||||
```
|
||||
usage: rename-video PATHs [dryrun]
|
||||
```
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
rename-video-filename.py
|
||||
rename-video
|
||||
|
||||
This script renames a movie file name to the created at date and time
|
||||
from the metadata.
|
||||
|
@ -42,7 +42,7 @@ def rename_file(path, dryrun, old_files):
|
|||
old_files.append(new_path)
|
||||
|
||||
def usage():
|
||||
print("usage: rename-video-filename.py PATHs [dryrun]")
|
||||
print("usage: rename-video PATHs [dryrun]")
|
||||
|
||||
def main(argv):
|
||||
if len(argv) < 1:
|
Loading…
Add table
Add a link
Reference in a new issue