mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-28 09:41:20 +00:00
update rtmp
This commit is contained in:
parent
46dbf7abda
commit
8f7c18ec37
@ -27,7 +27,8 @@ server:
|
|||||||
|
|
||||||
client:
|
client:
|
||||||
image: easypi/rtmp-client-arm
|
image: easypi/rtmp-client-arm
|
||||||
# command: ffmpeg -i /dev/video0 -video_size 640x480 -vf "hflip,vflip" -f flv rtmp://cctv.easypi.info/live/webcam
|
# command:
|
||||||
|
# - ffmpeg -i $$RTMP_DEV -video_size 800x600 -vf "hflip,vflip" -f flv $$RTMP_URI
|
||||||
devices:
|
devices:
|
||||||
- /dev/video0:/dev/video0
|
- /dev/video0:/dev/video0
|
||||||
environment:
|
environment:
|
||||||
@ -36,10 +37,10 @@ client:
|
|||||||
restart: always
|
restart: always
|
||||||
```
|
```
|
||||||
|
|
||||||
> - You can run customized `ffmpeg` command.
|
> - You can run customized command. (It should be single item list!)
|
||||||
> - Input can be stream instead of device. (It works as a relay!)
|
> - Input can be a stream instead of device. (It works as a relay!)
|
||||||
|
|
||||||
## Server
|
## Server Setup
|
||||||
|
|
||||||
```
|
```
|
||||||
$ cd ~/fig/rtmp/
|
$ cd ~/fig/rtmp/
|
||||||
@ -47,7 +48,7 @@ $ docker-compose up -d server
|
|||||||
$ youtube-dl 'https://www.youtube.com/watch?v=lJZlz-WnXzU' -o data/video.mp4
|
$ youtube-dl 'https://www.youtube.com/watch?v=lJZlz-WnXzU' -o data/video.mp4
|
||||||
```
|
```
|
||||||
|
|
||||||
## Client
|
## Client Setup
|
||||||
|
|
||||||
```
|
```
|
||||||
# play remote video (remote -> local)
|
# play remote video (remote -> local)
|
||||||
@ -83,7 +84,7 @@ $ cd ~/fig/rtmp/
|
|||||||
$ docker-compose up -d client
|
$ docker-compose up -d client
|
||||||
```
|
```
|
||||||
|
|
||||||
## OBS
|
## OBS Setup
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
Stream Type: Custom Streaming Server
|
Stream Type: Custom Streaming Server
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
client:
|
client:
|
||||||
image: easypi/rtmp-client-arm
|
image: easypi/rtmp-client-arm
|
||||||
|
# command:
|
||||||
|
# - ffmpeg -i $$RTMP_DEV -video_size 800x600 -f flv $$RTMP_URI
|
||||||
devices:
|
devices:
|
||||||
- /dev/video0:/dev/video0
|
- /dev/video0:/dev/video0
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
Reference in New Issue
Block a user