Dana
2025-12-02 1c57e2d58b56e6202e6b18a667e60475b5130e69
1.时间戳除以1000 zai乘以1000
1个文件已修改
4 ■■■■ 已修改文件
app/src/main/java/com/anyun/h264/H264EncodeService.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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()/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);
@@ -318,7 +318,7 @@
            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);