![quicksync async depth quicksync async depth](https://patent.nweon.com/wp-content/uploads/2019/01/eab4ee403ad315637b01324939e1273c.png)
I think my first implementation seems to be working best, even though it's still not showing video: $('#webcam_container').replaceWith('') It shows one frame only, not continuous playback. Hls.on(_PARSED,function() ') Īpparently I was mistaken about the static page playing. Var video = document.getElementById('video')
#Quicksync async depth code
I managed to get a static html page to play the stream successfully, but adding this code to the plugin just produces a missing div I did notice that the CPU usage on this is till pretty high ~28%, but it's certainly way better than the 61-75% utilization I was getting before ffmpeg -vaapi_device /dev/dri/renderD128 -i -vf 'format=nv12,hwupload' -c:v h264_vaapi -preset veryfast -c:a aac -b:a 128k -ac 2 -f hls -hls_time 4 -hls_playlist_type event "/tmp/stream.m3u8" Here's the gist I've been working from, for contextĪt the moment that's still not working because of the dependency and build configurations no longer being up to dateĮdit: I finally managed to build a version of libav and ffmpeg from source with VAAPI enabled, and got an HLS stream writing to a file, but not sure, yet, if it's working as expected. Sadly the majority of guides I've been reading up on were published before a major change in ffmpeg that made a bunch of the include flags no longer work, so it's been hairy trying to pick that all apart. So yeah that's the first thing I'll need to set up.
![quicksync async depth quicksync async depth](https://visualstudiomagazine.com/-/media/ECG/visualstudiomagazine/Images/introimages2014/0415vsm_PVogelPType.jpg)
I already have a solution that is able to transcode from RTSP to HLS, however it's still very CPU intensive, so I'm working on building a version of ffmpeg from source that will allow me to offload transcoding to VAAPI/QuickSync hardware. Ok then I was already looking into the right things.