Hi all!
I have made a test application that captures from webcam (using dshow
filter), and saves it as a file on hard disk. My camera supports natively
640x480 resolution, so I had to forcefully open it in smaller resolution to
conduct this test:
pFormatCtx = avformat_alloc_context();
AVDictionary *dict = NULL;
av_dict_set( &dict, "video_size", "160x120" ,0);
if(avformat_open_input(&this->pFormatCtx, this->finalInputName.c_str(),
pInputFormat, &dict)!=0)
return -1; // Couldn't open file
finalInputName is the correctly formatted video:audio string ffmpeg
recognizes for dshow.
Problem now is, no matter what the decoder's resolution is (160x120,
320x240, 640x480 etc.), output file size for approximately one minute
duration is always the same - around 3 MB.
I tried encoding to other formats like 'mpg', 'ogg', their video sizes
seems to be appropriately scaled, then what am I doing wrong with h264
format, fail to understand?
Can anyone kindly provide some guidance?
Thanks for your time!
Best regards...
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user