update readme
This commit is contained in:
17
templates/docker-compose-jellyfin.yaml
Normal file
17
templates/docker-compose-jellyfin.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
services:
|
||||
jellyfin:
|
||||
image: lscr.io/linuxserver/jellyfin:latest
|
||||
container_name: jellyfin
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Etc/UTC
|
||||
volumes:
|
||||
- ./config:/config
|
||||
- {{ recording_capture_folder }}:/data/recordings:ro
|
||||
ports:
|
||||
- {{ jellyfin_port }}:8096
|
||||
restart: always
|
||||
network_mode: bridge
|
||||
...
|
||||
@ -4,11 +4,12 @@ After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
KillSignal=SIGINT
|
||||
WorkingDirectory={{ streaming_working_folder }}
|
||||
ExecStart={{ streaming_working_folder }}/stream_service.sh
|
||||
Restart=always
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
|
||||
@ -1,12 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
ffmpeg -hwaccel cuda -hwaccel_output_format cuda \
|
||||
-f alsa -ac 2 -i {{ audio_device }} -thread_queue_size 64 \
|
||||
DATE=$(date +'%Y%m%d-%H%M%S')
|
||||
|
||||
ffmpeg \
|
||||
-f alsa -i {{ audio_device }} -thread_queue_size 64 \
|
||||
-f v4l2 -framerate 30 -video_size 640x480 -input_format yuyv422 -i {{ video_device }} \
|
||||
-c:v libx264 -preset ultrafast -tune zerolatency \
|
||||
-vf "format=yuv420p" -g 60 -c:a aac -b:a 128k -ar 44100 \
|
||||
-f flv rtmp://0.0.0.0:1935/stream
|
||||
|
||||
|
||||
|
||||
-c:v libx264 -preset fast -crf 23 -c:a aac -b:a 192k -tune zerolatency \
|
||||
-f rtsp rtsp://localhost:8554/stream \
|
||||
-f mp4 {{ recording_capture_folder }}/$DATE.mp4
|
||||
|
||||
|
||||
10
templates/vcr_rip.conf
Normal file
10
templates/vcr_rip.conf
Normal file
@ -0,0 +1,10 @@
|
||||
[vcr_rip]
|
||||
path = {{ working_storage }}
|
||||
writable = yes
|
||||
read only = no
|
||||
only guest = yes
|
||||
public = yes
|
||||
guest ok = yes
|
||||
guest only = yes
|
||||
guest account = nobody
|
||||
browsable = yes
|
||||
Reference in New Issue
Block a user