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 editorand configured iconfigasfwriterusing 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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -