Sahil-Gulihar / MediaSnip

A utility for downloading YouTube content, providing time-stamped audio and video formats.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Project Setup Guide

This guide will walk you through setting up and initializing the Go project to utilize the functionalities provided in the main.go file.

Prerequisites

Before you begin, ensure you have the following installed on your system:

Project Initialization

  1. Clone the repository or create a new directory for your project.

    git clone <repository-url>
  2. Navigate to the project directory.

    cd <project-directory>
  3. Create a new Go module (if not already initialized).

    go mod init <module-name>

Running the Project

  1. Open the main.go file in your preferred text editor.

  2. Make sure to update the values of inputFilePath, outputFilePath, and outputAudio variables if needed. It takes input in both HH:MM:SS format or simple SS only

  3. Run the project using the following command:

    go run main.go
  4. Follow the on-screen prompts to interact with the program:

    • Select the desired operation (Video Download Full, Download Audio, Trimmed Video, or Audio Trim).
    • Provide the necessary input such as URL, start time, and end time as prompted.

Demo:

Demo Video

Additional Notes

  • This project uses external commands such as yt-dlp and ffmpeg, make sure they are properly installed and accessible in your system's PATH.
  • Ensure that you have appropriate permissions to read, write, and execute files in the specified directories.
  • Modify the code as per your requirements and extend its functionalities as needed.

About

A utility for downloading YouTube content, providing time-stamped audio and video formats.


Languages

Language:Go 100.0%