Playlist Length
A command-line tool to calculate the length of all the audios/videos in a directory
Prerequisites
ffmpeg package is required for this package to work, so you need to get it installed on your system
To install ffmpeg on ubuntu
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-get install frei0r-plugins
For other OS read instruction here
Installing
hit up your terminal and type following command
$ pip install --user playlist-length
or
$ pip install --user -e git+https://github.com/karansthr/playlist-length#egg=playlist-length
if your ~/.local/bin/ is not in PATH then run
$ export PATH=$PATH:${HOME}/.local/bin/
you may add above line of code in ~/.zshrc or ~/.bashrc etc. to repeat above step every time a terminal is opened.
To get length of all the videos in a directory, Give the path to directory as arguement
$ playlistlen path_to_directory
or use following command for current directory
$ playlistlen
By default, it will look for videos in given directory and it's sub-directories recursively, if you want it to look in the given directory only, then use --no-subdir flag, for example:
$ playlistlen path_to_directory --no-subdir
By default the media-type it will look for is video but you can specify audio or both
$ playlistlen path_to_directory --media-type audio
$ playlistlen path_to_directory --media-type both
for help use -h or --help, for example
$ playlistlen --help
Authors
- Karan Suthar (https://github.com/karansthr)
- Mohit Solanki (https://github.com/mohi7solanki)
License
This project is licensed under the MIT License - see the LICENSE file for details
Metadata
Release files for playlist-length 1.8.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| playlist-length-1.8.1.tar.gz | 5.0 kB | Without provenance | Details for playlist-length-1.8.1.tar.gz |
Release files / playlist-length-1.8.1.tar.gz
| Download URL | playlist-length-1.8.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc5357ca994af8f5b28fd54dad998f509c1608b88a2292cf16334f3056ab0557
|
|
BLAKE2b-256 checksum How to use checksums |
5d90ca01041b44a4a0f680ed3295b19086080ed8e4042378a51dc25b52b8115d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
|
Security for playlist-length 1.8.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.