Codec Imports

Avatar image
Aug 24, 2015
Archive Agent wrote
Hello,

I'm trying to capture screen video where on screen text remains legible. Currently I'm recording full screen with the MJPEG Compressor codec, and it's producing video with the same height and width as the monitor it's recording, but the text in the video is barely legible. Moreover, the size of the files being produced is prohibitively large.

My understanding is that the H.264 (and x264) encoders are very strong in producing legible text with small file sizes - am I able to make them available to visioforge for encoding? Currently, running code akin to:

numCodecs = Capture.Video_Codecs_GetCount();
for ( i=0; i<numCodecs; i++)
println(Capture.Video_Codecs_GetItem(i));

produces the following list:

Codec 0: DV Video Encoder
Codec 1: MJPEG Compressor
Codec 2: Cinepak Codec by Radius
Codec 3: Intel IYUV codec
Codec 4: Intel IYUV codec (2)
Codec 5: Microsoft RLE
Codec 6: Microsoft Video 1
Codec 7: VMnc v2

But it's not clear to me where this list is being populated from or whether I have the ability to add to it. Any guidance would be appreciated.

best,
Colin

Colin Kennedy on September 06, 2013 16:34
Completed
0
Vote
Reply
7 Answers
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov
Karma score: 1812
Roman Minyaylov

Hi

Please check Main Demo application.

Direct output to MP4 files with H264 codec for video is available.

on September 6, 2013 4:39 PM
Aug 24, 2015
Archive Agent agent wrote
Colin Kennedy

Thank you for the prompt response. I'm glad that the codec is available, but I'm still unsure how to access it. I'm using C++, and Capture from the above code is a CTxVFVideoCapture5 object. Can you advise, or point to documentation (code sample?) where the H264 codec is used by a VideoCapture object?

on September 9, 2013 9:12 PM
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

MP4 H264 output available in latest version of SDK, not in 5.x.

For 5.x you are can try x264 video codec and AVI output.

on September 9, 2013 10:22 PM
Aug 24, 2015
Archive Agent agent wrote
Colin Kennedy

Thanks again, but I remain stuck at the same point. After Capture.put_Output_Format(Format_AVI), the codecs available are those listed in my original post (with nothing there resembling x264).

I wasn't responsible for the original installation of Visioforge's software on the project I'm working on, but my understanding is that it was done fairly recently. Could it be that I need to update it? We're using the trial version at the moment, but would be looking at purchasing a licence if things running as we intend.

on September 9, 2013 11:20 PM
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

You are must install x264, that's 3rd-party codec.

Using Main Demo of the latest SDK you are able to select MP4 in Output format combobox. Not AVI output, but MP4.

on September 10, 2013 10:58 AM
Aug 24, 2015
Archive Agent agent wrote
Colin Kennedy

Hi again. I've purchased a licence for the Video Capture SDK Professional, and after looking through the install directory, Demos\MFC\Screen Capture\ contains the same CTxVFVideoCapture5.h header file that I was using before. From your earlier response, I had the impression that there were some updated header files? Is that correct?

on September 24, 2013 4:22 PM
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Better to import latest ActiveX manually in your applications. But yes, we are trying to save API and use the same headers.

on September 24, 2013 5:05 PM