seascheng
seascheng
> @proverbs > 首先谢谢博主,文章写得很好,思路很清晰。 > 然后我有个问题,你这个middleware的实现执行是无序的。所以是不是把middleware放在trie的node里面,然后在search的时候collect所有的middlewares,这样更好? 代码看来,因为routerGroups中所有的RouterGroup,在添加时肯定是按照先父再子的顺序添加的,所以从头到尾遍历routerGroups这种简单的收集方式,也就是达成了实际路径中从左向右的查找过程。 所以顺序是可以保证的。 当然这种收集方式有个前提:分组中所有的前缀必须是静态路径,否则使用实际路由从全部分组做前缀匹配,无法保证收集的完整性。这也给上节的分组控制的使用加了限制。 如果我理解错了,还请指出。
@abhiTronix Thank you very much for your quick reply. full terminal log: ``` (yolo) cas-air@gpu-server:/data/sport/demo/deffcode_test$ python transcode_gpu_h264.py 15:41:05 :: Utilies :: INFO :: Running DeFFcode Version: 0.2.3 15:41:05 :: Helper...
@abhiTronix I'm new at this.please point me out if I'm wrong I have checked all params of this ffmpeg decode command It seams `-hwaccel_output_format cuda` and `-pix_fmt bgr24` should not...
@abhiTronix Sorry for this late response. `format=bgr24` could't be the output of `hwdownload.` ``` $ ffmpeg -y -vsync 0 -hwaccel_output_format cuda -hwaccel cuda -i input.mp4 -vf "scale_npp=format=yuv420p,hwdownload,format=bgr32,fps=25.0" -f rawvideo -...
@abhiTronix The new codes can run successfully ,and this output video could play. **Run your code:** ``` (yolo) cas-air@gpu-server:/data/sport/demo/deffcode_test$ python patch-31.py 16:18:19 :: Utilities :: INFO :: Running DeFFcode Version:...