Skip to content

Instantly share code, notes, and snippets.

@unlimish
Created April 7, 2019 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unlimish/6ffb006de2929c71cc908932e93a5b54 to your computer and use it in GitHub Desktop.
Save unlimish/6ffb006de2929c71cc908932e93a5b54 to your computer and use it in GitHub Desktop.
EPGsta
{
"readOnlyOnce": false,
"serverPort": "8888",
"mirakurunPath": "http+unix://%2Fvar%2Frun%2Fmirakurun.sock/",
"dbType": "sqlite3",
"recorded":"/recorded/epg_rec/",
"ffmpeg": "/usr/local/bin/ffmpeg",
"ffprobe": "/usr/local/bin/ffprobe",
"maxEncode": 2,
"encode": [
{
"name": "H264",
"cmd": "/bin/bash %ROOT%/config/enc.sh main",
"suffix": ".mp4",
"default": true
},
{
"name": "H264-sub",
"cmd": "/bin/bash %ROOT%/config/enc.sh sub",
"suffix": "-sub.mp4"
}
],
"recordedViewer": {
"ios": "infuse://x-callback-url/play?url=http://ADDRESS",
"android": "intent://ADDRESS#Intent;package=com.mxtech.videoplayer.ad;type=video;scheme=http;end"
},
"recordedDownloader": {
"ios": "vlc-x-callback://x-callback-url/download?url=http://ADDRESS&filename=FILENAME",
"android": "intent://ADDRESS#Intent;package=com.dv.adm;type=video;scheme=http;end"
},
"maxStreaming": 2,
"mpegTsStreaming": [
{
"name": "1280x720(main)",
"cmd": "%FFMPEG% -re -dual_mono_mode main -i pipe:0 -c:a aac -ar 48000 -ab 192k -ac 2 -c:v libx264 -s 1280x720 -vf yadif -preset veryfast -aspect 16:9 -vb 3000k -f mpegts pipe:1"
},
{
"name": "720x480(main)",
"cmd": "%FFMPEG% -re -dual_mono_mode main -i pipe:0 -c:a aac -ar 48000 -ab 128k -ac 2 -c:v libx264 -s 720x480 -vf yadif -preset veryfast -aspect 16:9 -vb 1500k -f mpegts pipe:1"
},
{
"name": "無変換"
}
],
"mpegTsViewer": {
"ios": "vlc-x-callback://x-callback-url/stream?url=http://ADDRESS",
"android": "intent://ADDRESS#Intent;package=com.mxtech.videoplayer.ad;type=video;scheme=http;end"
},
"recordedHLS": [
{
"name": "1280x720(main)",
"cmd": "%FFMPEG% -dual_mono_mode main -i %INPUT% -map 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 -threads auto -c:a aac -ar 48000 -ab 192k -ac 2 -c:v libx264 -s 1280x720 -preset veryfast -aspect 16:9 -vb 3000k -flags +loop-global_header %OUTPUT%"
},
{
"name": "720x480(main)",
"cmd": "%FFMPEG% -dual_mono_mode main -i %INPUT% -map 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 -threads auto -c:a aac -ar 48000 -ab 128k -ac 2 -c:v libx264 -s 720x480 -preset veryfast -aspect 16:9 -vb 1500k -flags +loop-global_header %OUTPUT%"
},
{
"name": "720x480(h265-main)",
"cmd": "%FFMPEG% -dual_mono_mode main -i %INPUT% -map 0 -ignore_unknown -max_muxing_queue_size 1024 -f hls -hls_time 3 -hls_list_size 0 -hls_allow_cache 1 -hls_segment_type fmp4 -hls_fmp4_init_filename stream%streamNum%-init.mp4 -hls_segment_filename stream%streamNum%-%09d.m4s -c:a aac -ar 48000 -ab 128k -ac 2 -c:v libx265 -s 720x480 -preset veryfast -aspect 16:9 -vb 350k -tag:v hvc1 %OUTPUT%"
}
],
"liveHLS": [
{
"name": "1280x720(main)",
"cmd": "%FFMPEG% -re -dual_mono_mode main -i pipe:0 -map 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 -threads auto -c:a aac -ar 48000 -ab 192k -ac 2 -c:v libx264 -s 1280x720 -preset veryfast -aspect 16:9 -vb 3000k -flags +loop-global_header %OUTPUT%"
},
{
"name": "720x480(main)",
"cmd": "%FFMPEG% -re -dual_mono_mode main -i pipe:0 -map 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 -threads auto -c:a aac -ar 48000 -ab 128k -ac 2 -c:v libx264 -s 720x480 -preset veryfast -aspect 16:9 -vb 1500k -flags +loop-global_header %OUTPUT%"
},
{
"name": "320x180(main)",
"cmd": "%FFMPEG% -re -dual_mono_mode main -i pipe:0 -map 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 -threads auto -c:a aac -ar 48000 -ab 48k -ac 2 -c:v libx264 -s 320x180 -preset veryfast -aspect 16:9 -vb 100k -maxrate 110k -bufsize 1000k -flags +loop-global_header %OUTPUT%"
}
],
"liveWebM": [
{
"name": "1280x720(main)",
"cmd": "%FFMPEG% -re -dual_mono_mode main -i pipe:0 -c:a libvorbis -b:a 192k -c:v vp8 -s 1280x720 -b:v 3000k -deadline realtime -speed 4 -cpu-used -8 -filter:v yadif -f webm pipe:1"
},
{
"name": "720x480(main)",
"cmd": "%FFMPEG% -re -dual_mono_mode main -i pipe:0 -c:a libvorbis -b:a 128k -c:v vp8 -s 720x480 -b:v 1500k -deadline realtime -speed 4 -cpu-used -8 -filter:v yadif -f webm pipe:1"
}
],
"liveMP4": [
{
"name": "1280x720",
"cmd": "%FFMPEG% -dual_mono_mode main -re -i pipe:0 -threads 0 -c:a aac -ar 48000 -ac 2 -ab 192k -c:v h264_nvenc -s 1280x720 -vb 3000k -filter:v yadif -profile:v baseline -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1"
},
{
"name": "720x480",
"cmd": "%FFMPEG% -dual_mono_mode main -re -i pipe:0 -threads 0 -c:a aac -ar 48000 -ac 2 -ab 128k -c:v h264_nvenc -s 720x480 -vb 1500k -filter:v yadif -profile:v baseline -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1"
}
],
"recordedStreaming": {
"webm": [
{
"name": "1280x720",
"cmd": "%FFMPEG% -dual_mono_mode main %RE% -i pipe:0 -threads 0 -c:a libvorbis -ar 48000 -ac 2 -c:v vp8 -s 1280x720 %VB% %VBUFFER% %AB% %ABUFFER% -deadline realtime -speed 4 -cpu-used -8 -filter:v yadif -y -f webm pipe:1",
"vb": "3000k",
"ab": "192k"
},
{
"name": "640x360",
"cmd": "%FFMPEG% -dual_mono_mode main %RE% -i pipe:0 -threads 0 -c:a libvorbis -ar 48000 -ac 2 -c:v vp8 -s 640x360 %VB% %VBUFFER% %AB% %ABUFFER% -deadline realtime -speed 4 -cpu-used -8 -filter:v yadif -y -f webm pipe:1",
"vb": "1500k",
"ab": "128k"
}
],
"mp4": [
{
"name": "1280x720",
"cmd": "%FFMPEG% -dual_mono_mode main %RE% -i pipe:0 -threads 0 -c:v h264_nvenc -c:a aac -ar 48000 -ac 2 -s 1280x720 %VB% %VBUFFER% %AB% %ABUFFER% -filter:v yadif -profile:v baseline -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1",
"vb": "3000k",
"ab": "192k"
},
{
"name": "640x360",
"cmd": "%FFMPEG% -dual_mono_mode main %RE% -i pipe:0 -threads 0 -c:v h264_nvenc -c:a aac -ar 48000 -ac 2 -s 640x360 %VB% %VBUFFER% %AB% %ABUFFER% -filter:v yadif -profile:v baseline -preset veryfast -tune fastdecode,zerolatency -movflags frag_keyframe+empty_moov+faststart+default_base_moof -y -f mp4 pipe:1",
"vb": "1500k",
"ab": "128k"
}
],
"mpegTs": [
{
"name": "1280x720 (H.264)",
"cmd": "%FFMPEG% -dual_mono_mode main %RE% -i pipe:0 -threads 0 -filter:v yadif -c:v h264_nvenc -c:a aac -ar 48000 -ac 2 -s 1280x720 %VB% %VBUFFER% %AB% %ABUFFER% -profile:v baseline -preset veryfast -tune fastdecode,zerolatency -y -f mpegts pipe:1",
"vb": "3000k",
"ab": "192k"
},
{
"name": "640x360 (H.264)",
"cmd": "%FFMPEG% -dual_mono_mode main %RE% -i pipe:0 -threads 0 -filter:v yadif -c:v h264_nvenc -c:a aac -ar 48000 -ac 2 -s 640x360 %VB% %VBUFFER% %AB% %ABUFFER% -profile:v baseline -preset veryfast -tune fastdecode,zerolatency -y -f mpegts pipe:1",
"vb": "1500k",
"ab": "128k"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment