Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sayyid5416/little-python-projects

Small useful python scripts
https://github.com/sayyid5416/little-python-projects

Last synced: 2 months ago
JSON representation

Small useful python scripts

Awesome Lists containing this project

README

        

# [Lines Calculator](/python-scripts/lines-calculator.py)
- Calculate number of lines in **all files of a folder**.
- Files in **sub-folders** will also be analysed.
- You can also specify the **file types**, like `txt` or `py`.
- Leave empty to specify all files.

# [Davinci Resolve Video metadata fix](/python-scripts/video-metadata-fix.py)
- Fixes 'unable to preview' for YT Shorts _([Discussion](https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=165402))_
- Requirements:
- FFMPEG must be in the windows 'Path' environment variables
- Python must be installed
- Install generalpy library: `pip install generalpy`
- How to use:
- Open this `video metadata fix.py` file after downloading and set `video_path` according to your need. _(Also don't forget to change your video name accordingly while rendering)_
- Copy this file to your Fusion Scripts directory. _(For windows it is: `C:\Program Files\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Deliver`)_
- In your Deliver settings in Davinci resolve, Enable `Advanced Settings > Trigger script at end of render job`, and choose `video metadata fix` from `script` dropdown.
- Render your video, a new video will be placed in the same folder as your rendered video.

# [Subtitle fixer](/python-scripts/subtitle_fixer.py)
- Modify subtitles `.srt` file to remove clutter.
- Current modifications
- Remove any `-` from starting of subtitle.
- Remove any subtitle which contains bracketed (`()`, `{}`, `[]`) items. Ex: _[Music]_, _(explosion)_ etc

# [File type finder](/python-scripts/file_type_finder.py)
- Show a list of all files of specific type *(for ex: .py, .exe etc)*
- All files from folder and all of its subfolders would be searched