2013-02-12 260 views
0

我在使用VLC播放器錄製rtsp流時遇到問題。其實我的方法在MacOS X中工作,但不在Windows中。命令行:VLC錄製rtsp流

vlc -vvv rtsp://admin:[email protected]/live/h264/ --sout="#transcode{vcodec=mp4v,vfilter=canvas{width=800,height=600}}:std{access=file,mux=mp4,dst=C:\123.mp4}" 

在MacOS上它工作正常,但在Windows下它創建了不可讀的文件。 MediaInfo輸出:

General 
Complete name       : C:\123.mp4 
Format         : MPEG-4 
Format profile       : Base Media 
Codec ID         : isom 
File size        : 1.08 MiB 

有什麼建議嗎?

回答

2

好像你DST網址不correct.try這樣的:

vlc -vvv rtsp://admin:[email protected]/live/h264/ --sout="#transcode{vcodec=mp4v,vfilter=canvas{width=800,height=600}}:std{access=file,mux=mp4,dst=C:\\123.mp4}"