使用 DirectShow 将 mp4 文件写入文件
我使用 GraphEdit 程序从 rtsp 源获取实时视频流并将该文件写入本地存储。
我的图表大致是这样的:
RtspSourceFilter -> VideoDecoder(MPG4) -> FileWriter(*.mp4)
(not work)
RtspSourceFilter -> VideoDecoder(MPG4) -> VideoEncoder(MPG-2)->FileWriter(*.mp4)
( frame rate is wrong, too fast, and why decode and encode same file to write disk)
我无法输入任何属性,例如 fps 到 FileWriter...
对于使用直接显示将视频录制到磁盘有什么建议吗?
I use GraphEdit program for taking live videostreams from rtsp sorce and write that file in to local storage.
My Graph is rougly like this:
RtspSourceFilter -> VideoDecoder(MPG4) -> FileWriter(*.mp4)
(not work)
RtspSourceFilter -> VideoDecoder(MPG4) -> VideoEncoder(MPG-2)->FileWriter(*.mp4)
( frame rate is wrong, too fast, and why decode and encode same file to write disk)
I can not able to enter any property such as fps to FileWriter...
Any advice to record video to disk using direct show?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要在 FileWriter 过滤器之前使用 mp4 复用器。您的图表可能类似于:
RtspSourceFilter->mp4 muxer->FileWriter
您可以尝试使用免费的 GDCL mp4 复用器/解复用器 或 Haalis Matroska混合器。对于最后一个,您需要将其配置为输出 mp4。
You may need to use a mp4 muxer before your FileWriter filter. Your graph could be something like:
RtspSourceFilter->mp4 muxer->FileWriter
You can try with the free GDCL mp4 muxer/demuxer or Haalis Matroska Muxer. For the last one you will need to configure it to output mp4.