pyBegin / projects / video-transcoder-project
🌐

video_transcoder_project

Access the application in your browser at http://127.0.0.1:5000/.

4 lines🖥 Desktop only

Example

  1. Start the Flask app (python app.py) and open http://127.0.0.1:5000/ in a browser.
  2. The page shows a form to upload a raw video file.
  3. Select a video (e.g. clip.avi) and submit the form.
  4. The backend transcodes the video to the target format (e.g. 1080p MP4) using FFmpeg.
  5. A download link for the transcoded file is shown on the page.

Components

Flask App (flask_app/)

Video Processing (video_processing/)

How to Use

  1. Setup Instructions:

    • Clone this repository.
    • Set up a virtual environment and install the required dependencies:
      # Navigate to the project directory
      cd video_transcoder_project
      
      # Create and activate a virtual environment (optional)
      python -m venv venv
      source venv/bin/activate  # Linux/Mac
      venv\Scripts\activate  # Windows
      
      # Install dependencies
      pip install -r requirements.txt
      
    • Follow the setup commands mentioned in the previous sections.
  2. Run the Flask App:

    # Navigate to the flask_app directory
    cd flask_app
    
    # Run the Flask app
    python app.py
    

    Access the application in your browser at http://127.0.0.1:5000/.

  3. Usage:

    • Upload a raw video file using the provided form.
    • The backend will transcode the video to a specified format (e.g., 1080p) and provide the download link for the transcoded file.

Note

This is a basic implementation; additional features like error handling, security measures, and frontend enhancements can be added for a more robust application.

Feel free to modify the code and folder structure according to your project requirements.