簡體   English   中英

正確的 VLC 轉碼編解碼器

[英]Correct VLC transcoding codec

我不是 100% 確定我什至在這里問了正確的問題,但基本上我想使用 VLC 將 4k 網絡攝像頭包裝在傳輸流中,以便我可以將其用作 IPTV 服務器或在一些其他軟件中進行排序。

到目前為止我所擁有的:

vlc dshow:// :dshow-vdev="Video (00 Pro Capture HDMI 4K+)" :dshow-adev="Audio (2- 00 Pro Capture HDMI 4K+)" :dshow-aspect-ratio=16\:9 :dshow-chroma=BGR32 :dshow-vcodec=libx265 :dshow-fps=60 :dshow-acodec=mp4a :dshow-ab=96 :dshow-channels=2 :dshow-samplerate=44100 :no-dshow-config :no-dshow-tuner :live-caching=100 :sout=#transcode{vcodec=h.264,acodec=mpga,vb=800,ab=128,deinterlace}:rtp{dst=227.0.0.1,port=8554,mux=ts}

使用上面的dshow命令,我可以讓圖片在本地 VLC 會話中完美顯示。 使用 RTP 命令,我似乎已經在一定程度上成功地以傳輸流傳輸視頻卡,因為我可以從客戶端 VLC 會話中的流中獲取音頻。

似乎出錯的一點是轉碼。 我已經為服務器 VLC 會話打印了下面的日志。 h.264 似乎不是有效的編解碼器,mp4v 也不是(在我的機器上找不到)。

有關如何修復的任何建議? 我目前正在為此撕毀我的頭發......

-- logger module started --
main: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
dshow warning: ConnectFilters: No crossBar routes found (incompatible pin types)
stream_out_transcode error: cannot find video encoder (module:any fourcc:h.26). Take a look few lines earlier to see possible reason.
stream_out_transcode error: cannot create video chain
main warning: new sout input failed (sout_input: 04b265d0)
main error: cannot create packetizer output (I420)
main error: buffer deadlock prevented
main error: buffer deadlock prevented
main error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 100 ms)
main error: buffer deadlock prevented
main warning: late buffer for mux input (115683)
main error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 103 ms)
main error: buffer deadlock prevented
main warning: late buffer for mux input (115431)
main warning: late buffer for mux input (118376)
main error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 106 ms)
main error: buffer deadlock prevented
main warning: late buffer for mux input (126477)
main warning: late buffer for mux input (114186)
main warning: late buffer for mux input (120540)
main warning: late buffer for mux input (107243)
main warning: late buffer for mux input (112596)
main error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 107 ms)
main error: buffer deadlock prevented
main warning: late buffer for mux input (124779)
main warning: late buffer for mux input (121605)
main warning: late buffer for mux input (123958)
main warning: late buffer for mux input (129063)
main warning: late buffer for mux input (96295)
main error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 107 ms)
main error: buffer deadlock prevented
main warning: late buffer for mux input (120359)
main warning: late buffer for mux input (116294)
main warning: late buffer for mux input (118648)
main warning: late buffer for mux input (124053)
main error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 108 ms)
main error: buffer deadlock prevented
main warning: late buffer for mux input (138024)
main warning: late buffer for mux input (95972)
main warning: late buffer for mux input (102325)
main warning: late buffer for mux input (114289)
main warning: late buffer for mux input (120643)
main warning: late buffer for mux input (128484)
main warning: late buffer for mux input (127838)
main warning: late buffer for mux input (107587)
main warning: late buffer for mux input (109940)
main warning: late buffer for mux input (114095)
main warning: late buffer for mux input (109449)
main warning: late buffer for mux input (117841)
main warning: late buffer for mux input (128195)
main warning: late buffer for mux input (107249)
main warning: late buffer for mux input (109602)
main warning: late buffer for mux input (114131)
main warning: late buffer for mux input (123485)
main warning: late buffer for mux input (122832)
main warning: late buffer for mux input (129186)
main warning: late buffer for mux input (97323)
main warning: late buffer for mux input (99676)
main warning: no more input streams for this mux
-- logger module stopped --

嘗試根據您的網絡需要調整以下參數(可以通過 VLC 命令行完成):

"--network-caching=33", 
"--file-caching=33", 
"--live-caching=33",
"--clock-synchro=0", 
"--clock-jitter=0",
"--h264-fps=60",
"--avcodec-fast",
"--avcodec-threads=1"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM