https://github.com/tboy1337/dav2mp4-converter
dav to mp4 converter
https://github.com/tboy1337/dav2mp4-converter
Last synced: 3 months ago
JSON representation
dav to mp4 converter
- Host: GitHub
- URL: https://github.com/tboy1337/dav2mp4-converter
- Owner: tboy1337
- License: mit
- Created: 2025-01-12T04:45:15.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-01-12T05:24:49.000Z (3 months ago)
- Last Synced: 2025-01-12T05:25:30.707Z (3 months ago)
- Language: Python
- Homepage: https://github.com/tboy1337
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dav2mp4-converter
A lightweight Python utility for converting DAV video files (commonly used in CCTV systems) to MP4 format. Built with OpenCV, this tool supports both single file conversion and batch processing.
## Features
- Convert single DAV files to MP4 format
- Batch conversion of entire directories
- Progress tracking during conversion
- Preserve original video properties (FPS, resolution)
- Simple command-line interface
- Error handling and validation
- Automatic output filename generation## Prerequisites
- Python 3.6 or higher
- OpenCV (opencv-python)## Installation
1. Download or clone the repository:
```bash
git clone https://github.com/yourusername/dav2mp4-converter.git
cd dav2mp4-converter
```2. Install the required dependencies:
```bash
pip install -U opencv-python
```## Usage
### Converting a Single File
```bash
python dav2mp4.py --input path/to/file.dav --output path/to/output.mp4
```or
```bash
python dav2mp4.py --input path/to/file.dav # Output filename and location will be the same as the input.
```### Batch Converting a Directory
```bash
python dav2mp4.py --directory path/to/directory
```## Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE.txt) file for details.