Certainly! Here's an extended and detailed prompt for your project:
Project Prompt: Video Crop and Trim Website
Overview:
Create a fully functional web application that allows users to upload MP4 video files, crop and trim their videos using an intuitive interface, and then download the edited videos. The application should be user-friendly, responsive, and efficient in handling video processing.
Key Features:
-
Video Upload:
- Users can upload MP4 files from their local device.
- Support for reasonably large files (e.g., up to 500MB).
- Display upload progress and handle upload errors gracefully.
-
Video Preview:
- After upload, display the video in a player for preview before editing.
- Allow basic playback controls (play, pause, seek).
-
Cropping Functionality:
- Provide an overlay or cropping tool for users to visually select the crop area on the video frame.
- Show real-time preview of the cropped area.
- Allow users to adjust the crop box by dragging/resizing.
-
Trimming Functionality:
- Allow users to specify start and end times to trim the video.
- Provide a timeline or slider UI to easily select the trim range.
- Show the selected trim duration.
-
Video Processing:
- Process cropping and trimming operations either client-side (using WebAssembly or browser APIs) or server-side (using a backend service).
- Ensure processing is efficient and does not freeze the UI.
-
Download Edited Video:
- After processing, provide a download link/button for the user to save the edited MP4 video file.
- The output video should maintain the original quality as much as possible.
-
User Interface:
- Clean, modern, and responsive design.
- Mobile-friendly and accessible.
- Intuitive controls and clear instructions or tooltips.
-
Technology Suggestions:
- Frontend: React, Vue, or vanilla JS with HTML5/CSS3.
- Video processing: ffmpeg.wasm for client-side processing or a Node.js backend with FFmpeg for server-side processing.
- File handling: Use File APIs for uploads/downloads.
- Optional: use a backend to handle larger files and more complex processing if needed.
Bonus Features (Optional):
- Multiple video format support (e.g., MOV, AVI, WEBM).
- Undo/Redo functionality.
- Preview the changes before saving/exporting.
- User accounts/history to manage multiple projects.
- Cloud storage integration (e.g., AWS S3, Google Drive).
This detailed prompt should help you or your development team to scope and plan the video crop and trim website efficiently. Let me know if you'd like me to generate code examples or workflows!