Added more codecs
This commit is contained in:
parent
e84695cb9a
commit
106f4f2e12
@ -6,7 +6,7 @@ MediaCurator is a Python command line tool to manage a media database.
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
This package will only work on Linux and requires FFMPEG installed. For now it will be distributed on github on [GitHub](https://github.com/fabquenneville/MediaCurator.git)
|
This package will only work on Linux and requires FFMPEG installed. For now it will be distributed on [GitHub](https://github.com/fabquenneville/MediaCurator.git)
|
||||||
|
|
||||||
Installation:
|
Installation:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@ -115,13 +115,17 @@ def get_videolist(parentdir):
|
|||||||
# Filter the list for specifi codecs
|
# Filter the list for specifi codecs
|
||||||
videolist_tmp = videolist
|
videolist_tmp = videolist
|
||||||
print(f"Filtering {len(videolist)} videos for the requested parameters")
|
print(f"Filtering {len(videolist)} videos for the requested parameters")
|
||||||
|
videolist = []
|
||||||
|
|
||||||
if "-old" in sys.argv:
|
if "-old" in sys.argv:
|
||||||
videolist += [video for video in videolist_tmp if get_codec(video) not in ["hevc", "av1"]]
|
videolist += [video for video in videolist_tmp if get_codec(video) not in ["hevc", "av1"]]
|
||||||
|
|
||||||
if "-mpeg4" in sys.argv:
|
if "-mpeg4" in sys.argv or "-mpeg" in sys.argv:
|
||||||
videolist += [video for video in videolist_tmp if get_codec(video) in ["mpeg4", "msmpeg4v3"]]
|
videolist += [video for video in videolist_tmp if get_codec(video) in ["mpeg4", "msmpeg4v3"]]
|
||||||
|
|
||||||
|
if "-mpeg" in sys.argv:
|
||||||
|
videolist += [video for video in videolist_tmp if get_codec(video) in ["mpeg1video"]]
|
||||||
|
|
||||||
if "-wmv3" in sys.argv:
|
if "-wmv3" in sys.argv:
|
||||||
videolist += [video for video in videolist_tmp if get_codec(video) in ["wmv3"]]
|
videolist += [video for video in videolist_tmp if get_codec(video) in ["wmv3"]]
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user