more tweaks
This commit is contained in:
parent
b1552fe3de
commit
03e5a47910
1 changed files with 3 additions and 3 deletions
|
|
@ -211,11 +211,11 @@ in
|
|||
"-rc_mode CQP -qp ${toString streamCfg.vaapiQp}";
|
||||
videoCodecArgs =
|
||||
if streamCfg.useVaapi then
|
||||
"-vaapi_device ${streamCfg.vaapiDevice} -vf format=nv12,hwupload -c:v h264_vaapi ${vaapiRateControlArgs} -g ${
|
||||
"-vaapi_device ${streamCfg.vaapiDevice} -vf format=nv12,hwupload -c:v h264_vaapi -profile:v main -level:v 4.1 ${vaapiRateControlArgs} -g ${
|
||||
toString (streamCfg.framerate * 2)
|
||||
} -bf 0"
|
||||
else
|
||||
"-vcodec libx264 -tune zerolatency -preset ${streamCfg.preset} ${x264RateControlArgs} -g ${
|
||||
"-vcodec libx264 -pix_fmt yuv420p -profile:v main -level:v 4.1 -tune zerolatency -preset ${streamCfg.preset} ${x264RateControlArgs} -g ${
|
||||
toString (streamCfg.framerate * 2)
|
||||
} -bf 0";
|
||||
in
|
||||
|
|
@ -230,7 +230,7 @@ in
|
|||
Restart = "always";
|
||||
RestartSec = "2";
|
||||
Environment = optional (streamCfg.vaapiDriver != null) "LIBVA_DRIVER_NAME=${streamCfg.vaapiDriver}";
|
||||
ExecStart = "${pkgs.ffmpeg}/bin/ffmpeg -hide_banner -loglevel warning -f v4l2 -framerate ${toString streamCfg.framerate} -video_size ${streamCfg.videoSize} -i ${streamCfg.device} ${videoCodecArgs} -f rtsp ${streamCfg.rtspUrl}";
|
||||
ExecStart = "${pkgs.ffmpeg}/bin/ffmpeg -hide_banner -loglevel warning -f v4l2 -framerate ${toString streamCfg.framerate} -video_size ${streamCfg.videoSize} -i ${streamCfg.device} ${videoCodecArgs} -f rtsp -rtsp_transport tcp ${streamCfg.rtspUrl}";
|
||||
};
|
||||
}
|
||||
) effectiveStreams;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue