https://github.com/i-redbyte/simple-video-info
Test server for receiving information about the uploaded video
https://github.com/i-redbyte/simple-video-info
Last synced: about 1 year ago
JSON representation
Test server for receiving information about the uploaded video
- Host: GitHub
- URL: https://github.com/i-redbyte/simple-video-info
- Owner: i-redbyte
- Created: 2019-12-09T19:05:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-12T11:28:56.000Z (over 5 years ago)
- Last Synced: 2025-01-31T07:15:14.535Z (over 1 year ago)
- Language: Go
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple video info server
=======
A simple server that allows you to download video and get brief information about it
How run app
======
- First, install ffmpeg 3.x libraries on your system.
(For example for Mac OS:**brew install sy1vain/ffmpeg/ffmpeg@3.4**)
- For run: go run -tags ffmpeg33 *.go
- For build: go build -tags ffmpeg33
- Request example: curl -X POST \
http://localhost:4000/api/uploadVideo \
-F file=@/path_to_video_file
- Response example:
```json
{
"video": {
"name": "h263",
"width": 176,
"height": 144,
"bitRate": 124428,
"duration": "36.133984375s"
},
"audio": {
"name": "amrnb",
"bitRate": 12804,
"duration": "36.021s"
}
}
```