Giter VIP home page Giter VIP logo

riyasubash / plagrid Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 34 KB

PlayGrid is a Python-based web application that offers various functionalities related to video and audio processing. It leverages popular libraries such as Flask, MoviePy, AssemblyAI, IMDbPY, Selenium, and more.

Python 88.96% HTML 11.04%
aiml flask plagiarism plagiarism-checker plagiarism-detection python scrapy-crawler video-plagiarism

plagrid's Introduction

Plagrid

PlayGrid is a Python-based web application that offers various functionalities related to video and audio processing. It leverages popular libraries such as Flask, MoviePy, AssemblyAI, IMDbPY, Selenium, and more. Below, you will find an overview of the main features and how to run the application.

Features

  1. Video and Audio Extraction: The application allows users to upload video files (.mp4, .mov, .mkv) and extract the audio, which is then saved in .wav format. The extracted audio is used for further processing.

  2. Automatic Subtitle Generation: PlayGrid utilizes the AssemblyAI library to automatically generate subtitles from the extracted audio. The subtitles are saved in .txt format for each uploaded video.

  3. Text-based Plagiarism Detection: Users can upload text files, and the application performs text-based plagiarism detection by calculating the similarity score between the uploaded text and the generated subtitles for each video.

  4. IMDb Movie Search: The app integrates IMDbPY to search for movies on IMDb based on user input. It opens the movie's page in a web browser.

  5. Video Similarity Detection: PlayGrid allows users to upload multiple videos (.mp4, .mov, .mkv) and calculates the similarity score between the extracted features of each pair of videos. The similarity scores are displayed as a percentage on the user interface.

  6. Web Scraping for Subtitles: The application uses Selenium to scrape subtitles for movies from the Subscene website. Users can input the movie name, and the application will attempt to fetch the English subtitles for that movie.

How to Run the Application

To run the PlayGrid application, follow these steps:

  1. Clone the repository: git clone https://github.com/your_username/playgrid.git

  2. Change to the project directory: cd playgrid

  3. Install the required libraries: pip install -r requirements.txt

  4. Set up the environment variables:

    • Create a file named .env in the project root directory.
    • Add the following line to the .env file, replacing YOUR_ASSEMBLYAI_API_KEY with your actual AssemblyAI API key:
    ASSEMBLYAI_API_KEY=YOUR_ASSEMBLYAI_API_KEY
    
  5. Download the spaCy model:

    python -m spacy download en_core_web_sm
    
  6. Run the Flask web application:

    python app.py
    
  7. Access the application in your web browser at http://127.0.0.1:8080/.

Usage

  1. Video and Audio Extraction:

    • Click on the "Choose File" button under "Video and Audio Extraction."
    • Select a video file (.mp4, .mov, .mkv) to upload.
    • The audio will be extracted and saved as a .wav file in the "audios" folder.
    • Subtitles will be automatically generated and saved as a .txt file in the "subtitles" folder.
  2. Text-based Plagiarism Detection:

    • Click on the "Choose File" button under "Text-based Plagiarism Detection."
    • Select a text file to upload.
    • The application will compare the uploaded text with the generated subtitles for each video and display the similarity score.
  3. IMDb Movie Search:

    • Enter the movie name in the "Movie Name" field under "IMDb Movie Search."
    • Click the "Search" button, and the application will open the IMDb page for the movie in a new web browser tab.
  4. Video Similarity Detection:

    • Click on the "Choose File" button under "Video Similarity Detection."
    • Upload multiple video files (.mp4, .mov, .mkv) to compare.
    • The application will calculate the similarity score between each pair of videos and display the average similarity score.
  5. Web Scraping for Subtitles:

    • Enter the movie name in the "Movie Name" field under "Web Scraping for Subtitles."
    • Click the "Search Subtitles" button.
    • The application will attempt to fetch the English subtitles for the movie and open the download link in a web browser.

plagrid's People

Contributors

riyasubash avatar

Watchers

 avatar

Forkers

cia-shetty

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.