private void writeParaToCfg (File file, String srcSeqPath, String dstSeqPath, String seqName, String frameRate, String frameSkip, String width, String height, String totalFrames, String qp) {
        try {
            BufferedWriter writer = new BufferedWriter(new FileWriter(file));
            writer.write("InputFile : "+srcSeqPath+seqName+".yuv\n");
            writer.write("InputBitDepth : 8\n");
            writer.write("FrameRate : "+frameRate+"\n");
            writer.write("FrameSkip : "+frameSkip+"\n");
            writer.write("SourceWidth : "+width+"\n");
            writer.write("SourceHeight : "+height+"\n");
            writer.write("FramesToBeEncoded : "+totalFrames+"\n");
            writer.write("BitstreamFile : "+dstSeqPath+"bits/"+seqName+qp+".bin\n");
            writer.write("ReconFile : "+dstSeqPath+"yuv/"+seqName+qp+"Rec.yuv\n");
            writer.write("QP : "+qp+"\n");
            writer.write("Level : 3.1\n");

            writer.close();
        } catch (Exception e) {
            System.out.println("Write cfg error: "+e.getMessage());
        }
    }