RTSP 流、转码和保存到文件的正确方法是什么? [英] What is the proper way to RTSP stream, transcode and save to file?

查看:99
本文介绍了RTSP 流、转码和保存到文件的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在显示 rstp-stream 时,我们正在尝试转码,并将其记录到文件中以备后用.

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

VLC 2.1.1 在使用时似乎可以工作

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

这似乎在 VLC 2.2.4

VLC wiki 上的文档似乎已经过时.

Documentation on VLC's wiki seems outdated.

推荐答案

vcodec/mux 配对以及使用 samplerate 而不是 vb<的差异/code> 似乎修复了它.

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

这篇关于RTSP 流、转码和保存到文件的正确方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆