W / MPEG4Writer:等待视频轨道到达最终音频时间戳的超时!
D/MPEG4Writer: Video track source stopping
D/MPEG4Writer: Video track source stopped
D/MPEG4Writer: Video track stopped. Stop source
D/MPEG4Writer: Duration from tracks range is [16440617, 32620406] us
D/MPEG4Writer: Stopping writer thread
D/MPEG4Writer: 0 chunks are written in the last batch
D/MPEG4Writer: Writer thread stopped
I/MPEG4Writer: Ajust the moov start time from 311268925895 us -> 311268925895 us
I/MPEG4Writer: The mp4 file will not be streamable.
D/MPEG4Writer: Video track stopping. Stop source
D/MPEG4Writer: Audio track stopping. Stop source
D/MediaEncoder: Encoder thread exiting
上面的日志显示mp4文件不可流式传输,当我将mp4转换为hls时,这是事实,最终流中的音频有很多问题(流行,点击等声音)
我在编码中使用以下方法来计算pts
protected long getPTSUs() {
long result = System