What is the proper way to RTSP stream, transcode and save to file?

匿名 (未验证) 提交于 2019-12-03 01:00:01

问题:

While showing the rstp-stream, we are trying to transcode, and record it to file for later use.

VLC 2.1.1 seems to work when using

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

This seems to be broken on VLC 2.2.4

Documentation on VLC's wiki seems outdated.

回答1:

Discrepancies with the vcodec/mux pairing as well as using samplerate instead of vb seem to fix it.

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'}}" 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!