def genH264(infile, outfile, T):
x264opts="<STR_LIT>"<EOL>h264_dummystream_flavor="<STR_LIT>" <EOL>opts="<STR_LIT>"+h264_dummystream_flavor+"<STR_LIT:U+0020>"+x264opts+"<STR_LIT>"+str(T)<EOL>com="<STR_LIT>"+infile+"<STR_LIT:U+0020>"+opts+"<STR_LIT:U+0020>"+outfile<EOL>print(com)<EOL>os.system(com)<EOL>
Generate H264 stream

    Input image, output video file, time in seconds

    Example:

    ::

        genH264("/home/sampsa/python3/tests/lprtest/RealImages/IMG_20170308_093511.jpg","testi.mkv", 10)