File size: 1,348 Bytes
e5d90cf
31adef6
 
 
 
e5d90cf
 
 
 
31adef6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: Video Processing API
emoji: 🎬
colorFrom: blue
colorTo: green
sdk: docker
pinned: false
---

# Video Processing API

A FastAPI-based video processing service that provides video clipping and audio extraction capabilities.

## Features

- **Video Clipping**: Extract specific segments from videos
- **Audio Extraction**: Extract audio tracks from video files
- **Multiple Format Support**: Support for various video and audio formats
- **RESTful API**: Easy-to-use HTTP endpoints

## API Endpoints

### Video Clipping
```
POST /video/clip
```
Clip a video segment between start and end times.

### Audio Extraction
```
POST /video/extract-audio
```
Extract audio from video files.

### File Upload
```
POST /files/upload
```
Upload video files for processing.

## Usage

1. Upload your video file using the `/files/upload` endpoint
2. Use the returned file path to process the video
3. Download the processed result

## Supported Formats

- **Video**: MP4, AVI, MOV, WebM
- **Audio**: MP3, WAV, AAC

## Technical Details

Built with:
- FastAPI for the web framework
- MoviePy for video processing
- FFmpeg for media handling
- Docker for containerization

## Local Development

```bash
# Install dependencies
pip install -r requirements.txt

# Run the application
python main.py
```

The API will be available at `http://localhost:8000`