2011-05-05 29 views
1

我使用GraphEdit程序從實時視頻流rtsp sorce並將該文件寫入本地存儲。使用DirectShow將mp4文件寫入文件

我的圖表是rougly這樣的:

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的 ...

任何建議採用直接展示給視頻錄製到硬盤?

回答

0

您可能需要在FileWriter過濾器之前使用mp4複用器。你可能圖是這樣的:

RtspSourceFilter-> MP4 muxer->的FileWriter

您可以通過免費GDCL mp4 muxer/demuxerHaalis Matroska Muxer嘗試。對於最後一個,您需要將其配置爲輸出mp4。

+0

謝謝...使用默認的AVI muxer和工作... – setiGuy 2011-05-09 10:50:05