2020-04-11, 06:54 AM
(2020-04-11, 06:39 AM)sub Wrote: You can override the string in the <TranscodeHLS> setting of config.xml.
Look at the "Using transcoder args" log message in nrecord.log to give you the starting point for replacing 'default' with.
Thanks Sub,
I have added it here:
<TranscodeHLS>default</TranscodeHLS>
<VideoEncoder>D3D11VA</VideoEncoder>
<TranscodeArgsHLS>-y [SEEK] -i [SOURCE] -map_metadata -1 -threads 0 -map 0:0 -map 0:1 -map -0 -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -b:v [BITRATE] -maxrate [BITRATE] -bufsize 2698344 -vsync vfr -profile:v high -level 41 -aspect [ASPECT] -force_key_frames \"expr:gte(t,n_forced*3)\" -s [RESOLUTION] [SUBTITLES] -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 128000 -af \"adelay=1,aresample=async=1\" -hls_time 3 -start_number 0 -hls_list_size 0 -init_hw_device qsv=hw -filter_hw_device hw -vf hwupload=extra_hw_frames=64,format=qsv -y [TARGET]</TranscodeArgsHLS>
But it does not pick it up:
2020-04-11 09:48:36.856 [DEBUG][15] InitiateTranscode@2..
2020-04-11 09:48:36.884 [DEBUG][15] Using directx encoder
2020-04-11 09:48:36.886 [DEBUG][15] CaptureSource.LoadAll()
2020-04-11 09:48:36.895 [DEBUG][15] Default transcoder args: -y [SEEK] -hwaccel:v:0 d3d11va -hwaccel_device:v:0 0 -i [SOURCE] -map_metadata -1 -threads 0 -ignore_unknown -map 0:v:0? -map 0:a:[AUDIO_STREAM] -map -0 -codec:v:0 h264_qsv -b:v [BITRATE] -maxrate [BITRATE] -bufsize [BUFSIZE] -codec:a:0 [AUDIO_CODEC] -strict experimental -ac [AUDIO_CHANNELS] -ab [AUDIO_BITRATE] -hls_time [SEGMENT_DURATION] -start_number 0 -hls_list_size [SEGMENT_COUNT] -y [TARGET]
2020-04-11 09:48:36.897 [DEBUG][20] Got request [::ffff:192.168.178.74]: /services/service
Have I put it in the wrong place?