OK, I have it repeatable manual: command and arguments captured are in the script below. Forcing the number of buffers made no change (strace still sees 6 being requested even with the change) Any thoughts on other arguments to change?
#!/bin/sh
args="-hide_banner -nostats -loglevel warning -noautoscale -fflags discardcorrupt+genpts -f mpegts -copyts -probesize 8000000 -i - -num_capture_buffe
rs 3 -num_output_buffers 3 -enc_time_base -1 -max_muxing_queue_size 4096 -muxdelay 0 -map 0:v:0? -map 0:a? -ignore_unknown -sn -c:v h264_v4l2m2m -g:v
60 -force_key_frames:v source -profile:v high -filter:v fastdeint=blend,scale_v4l2m2m=-2:min(ih\,1080) -b:v 10000k -minrate 9000k -maxrate 11000k -b
ufsize 20000k -c:a aac -ac 2 -b:a 256k -filter:a aresample=async=1 -f hls -hls_time 0.010000 -hls_list_size 360000 -hls_delete_threshold 1 -hls_flags
temp_file+delete_segments -start_number 1"
curl http://192.168.1.223:5004/auto/v5.1 | sudo /mnt/Media/dvr/config/2021.10.25.1801/ffmpeg ${args} /home/Justin/teststream.m3u8
./test
output VIDIOC_REQBUFS failed: Invalid argument #
no v4l2 output context's buffers
[Parsed_scale_v4l2m2m_1 @ 0x14eb89f0] can't configure encoder
[Parsed_scale_v4l2m2m_1 @ 0x14eb89f0] Failed to configure output pad on Parsed_scale_v4l2m2m_1
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[aac @ 0x14b7f3f0] 2 frames left in the queue on closing
[aac @ 0x14d0ebf0] 2 frames left in the queue on closing
Changing from channel 5.1 (1080i) to 6.1 (720p) in the curl results in a success:
./test
[hls @ 0x18833f50] Non-monotonous DTS in output stream 0:0; previous: 5860186884, current: 0; changing to 5860186885. This may result in incorrect timestamps in the output file.
[hls @ 0x18833f50] Non-monotonous DTS in output stream 0:0; previous: 5860276974, current: 0; changing to 5860276975. This may result in incorrect timestamps in the output file.
[hls @ 0x18833f50] Non-monotonous DTS in output stream 0:0; previous: 5860367064, current: 0; changing to 5860367065. This may result in incorrect timestamps in the output file.