So, i took a look at my log files from yesterday and found this: It makes sense that it is ffmpeg because it needs to cache some data and trascode before we can watch it. This apparently isn't the case because i literally watched the FFmpeg service terminate and spawn a new session every time it was freeze. So, at first, i thought maybe my hard drive was having issues since after all it was transcoding and needs to store that somewhere. Sometimes it would continue for longer but i think you get the idea that it was not smooth, consistent playback. Last night, it would play for about 1 second, freeze for 5, then start again for 1 second, etc. More recently, it started happening more and more frequently. I would be watching live TV and all of a sudden the picture and sound would freeze for about 4-5 seconds then continue playing as if nothing happened. Stream WITHOUT decoding using VAAPI and object detection works :įfmpeg -progress pipe:5 -analyzeduration 1000000000 -probesize 1000000000 -stream_loop -1 -fflags +igndts -loglevel warning -re -i "" -strict -2 -c:a copy -c:v copy -preset ultrafast -f hls -hls_time 2 -hls_list_size 3 -start_number 0 -hls_allow_cache 0 -hls_flags +delete_segments+omit_endlist "/dev/shm/streams/JKdCv2UYdE/Camera_0/s.I noticed this issue a few revisions back and essentially, things would play out like this. Unfortunately I don't have any clear error messages to help debugging (I also asked for help on the Shinobi forum to get more info on this error). ( but works in a privileged lxc container )įfmpeg -progress pipe:5 -analyzeduration 1000000000 -probesize 1000000000 -stream_loop -1 -fflags +igndts -hwaccel vaapi -loglevel warning -re -i "" -strict -2 -c:a copy -c:v copy -preset ultrafast -f hls -hls_time 2 -hls_list_size 3 -start_number 0 -hls_allow_cache 0 -hls_flags +delete_segments+omit_endlist "/dev/shm/streams/JKdCv2UYdE/Camera_0/s.m3u8" -s 640x480 -vf "fps=1" -an -f singlejpeg pipe:4 Stream decoding using VAAPI and object detection doens't works : So I am using a Shinobi camera server which uses FFmpeg, so the FFmpeg commands below are executed through Shinobi.įfmpeg -progress pipe:5 -analyzeduration 1000000000 -probesize 1000000000 -stream_loop -1 -fflags +igndts -hwaccel vaapi -loglevel warning -re -i "" -strict -2 -c:a copy -c:v copy -preset ultrafast -f hls -hls_time 2 -hls_list_size 3 -start_number 0 -hls_allow_cache 0 -hls_flags +delete_segments+omit_endlist "/dev/shm/streams/JKdCv2UYdE/Camera_0/s.m3u8" : /dev/dri dev/dri none bind,optional,create=dir Here are the options that I added in the config of my LXC: First I made this config in a privileged container without having any problems.įor security reasons I redid the same config in an unprivileged container.įor the GPU passthrough I was inspired by this article:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |