Add a media role for image/video viewers/editors.
This commit is contained in:
11
ansible/roles/media/files/cast_file_intel
Normal file
11
ansible/roles/media/files/cast_file_intel
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
|
||||
ffmpeg -re -vaapi_device /dev/dri/renderD128 -i "$1" -vf 'format=nv12,hwupload' -c:v h264_vaapi -r 30 -g 30 -loop -1 -c:a aac -b:a 160k -ar 44100 -strict -2 -f flv rtmp:172.16.16.44/live/test &
|
||||
ffmpegpid=$!
|
||||
|
||||
sleep 1
|
||||
castnow --exit 'https://broadcast.fizz.buzz/hls/hls/test.m3u8'
|
||||
wait "$ffmpegpid"
|
||||
|
||||
sleep 10
|
||||
11
ansible/roles/media/files/cast_file_nvidia
Normal file
11
ansible/roles/media/files/cast_file_nvidia
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
|
||||
ffmpeg -re -i "$1" -vcodec h264_nvenc -r 30 -g 30 -loop -1 -c:a aac -b:a 160k -ar 44100 -strict -2 -f flv rtmp:172.16.16.44/live/test &
|
||||
ffmpegpid=$!
|
||||
|
||||
sleep 1
|
||||
castnow --exit 'https://broadcast.fizz.buzz/hls/hls/test.m3u8'
|
||||
wait "$ffmpegpid"
|
||||
|
||||
sleep 10
|
||||
25
ansible/roles/media/files/mpv.conf
Normal file
25
ansible/roles/media/files/mpv.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
# To debug hardware video acceleration:
|
||||
# mpv --hwdec=auto --msg-level=vd=v,vo=v,vo/gpu/vaapi-egl=trace
|
||||
|
||||
# GPU Decoding
|
||||
hwdec=auto
|
||||
# Allow CPU processing via filters:
|
||||
#hwdec=auto-copy
|
||||
|
||||
# Use higher quality gpu rendering
|
||||
profile=gpu-hq
|
||||
scale=ewa_lanczossharp
|
||||
cscale=ewa_lanczossharp
|
||||
|
||||
# Instead of dropping frames, re-sample audio which may cause a slight pitch change
|
||||
# ISSUE: caused frame stutter on Louie S01E03
|
||||
# video-sync=display-resample
|
||||
|
||||
# Make motion smoother when video frame rate != monitor refresh rate
|
||||
interpolation
|
||||
tscale=oversample
|
||||
|
||||
# Load a lot of the file into memory
|
||||
# cache=yes
|
||||
# demuxer-max-bytes=123400KiB
|
||||
# demuxer-readahead-secs=20
|
||||
Reference in New Issue
Block a user