| | |
| | | int framerate = config != null ? config.framerate : DEFAULT_FRAME_RATE; |
| | | h264Encoder.setEncoderParams(width, height, framerate, DEFAULT_BITRATE); |
| | | |
| | | long timeFile = System.currentTimeMillis()/1000;//Date是秒,所以为了跟下发的Date starttime一致,此处除以1000 秒 |
| | | long timeFile = System.currentTimeMillis();//Date是秒,所以为了跟下发的Date starttime一致,此处除以1000 秒 |
| | | SimpleDateFormat bcdFormat = new SimpleDateFormat("yyMMddHHmmss"); |
| | | String str = bcdFormat.format(timeFile); |
| | | Timber.i("文件名:%s", str); |
| | |
| | | int framerate = DEFAULT_FRAME_RATE; |
| | | h264Encoder.setEncoderParams(width, height, framerate, DEFAULT_BITRATE); |
| | | |
| | | long timeFile = System.currentTimeMillis()/1000; |
| | | long timeFile = System.currentTimeMillis()/1000*1000; |
| | | SimpleDateFormat bcdFormat = new SimpleDateFormat("yyMMddHHmmss"); |
| | | String str = bcdFormat.format(timeFile); |
| | | Timber.i("startNetworkEncode 文件名:%s", str); |