开发者

Is File Writer speeding up my FPS of my captured streaming videos?

开发者 https://www.devze.com 2023-03-16 04:16 出处:网络
I have a webcam hooked up in graphedit, and in C# code, all the videos i save are being saved 2-3 times faster then they are being streamed at. The webcam is setup to run 640x480 @ 30fps. I record a v

I have a webcam hooked up in graphedit, and in C# code, all the videos i save are being saved 2-3 times faster then they are being streamed at. The webcam is setup to run 640x480 @ 30fps. I record a video for 15 seconds and when i replay it, the video is only 5 seconds long, it contains the entire 15second video but just at a higher FPS.

I have changed my filters around a bit. I have used ffdshow encoders, xvid encoders, mpeg encoders, divx encoders along with avi mux, xvid mux, mpeg mux, all connected to File Writer and they are all saving the video stream at higher FPS.

So is File Writer doing something it shouldnt?

Is there a way to fix it or work around it?

or maybe a better option?

EDIT:

These are the graphs I've been trying to use but all the outputs are at a sped up FPS

Source -> Smart Tee -> 3ivx MPEG-4 Video Encoder -> 3ivx MPEG-4 Media Muxer -> File Writer

Source -> Smart Tee -> Divx Video Encoder -> AVI Mux -> file writer

Source -> Smart Tee -> ffdshow video encoder -> 3ivx MPEG-4 Media Muxer -> file writer

Source -> Smart Tee -> AVI Mux -> File Writer

with all these graphs, I r开发者_如何转开发ecorded a 15 second video and when they were replayed, they were 5 seconds long


You need to check timestamps of samples coming out of your web cam and also frame duration mentioned in the media type of its stream. The former can be done easily in GraphEditPlus by inserting a sample grabber after the web cam and watching grabbed samples info (right click the grabber). The latter is even easier: just click the connection.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号