2016-08-24 58 views
2

顯示rstp-stream時,我們正在嘗試轉碼,並將其記錄到文件中供以後使用。什麼是RTSP流,轉碼和保存到文件的正確方法?

VLC 2.1.1似乎工作使用

vlc rtsp-stream :sout=#transcode{vcodec=mp1v,vb=700,scale=1}:duplicate{dst=display,dst=std{access=file,mux=asf,dst="C:\file.mpg"}}" 

時,這似乎在VLC VLC上的wiki 2.2.4

文件似乎已經過時被打破。

+0

你爲什麼要將'asf'合併到'mpg'文件中? – aergistal

+0

@aergistal被編碼爲(遺留代碼)....更多的解碼器/複用器/容器和VLC轉換設置的研究幫助找到一個好的設置。 – gtgaxiola

回答

1

vcodec/mux配對以及使用samplerate而不是vb似乎修復它的差異。

vlc rtsp-stream :sout=#transcode{vcodec=mp4v,scale=0.5,samplerate=44100}:duplicate{dst=display,dst=std{access=file,mux=mp4,dst='C:\file.mpg'}}" 
相關問題