High quality and optimized file size video recording using directshow.net -
i developing application in c# using directshow.net. using virtual camera record desktop screen. graph is:
virtual cam --->color space converter --->sample grabber ---> asf writer.
while coding, used custom .prx
generated windows media profile editor
and configured iconfigasfwriter
using wmcreateprofilemanager
.
in .prx file mode cbr
, codec windows media video 9
, frame rate 15fps
759kbps video bit rate, still video looks blurry. if increase video bit rate upto 5mbps blurriness not coming increasing bit rate results large file size (54 seconds of recording file size 10mb).
i tried graph using graphedit
virtual cam ---> avi mux ---> file writer generating large .avi file.
how can record video without blur effect keeping minimum file size, eg. 1 minute of video size 2-3 mb? need use video compressor?
the quality depends on codec use, on number of bits per pixel. can calculate way:
bits/pixel = bitrate / (width * height * framerate)
(bitrate in bits/second , framerate in frames/second)
so if want reduce bitrate without getting blurry video, have reduce resolution or framerate. way keep number of bits per pixel same.
Comments
Post a Comment