Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# 🎬 Video Subtitle Burner & Uploader
|
| 2 |
|
| 3 |
A Gradio application that burns subtitles into videos and uploads them to abyss.to
|
|
@@ -5,55 +18,12 @@ A Gradio application that burns subtitles into videos and uploads them to abyss.
|
|
| 5 |
## Features
|
| 6 |
|
| 7 |
- ✅ Download videos from Google Drive or direct URLs
|
| 8 |
-
- ✅ Burn SRT subtitles into video
|
| 9 |
- ✅ Upload processed video to abyss.to (hydrax.net)
|
| 10 |
-
- ✅ Simple web interface
|
| 11 |
-
- ✅
|
| 12 |
-
|
| 13 |
-
## How to Deploy on Hugging Face Spaces
|
| 14 |
-
|
| 15 |
-
### Method 1: Web Interface
|
| 16 |
-
|
| 17 |
-
1. Go to https://huggingface.co/spaces
|
| 18 |
-
2. Click **"Create new Space"**
|
| 19 |
-
3. Fill in details:
|
| 20 |
-
- **Space name**: `subtitle-burner` (or your choice)
|
| 21 |
-
- **License**: Apache 2.0
|
| 22 |
-
- **Select SDK**: Gradio
|
| 23 |
-
- **Hardware**: CPU Basic (Free tier works!)
|
| 24 |
-
4. Click **"Create Space"**
|
| 25 |
-
5. Upload these files:
|
| 26 |
-
- `app.py`
|
| 27 |
-
- `requirements.txt`
|
| 28 |
-
- `README.md`
|
| 29 |
-
6. Go to **Settings** → **Variables and secrets**
|
| 30 |
-
7. Add **packages_txt** file with content:
|
| 31 |
-
```
|
| 32 |
-
ffmpeg
|
| 33 |
-
```
|
| 34 |
-
8. Wait for the build to complete (~2-5 minutes)
|
| 35 |
-
9. Your app will be live! 🎉
|
| 36 |
-
|
| 37 |
-
### Method 2: Git Upload
|
| 38 |
-
|
| 39 |
-
```bash
|
| 40 |
-
# Clone your space
|
| 41 |
-
git clone https://huggingface.co/spaces/YOUR_USERNAME/subtitle-burner
|
| 42 |
-
cd subtitle-burner
|
| 43 |
-
|
| 44 |
-
# Copy files
|
| 45 |
-
cp app.py requirements.txt README.md ./
|
| 46 |
|
| 47 |
-
#
|
| 48 |
-
echo "ffmpeg" > packages.txt
|
| 49 |
-
|
| 50 |
-
# Commit and push
|
| 51 |
-
git add .
|
| 52 |
-
git commit -m "Initial commit"
|
| 53 |
-
git push
|
| 54 |
-
```
|
| 55 |
-
|
| 56 |
-
## Usage
|
| 57 |
|
| 58 |
1. **Video URL**: Paste your Google Drive link or direct video URL
|
| 59 |
- Google Drive: `https://drive.google.com/file/d/FILE_ID/view`
|
|
@@ -70,53 +40,39 @@ git push
|
|
| 70 |
This is an example subtitle
|
| 71 |
```
|
| 72 |
|
| 73 |
-
3. Click **Process & Upload**
|
| 74 |
-
|
| 75 |
-
4. Wait for processing (may take a few minutes depending on video size)
|
| 76 |
|
| 77 |
-
|
| 78 |
|
| 79 |
## Technical Details
|
| 80 |
|
| 81 |
-
- **FFmpeg**: Used for burning subtitles
|
| 82 |
- **Gradio**: Web interface framework
|
| 83 |
- **gdown**: Google Drive file downloads
|
| 84 |
-
- **requests**: HTTP operations and uploading
|
| 85 |
-
|
| 86 |
-
## Files
|
| 87 |
-
|
| 88 |
-
- `app.py`: Main application code
|
| 89 |
-
- `requirements.txt`: Python dependencies
|
| 90 |
-
- `packages.txt`: System packages (FFmpeg)
|
| 91 |
-
- `README.md`: Documentation
|
| 92 |
|
| 93 |
## Important Notes
|
| 94 |
|
| 95 |
-
⚠️ **
|
| 96 |
|
| 97 |
-
⚠️ **File Size Limits**:
|
| 98 |
|
| 99 |
-
⚠️ **
|
| 100 |
|
| 101 |
## Troubleshooting
|
| 102 |
|
| 103 |
-
### Error: FFmpeg not found
|
| 104 |
-
- Make sure `packages.txt` contains `ffmpeg`
|
| 105 |
-
- Rebuild the space
|
| 106 |
-
|
| 107 |
### Error: Download failed
|
| 108 |
-
- Check if the Google Drive link is publicly accessible
|
| 109 |
-
- Verify the direct URL is correct
|
| 110 |
|
| 111 |
### Error: Upload to abyss.to failed
|
| 112 |
-
- Check
|
| 113 |
-
- Verify
|
| 114 |
-
- Check file size limits
|
| 115 |
|
| 116 |
## License
|
| 117 |
|
| 118 |
Apache 2.0
|
| 119 |
|
| 120 |
-
|
| 121 |
|
| 122 |
-
Built with Gradio, FFmpeg, and Python
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Subtitle Burner & Uploader
|
| 3 |
+
emoji: 🎬
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: "4.16.0"
|
| 8 |
+
python_version: "3.10"
|
| 9 |
+
app_file: app.py
|
| 10 |
+
pinned: false
|
| 11 |
+
license: apache-2.0
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
# 🎬 Video Subtitle Burner & Uploader
|
| 15 |
|
| 16 |
A Gradio application that burns subtitles into videos and uploads them to abyss.to
|
|
|
|
| 18 |
## Features
|
| 19 |
|
| 20 |
- ✅ Download videos from Google Drive or direct URLs
|
| 21 |
+
- ✅ Burn SRT subtitles into video using FFmpeg
|
| 22 |
- ✅ Upload processed video to abyss.to (hydrax.net)
|
| 23 |
+
- ✅ Simple web interface with progress tracking
|
| 24 |
+
- ✅ Support for Sinhala and other Unicode subtitles
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
+
## How to Use
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
1. **Video URL**: Paste your Google Drive link or direct video URL
|
| 29 |
- Google Drive: `https://drive.google.com/file/d/FILE_ID/view`
|
|
|
|
| 40 |
This is an example subtitle
|
| 41 |
```
|
| 42 |
|
| 43 |
+
3. Click **Process & Upload** and wait for completion
|
|
|
|
|
|
|
| 44 |
|
| 45 |
+
4. Get the abyss.to upload response with your video link!
|
| 46 |
|
| 47 |
## Technical Details
|
| 48 |
|
| 49 |
+
- **FFmpeg**: Used for burning subtitles with custom styling
|
| 50 |
- **Gradio**: Web interface framework
|
| 51 |
- **gdown**: Google Drive file downloads
|
| 52 |
+
- **requests**: HTTP operations and file uploading
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
## Important Notes
|
| 55 |
|
| 56 |
+
⚠️ **Processing Time**: Video processing can take several minutes depending on video size and length
|
| 57 |
|
| 58 |
+
⚠️ **File Size Limits**: Large videos may take longer or fail on free tier
|
| 59 |
|
| 60 |
+
⚠️ **Subtitle Format**: Only SRT format is supported
|
| 61 |
|
| 62 |
## Troubleshooting
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
### Error: Download failed
|
| 65 |
+
- Check if the Google Drive link is publicly accessible (Anyone with the link can view)
|
| 66 |
+
- Verify the direct URL is correct and accessible
|
| 67 |
|
| 68 |
### Error: Upload to abyss.to failed
|
| 69 |
+
- Check the upload URL is correct
|
| 70 |
+
- Verify file size is within limits
|
|
|
|
| 71 |
|
| 72 |
## License
|
| 73 |
|
| 74 |
Apache 2.0
|
| 75 |
|
| 76 |
+
---
|
| 77 |
|
| 78 |
+
Built with ❤️ using Gradio, FFmpeg, and Python
|