Skip to content

Python and exe script that deletes LRV and THM files created by GoPro camera.

License

Notifications You must be signed in to change notification settings

konashevich/GoPro-LRV-THM-Cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GoProLRVTHM Cleaner

A simple utility script to delete .THM and .LRV files from GoPro camera folders to free up space. This script can be run directly in Python or as an executable to quickly clean up specified directories or the directory it resides in.

Description

GoPro cameras create .THM and .LRV files for thumbnails and low-resolution previews of videos. While useful for some, these files can take up unnecessary space. goprolrvthm.py is a Python script that automates the deletion of these files from specified folders or the folder where the script (or its executable) is located.

Installation

Prerequisites

  • Python 3.x installed on your machine.

Steps

  1. Clone the repository or download the goprolrvthm.py script directly.
    git clone https://github.com/konashevich/GoPro-LRV-THM-Cleaner.git
    
  2. (Optional) Convert the script to an executable using PyInstaller for ease of use without Python:
    pip install pyinstaller
    pyinstaller --onefile goprolrvthm.py
    

Usage

As a Python Script

Run the script in a terminal or command prompt:

python goprolrvthm.py [folder_path]

If [folder_path] is not provided, the script will operate in the directory it's located in.

As an Executable

After converting to an executable:

./goprolrvthm.exe [folder_path]

Download exe file from dist folder, make use of the bat example as well.

With a Batch File

Create a .bat file to run the executable with a predefined path:

path\to\goprolrvthm.exe "F:\DCIM\100GOPRO"

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Hit STAR to this project
  2. Fork the Project
  3. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  4. Commit your Changes (git commit -m 'Add some AmazingFeature')
  5. Push to the Branch (git push origin feature/AmazingFeature)
  6. Open a Pull Request

License

Distributed under the APACHE 2.0 License. See LICENSE for more information.

About

Python and exe script that deletes LRV and THM files created by GoPro camera.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages