app/src/main/java/com/anyun/h264/H264EncodeService.java
@@ -250,7 +250,7 @@ int framerate = config != null ? config.framerate : DEFAULT_FRAME_RATE; h264Encoder.setEncoderParams(width, height, framerate, DEFAULT_BITRATE); long timeFile = System.currentTimeMillis(); long timeFile = System.currentTimeMillis()/1000;//Date是秒,所以为了跟下发的Date starttime一致,此处除以1000 秒 SimpleDateFormat bcdFormat = new SimpleDateFormat("yyMMddHHmmss"); String str = bcdFormat.format(timeFile); Timber.i("文件名:%s", str);