所以avcodec_receive_frame之後,要判斷AVFrame中是否有數據。
異步、同步各有好處。
命令如下: freeswitch@telecom> conference 3500 list 9;sofia/internal/[email protected];2b9fdbc4-d26d-4659-a643-1cc69adea0
關鍵:NVIDIA DECODER的結果是NV12,需要轉換爲YUV420P。 #include <stdio.h> #include <stdlib.h> extern "C" { #include <libavcodec/a
在FreeSwitch順利啓用NVIDIA ENCODER之後(至少快10倍),下一步自然就是使用DECODER了。吾信心滿滿,結果是綠屏。嗯?怎麼回事? 從比例上來看,是解碼成功。 跟蹤代碼,也確實解碼成功。 既然是綠屏,應該是沒數
檢查有哪些CODEC show codecs freeswitch@telecom> show codecs type,name,ikey codec,ADPCM (IMA),mod_spandsp codec,AMR / Band
參考: https://blog.csdn.net/quantum7/article/details/107119487 我們日常所用格式雖然是RGB,視頻喜歡YUV420。如上文所述,解碼後的數據是NV12,如何轉換爲YUV420P
關鍵就是要有SDL 安裝SDL(失敗) yum install -y SDL-devel 編譯SDL2(成功) https://blog.csdn.net/quantum7/article/details/104173159 編譯參數
最近成功完成。爲了方便需要的朋友,在此詳細記錄。 安裝nv-codec-headers git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git cd nv-c
開始懷疑是參數問題,後來反覆調整,都沒有解決。再後來,看到別人提示,重新編譯了一次,就沒有這個錯誤了。
看看支持哪些格式 ffmpeg -pix_fmts YUV轉H264 FILE=HeavyHand_1080p.yuv # use nv encoder ffmpeg -s 1920x1080 -pix_fmt yuv420p
代碼 https://blog.csdn.net/quantum7/article/details/106724308 github https://github.com/quantum6/doubango-quantum6
下載頭文件 git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git cd nv-codec-headers sudo make sudo make ins
都說要如下操作,其實並不能解決。 git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git make sudo make install 主要是配置上要正確。參
PKG_CONFIG_PATH要包含ffnvcodec.pc的目錄。 吾有詳細的腳本,參考: https://quantum6.blog.csdn.net/article/details/106968971
錯誤: /usr/bin/ld: /usr/local/lib/libavcodec.a(vc1dsp_mmx.o): relocation R_X86_64_PC32 against symbol `ff_pw_9' can not
killall freeswitch