Ask Your Question

Revision history [back]

now videostab create a *.avi resource ,but I want to get *.mp4 so how to do?

     if (!outputPath.empty())
    {
        if (!writer.isOpened())
            writer.open(outputPath, VideoWriter::fourcc('X','V','I','D'),
                        outputFps, stabilizedFrame.size());
        writer << stabilizedFrame;
    }