Coder Social home page Coder Social logo

joncutrer / vidtrim-streamlit Goto Github PK

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

a simple streamlit app that can trim video files

License: MIT License

Python 100.00%
example example-project ffmpeg ffmpeg-python python streamlit streamlit-application streamlit-webapp video-processing video-trim

vidtrim-streamlit's Introduction

Video Trimming Streamlit App

This project is a simple yet powerful web application for trimming videos, built with Streamlit. It utilizes ffmpeg for backend video processing, providing a user-friendly interface to select start and end times for trimming.

Features

  • File Upload: Users can upload video files in MP4 format.
  • Video Trimming: Users can specify the start and end times for trimming using a simple input format.
  • Download: Users can download the trimmed video directly from the app.

Prerequisites

Before you can run this project, you need to have the following installed:

  • Python 3.6 or higher
  • ffmpeg (This needs to be installed on your system and accessible in your PATH)

Installation

To set up this project locally, follow these steps:

  1. Clone the Repository

    git clone https://github.com/yourusername/vidtrim-streamlit.git
    cd vidtrim-streamlit
  2. Set Up a Virtual Environment (Optional but recommended)

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
    

Running the Application

To run the application, use the following command:

streamlit run vidtrim_streamlit/streamlit_app.py

Open your web browser and go to http://localhost:8501 to see the app in action.

Configuring Upload File Size

By default, Streamlit limits the size of uploaded files. If you need to upload larger video files, you can increase this limit by setting the --server.maxUploadSize flag. For example, to increase the upload limit to 200MB, you can start your application as follows:

streamlit run vidtrim_streamlit/streamlit_app.py --server.maxUploadSize=200

Adjust the 200 to the limit that you require, measured in megabytes (MB). This setting is crucial for ensuring that users can upload video files large enough for practical video trimming tasks.

Deployment

This app is ready for deployment on Streamlit Sharing. Ensure you have added all necessary files and configurations to your GitHub repository before deploying.

Contributing

Contributions to this project are welcome! Here's how you can contribute:

Fork the repository

Create a new branch for your feature (git checkout -b feature/AmazingFeature) Commit your changes (git commit -m 'Add some AmazingFeature') Push to the branch (git push origin feature/AmazingFeature) Open a pull request

License

Distributed under the MIT License. See LICENSE for more information.

vidtrim-streamlit's People

Contributors

joncutrer avatar

Stargazers

 avatar

Watchers

 avatar

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.