Skip to content
/ graham Public

Prj.Graham # ๐ŸŽฌ Movie Auto Cutter is automation tool for quickly & easily segmenting videos based on timestamps or subtitle files, designed for AI-training data generating etc!

Notifications You must be signed in to change notification settings

54yd/graham

Repository files navigation

๐ŸŽฌ Movie Auto Cutter

Screenshot 2024-10-28 at 8 12 05

Movie Auto Cutter is a versatile tool for quickly and easily segmenting videos based on timestamps or subtitle files, designed for both local use and ready-to-deploy on platforms like Vercel. Simply upload a video, provide timestamps or subtitles, and let Movie Auto Cutter handle the editing โ€“ no complex software required!

Built with accessibility and ease-of-use in mind, this app is perfect for language learning, educational video editing, AI training, and more.

This Project uses NextJS15 so 'npm run dev' or 'npm run build && npm run start' is valid (I also put build file as zip in Release)


โœจ Key Features

  • ๐Ÿ“‚ Local and Cloud-Ready Deployment
    This app is fully compatible with Vercel and other cloud platforms. After deployment, simply run npm run start to get going!

  • โฉ Fast and Efficient Auto-Cutting
    Forget about complex editing workflows. Just paste your timestamps or upload an SRT file, and Movie Auto Cutter will automatically segment the video for you.

  • ๐ŸŽ“ Ideal for AI and Educational Use Cases
    Generate vast datasets quickly, create targeted educational clips, or practice pronunciation with easy playback of specific segments.


๐Ÿ“Š Results: Example Segmented Data

The following segmented video data are based on SRT files, generated using a separate transcription application. These segments demonstrate how Movie Auto Cutter can be used to create precise, language and topic-focused video excerpts. The approach appears straightforward and doesn't require a complex audio signal processing algorithm, making it quite fast. It can easily integrate and synergize with AI transcription apps for further extension!

segment_45f4845b-776f-4588-8a57-6c5ffd83484c.mp4
segment_12a19bf9-b9df-4c3f-852a-4248854d2527.mp4
  • [Alien (1986) | 20th Century Fox]
segment_d0e5d608-d67a-4328-aa88-d8e400ad5aa0.mp4
segment_9f390695-e42e-476b-838f-6f20194bae9d.mp4
segment_8227e86a-5358-4a64-91fd-5c3a79048549.mp4

Disclaimer: All media content is used here for academic and non-commercial purposes only. Please ensure that you respect copyright laws and seek permission as necessary for any public usage. "Alien" is the property of 20th Century Fox.


๐Ÿ“œ Background & Motivation

  1. Language Learning & Pronunciation Practice
    ๐Ÿ—ฃ๏ธ Repeatedly replay specific phrases or sentences to help with mastering pronunciation by aligning subtitle segments with video clips.

  2. Quick Educational Video Editing
    ๐Ÿ“š Effortlessly cut out the essential parts of lectures or lessons, saving time and providing focused content for review. No professional software needed! I expect to keep using this tool in graduate school and beyond.

  3. High-Volume Dataset Generation for AI Fine-Tuning
    ๐Ÿค– For training AI models in video and audio generation, automatically extract refined data for specific characters, expressions, or voice segments, making it easier to create large and precise datasets.


๐Ÿ› ๏ธ Usage Instructions

Running the App

  1. Deploy or Run Locally

    • To run on Vercel or a similar cloud platform, build the app and start it with:
      npm run start
  2. Navigate to the Main Page

    • The main interface lets you upload a video, add subtitle files, and enter timestamps.

Step-by-Step Guide (Page Instructions)

  1. Upload Video File

    • Click Upload Video File and select your .mp4 file. This is the video from which segments will be extracted.
  2. Optional: Upload an SRT File

    • Optionally, upload a .srt subtitle file for the video. This allows the app to match segments based on subtitle timings, making it easier to clip specific sections.
  3. Enter Timestamps Manually

    • If you donโ€™t have an SRT file, you can enter timestamps directly in the Enter Timestamps field. List each timestamp on a new line, using the format 00:00:03 (HH:MM:SS).
  4. Choose Save Directory

    • You can specify a save directory for segmented files using the Select or Enter Save Directory option. You can select a common path from the dropdown or enter a custom path.
  5. Start Processing

    • Click Send to start cutting. While the app processes, youโ€™ll see a โ€œProcessingโ€ฆโ€ message, and the button will be disabled until all segments are complete.
  6. View Completion Status

    • Once done, the app will show a โ€œProcessing Complete!โ€ message, and you can find the segmented files in the specified directory.

๐ŸŽ“ AI and Educational Use Cases

AI Training with Minimal Effort ๐ŸŽฅ๐Ÿค–

For developers and researchers working on training AI models in video and audio generation, Movie Auto Cutter offers a streamlined, no-fuss way to create large datasets from video clips without needing complex editing tools like Adobe Premiere Pro. With text-based timestamps or subtitle files, you can quickly extract and organize data, making it simple to train models on specific characters, emotions, facial expressions, or vocal nuances.

  • High-Volume Data Generation
    Instead of manually editing and saving each segment, you can automate the cutting process. This is especially useful when you need to produce datasets containing hundreds or thousands of short clips.

  • Consistency & Precision
    By using text-based timestamps, the app ensures consistent start and end times for each clip. This accuracy is crucial for models that rely on precise timing, such as lip-syncing in character animation or aligning audio with video.

  • Targeted Training Data
    This tool can be a game-changer in fine-tuning models to recognize or generate particular patterns. For instance, you could use it to cut out only segments where a specific person speaks or to create a dataset of facial expressions for emotion-detection models.

With Movie Auto Cutter, AI developers can quickly produce structured, text-defined video and audio datasets, saving hours of editing time and making it easy to experiment and iterate on training datasets.


๐Ÿš€ Future Planned Features

Movie Auto Cutter has an ambitious roadmap to make video editing even more powerful and automated:

  • ๐Ÿค– Whisper AI Integration
    Automatically transcribe videos with Whisper AI, creating subtitles on the fly.

  • ๐Ÿ“ Content-Based Summarization
    Enable intelligent auto-cutting based on topic importance, e.g., condense a 60-minute lecture into a 10-minute summary, or extract highlights from sports games.


๐Ÿ”ฎ Ultimate Goal

The ultimate vision for Movie Auto Cutter is to evolve into a Computer Vision security application that can automatically identify and extract important parts from hours of surveillance footage or interview recordings. Designed with applications in both public safety and private security, this tool could greatly aid in finding and analyzing key moments in video footage.


โšก Quick Tip: This app was built with flexibility in mind. You can paste timestamps, upload SRTs, or even integrate it with advanced transcription tools as theyโ€™re released โ€“ making it a valuable resource for students, researchers, language learners, and AI engineers alike.


Hope this helps in making Movie Auto Cutter accessible and engaging for all users! ๐Ÿ˜Š

About

Prj.Graham # ๐ŸŽฌ Movie Auto Cutter is automation tool for quickly & easily segmenting videos based on timestamps or subtitle files, designed for AI-training data generating etc!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published