Re: [问题]有关java ffmpeg 推流报错造成延迟

楼主: qrtt1 (有些事,有时候。。。)   2020-01-15 09:05:22
※ 引述《leenl ( )》之铭言:
: 我们在用java处理视频推流的时候
: 遇到某些视频 推流后会抛出
: cur_dts is invalid (this is harmless if it occurs once at the start per
: stream)
: cur_dts is invalid (this is harmless if it occurs once at the start per
: stream)
: cur_dts is invalid (this is harmless if it occurs once at the start per
: stream)
: 抛出error 倒没事但是会造成 视频延迟
: 没有抛出error的就不会延迟
: 基本上google能查的 都先试过了
: 有没有人遇到类似的问题
: 可以指点方向?
: 或是可以付费咨询讨论
先用 ffprobe 看一下你要 push 的影片是什么 profile
互相比较看看。
不过,一般来说要用来 push 的影片,会在 encoding 时处理一下
确定把 B frame 移除,因为当 B frame 存在时,它储存的顺序
不一定是 decode 的顺序。

Links booklink

Contact Us: admin [ a t ] ucptt.com