H264 filesizes

asked 2017-12-28 19:30:40 -0600

asmith42 gravatar image

updated 2020-10-27 16:14:38 -0600

I get vastly different size videos. I am reading a RTSP stream from an IP camera, 1920x1080@30fps from C++, opencv 3.4.0 and with openh264-1.6.0-win64msvc.dll

For 15 minutes of video

C++ : 770megs

From camera app(activex component) : 450megs

ffmpeg : 150megs

If I inspect the files with VLC ill get that the ffmpeg product is

"Codec: H264 - MPEG-4 AVC (part 10) (avc1)"

While my C++ app is

"Codec: H264 - MPEG-4 AVC (part 10) (X264)"

the native activex component is

"Codec: H264 - MPEG-4 AVC (part 10) (H264)"

Now I figure that I need to set the bitrate and other parameters, I have done this with c++ and ffmpeg/libav before (i am trying opencv now cause of other limitations)..

Is it true that I cannot control bitrate and other parameters from opencv? That is is I need to get cisco's H264 source and compile it with my project?

edit retag flag offensive close merge delete