Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dimMaryanto93/springboot2-upload-video-example
Upload video, using springboot then compressed
https://github.com/dimMaryanto93/springboot2-upload-video-example
commons-fileupload ffmpeg springboot2
Last synced: 2 months ago
JSON representation
Upload video, using springboot then compressed
- Host: GitHub
- URL: https://github.com/dimMaryanto93/springboot2-upload-video-example
- Owner: dimMaryanto93
- License: gpl-3.0
- Created: 2019-05-17T07:46:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T08:12:44.000Z (almost 2 years ago)
- Last Synced: 2024-11-25T11:51:38.291Z (2 months ago)
- Topics: commons-fileupload, ffmpeg, springboot2
- Language: Java
- Homepage:
- Size: 41 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Springboot Rest API upload media
Project example upload video using springboot v2 via Rest API, then compressed and generated thumbnails of videos.
System Required
- maven
- Java 8
- [ffmpeg](https://ffmpeg.org)## Run application
prepared database using postgresql:
```bash
# create schema user
create user uploader with superuser login password 'uploader';# crete schema database
create database uploader;
```run springboot project:
```bash
mvn clean spring-boot:run
```## Run Application with docker-componse
Build image using maven command:
```bash
mvn clean install -DskipTests
```it's will build the image, then you can run the container with docker-compose
```docker
docker-compose up -d
```## example Rest API
```bash
curl -X POST \
http://localhost:8080/api/media/upload/video \
-H 'Content-Type: application/octet-stream' \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F 'content=@/Users/user/Movies/file-video.mvk'
```