In the frontend sample of mmapi, the outputFilename seems to be fixed as output1.h265

Hello,

In the frontend sample of mmapi, the outputFilename seems to be fixed as output1.h265.

How can I check if only the name is fixed or if it is actually h265?

How to record video in h264?

Thank you.

Hi,
Please check the code in main():

    // Create video encoder consumers
#if 1
    VideoEncodeStreamConsumer consumer1("enc0", "output1.h265", Size2D<uint32_t>(640, 480));
    VideoEncodeStreamConsumer consumer2("enc1", "output2.h265", Size2D<uint32_t>(1280, 720));
    VideoEncodeStreamConsumer consumer3("enc2", "output3.h265", Size2D<uint32_t>(1920, 1080));
    consumers.push_back(&consumer1);
    consumers.push_back(&consumer2);
    consumers.push_back(&consumer3);
#endif

As you can see the file name is hard coded. You can check to other names and rebuild frontend sample.

Please also note there is trt.h264 as we have discussion in
How to apply osd on yuv in the mmapi frontend example - #9 by DaneLLL

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.