port: 8888 mirakurunPath: http://localhost:40772/ # dbtype: sqlite # sqlite: # extensions: # - '/hoge/regexp.dylib' # regexp: true dbtype: mysql mysql: host: localhost port: 3306 user: epgstation password: epgstation database: epgstation epgUpdateIntervalTime: 10 conflictPriority: 1 recPriority: 2 #recordedFormat: '%YEAR%年%MONTH%月%DAY%日%HOUR%時%MIN%分%SEC%秒-%TITLE%' recordedFormat: '%YEAR%_%MONTH%_%DAY%_%HOUR%_%MIN%_%SEC%_%TITLE%' recordedFileExtension: .m2ts recorded: - name: recorded path: '%ROOT%/recorded' thumbnail: '%ROOT%/thumbnail' thumbnailSize: 480x270 thumbnailPosition: 5 ffmpeg: /usr/bin/ffmpeg ffprobe: /usr/bin/ffprobe encodeProcessNum: 4 concurrentEncodeNum: 1 encode: - name: H.264 cmd: '%NODE% %ROOT%/config/enc.js' suffix: .mp4 rate: 4.0 urlscheme: m2ts: ios: vlc-x-callback://x-callback-url/stream?url=PROTOCOL%3A%2F%2FADDRESS android: intent://ADDRESS#Intent;action=android.intent.action.VIEW;type=video/*;scheme=PROTOCOL;end video: ios: infuse://x-callback-url/play?url=PROTOCOL://ADDRESS android: intent://ADDRESS#Intent;action=android.intent.action.VIEW;type=video/*;scheme=PROTOCOL;end download: ios: vlc-x-callback://x-callback-url/download?url=PROTOCOL%3A%2F%2FADDRESS&filename=FILENAME stream: live: ts: m2ts: - name: 720p cmd: '%FFMPEG% -re -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -threads 0 -c:a aac -ar 48000 -b:a 192k -ac 2 -c:v h264_qsv -vf yadif,scale=-2:720 -b:v 3000k -preset veryfast -y -f mpegts pipe:1' - name: 480p cmd: '%FFMPEG% -re -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -threads 0 -c:a aac -ar 48000 -b:a 128k -ac 2 -c:v h264_qsv -vf yadif,scale=-2:480 -b:v 1500k -preset veryfast -y -f mpegts pipe:1' - name: 無変換 m2tsll: - name: 720p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -f mpegts -analyzeduration 500000 -i pipe:0 -map 0 -c:s copy -c:d copy -ignore_unknown -fflags nobuffer -flags low_delay -max_delay 250000 -max_interleave_delta 1 -threads 0 -c:a aac -ar 48000 -b:a 192k -ac 2 -c:v h264_vaapi -flags +cgop -vf deinterlace_vaapi,scale_vaapi=w=-2:h=720 -b:v 3000k -preset veryfast -y -f mpegts pipe:1' - name: 480p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -f mpegts -analyzeduration 500000 -i pipe:0 -map 0 -c:s copy -c:d copy -ignore_unknown -fflags nobuffer -flags low_delay -max_delay 250000 -max_interleave_delta 1 -threads 0 -c:a aac -ar 48000 -b:a 128k -ac 2 -c:v h264_vaapi -flags +cgop -vf deinterlace_vaapi,scale_vaapi=w=-2:h=480 -b:v 1500k -preset veryfast -y -f mpegts pipe:1' webm: - name: 720p cmd: '%FFMPEG% -re -dual_mono_mode main -i pipe:0 -sn -threads 3 -c:a libvorbis -ar 48000 -b:a 192k -ac 2 -c:v libvpx-vp9 -vf yadif,scale=-2:720 -b:v 3000k -deadline realtime -speed 4 -cpu-used -8 -y -f webm pipe:1' - name: 480p cmd: '%FFMPEG% -re -dual_mono_mode main -i pipe:0 -sn -threads 2 -c:a libvorbis -ar 48000 -b:a 128k -ac 2 -c:v libvpx-vp9 -vf yadif,scale=-2:480 -b:v 1500k -deadline realtime -speed 4 -cpu-used -8 -y -f webm pipe:1' mp4: - name: 720p cmd: '%FFMPEG% -re -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -threads 0 -c:a aac -ar 48000 -b:a 192k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=720 -b:v 3000k -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1' - name: 480p cmd: '%FFMPEG% -re -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -threads 0 -c:a aac -ar 48000 -b:a 128k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=480 -b:v 1500k -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1' hls: - name: 720p cmd: '%FFMPEG% -re -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -map 0 -threads 0 -ignore_unknown -max_muxing_queue_size 1024 -f hls -hls_time 3 -hls_list_size 17 -hls_allow_cache 1 -hls_segment_filename %streamFileDir%/stream%streamNum%-%09d.ts -hls_flags delete_segments -c:a aac -ar 48000 -b:a 192k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=720 -b:v 3000k -preset veryfast -flags +loop-global_header %OUTPUT%' - name: 480p cmd: '%FFMPEG% -re -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -map 0 -threads 0 -ignore_unknown -max_muxing_queue_size 1024 -f hls -hls_time 3 -hls_list_size 17 -hls_allow_cache 1 -hls_segment_filename %streamFileDir%/stream%streamNum%-%09d.ts -hls_flags delete_segments -c:a aac -ar 48000 -b:a 128k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=480 -b:v 1500k -preset veryfast -flags +loop-global_header %OUTPUT%' recorded: ts: webm: - name: 720p cmd: '%FFMPEG% -dual_mono_mode main -i pipe:0 -sn -threads 3 -c:a libvorbis -ar 48000 -b:a 192k -ac 2 -c:v libvpx-vp9 -vf yadif,scale=-2:720 -b:v 3000k -deadline realtime -speed 4 -cpu-used -8 -y -f webm pipe:1' - name: 480p cmd: '%FFMPEG% -dual_mono_mode main -i pipe:0 -sn -threads 3 -c:a libvorbis -ar 48000 -b:a 128k -ac 2 -c:v libvpx-vp9 -vf yadif,scale=-2:480 -b:v 1500k -deadline realtime -speed 4 -cpu-used -8 -y -f webm pipe:1' mp4: - name: 720p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -threads 0 -c:a aac -ar 48000 -b:a 192k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=720 -b:v 3000k -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1' - name: 480p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -threads 0 -c:a aac -ar 48000 -b:a 128k -ac 2 -c:v vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=480 -b:v 1500k -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1' hls: - name: 720p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -map 0 -threads 0 -ignore_unknown -max_muxing_queue_size 1024 -f hls -hls_time 3 -hls_list_size 0 -hls_allow_cache 1 -hls_segment_filename %streamFileDir%/stream%streamNum%-%09d.ts -hls_flags delete_segments -c:a aac -ar 48000 -b:a 192k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=480 -b:v 3000k -preset veryfast -flags +loop-global_header %OUTPUT%' - name: 480p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i pipe:0 -sn -map 0 -threads 0 -ignore_unknown -max_muxing_queue_size 1024 -f hls -hls_time 3 -hls_list_size 0 -hls_allow_cache 1 -hls_segment_filename %streamFileDir%/stream%streamNum%-%09d.ts -hls_flags delete_segments -c:a aac -ar 48000 -b:a 128k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=480 -b:v 1500k -preset veryfast -flags +loop-global_header %OUTPUT%' encoded: webm: - name: 720p cmd: '%FFMPEG% -dual_mono_mode main -ss %SS% -i %INPUT% -sn -threads 3 -c:a libvorbis -ar 48000 -b:a 192k -ac 2 -c:v libvpx-vp9 -vf scale=-2:720 -b:v 3000k -deadline realtime -speed 4 -cpu-used -8 -y -f webm pipe:1' - name: 480p cmd: '%FFMPEG% -dual_mono_mode main -ss %SS% -i %INPUT% -sn -threads 3 -c:a libvorbis -ar 48000 -b:a 128k -ac 2 -c:v libvpx-vp9 -vf scale=-2:480 -b:v 1500k -deadline realtime -speed 4 -cpu-used -8 -y -f webm pipe:1' mp4: - name: 720p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -ss %SS% -i %INPUT% -sn -threads 0 -c:a aac -ar 48000 -b:a 192k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=720 -b:v 3000k -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1' - name: 480p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -ss %SS% -i %INPUT% -sn -threads 0 -c:a aac -ar 48000 -b:a 128k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=480 -b:v 1500k -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1' hls: - name: 720p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -ss %SS% -i %INPUT% -sn -threads 0 -ignore_unknown -max_muxing_queue_size 1024 -f hls -hls_time 3 -hls_list_size 0 -hls_allow_cache 1 -hls_segment_filename %streamFileDir%/stream%streamNum%-%09d.ts -hls_flags delete_segments -c:a aac -ar 48000 -b:a 192k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=720 -b:v 3000k -preset veryfast -flags +loop-global_header %OUTPUT%' - name: 480p cmd: '%FFMPEG% -dual_mono_mode main -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -ss %SS% -i %INPUT% -sn -threads 0 -ignore_unknown -max_muxing_queue_size 1024 -f hls -hls_time 3 -hls_list_size 0 -hls_allow_cache 1 -hls_segment_filename %streamFileDir%/stream%streamNum%-%09d.ts -hls_flags delete_segments -c:a aac -ar 48000 -b:a 128k -ac 2 -c:v h264_vaapi -vf deinterlace_vaapi,scale_vaapi=w=-2:h=480 -b:v 3000k -preset veryfast -flags +loop-global_header %OUTPUT%'