标题揭示了问题的本质,但它更具体
我使用Brave生成流,使用OvenMediaEngine(以下简称OME)作为媒体服务器
问题是Brave是建立在gstreamer和OME是建立在ffmpeg
Gstreamer使用纳秒来测量时间,ffmpeg使用毫秒。因此,当我从Brave传输到OME时,我得到以下日志
ovenmediaengine_1 | [2021-09-22 11:45:34.832] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 1005022355050, cur.pts: 1009317322368, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.854] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 1009317322368, cur.pts: 1013612289685, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.856] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 1009317322359, cur.pts: 1013612289688, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.897] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 1013612289706, cur.pts: 1017907257024, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.897] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 1013612289688, cur.pts: 1017907257051, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.921] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 1017907257051, cur.pts: 1022202224313, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.939] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 1017907257045, cur.pts: 1022202224362, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.961] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 1022202224362, cur.pts: 1026497191680, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.963] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 1022202224313, cur.pts: 1026497191676, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:34.984] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 1026497191676, cur.pts: 1030792159005, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:35.003] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 1026497191701, cur.pts: 1030792159018, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:35.025] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:1 last.pts: 1030792159018, cur.pts: 1035087126336, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:35.026] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 1030792159005, cur.pts: 1035087126335, tb(1/1000), diff: 4294967ms
ovenmediaengine_1 | [2021-09-22 11:45:35.046] W [InboundWorker:17] MediaRouter | mediarouter_stream.cpp:1044 | Detected abnormal increased timestamp. track:0 last.pts: 1035087126335, cur.pts: 1039382093697, tb(1/1000), diff: 4294967ms
和流类型的行为:
- 我在VLC中打开流
- 我看到一秒钟的视频
- 视频卡住了,无法打开
有人遇到过类似的问题吗?有一个解决方案,或者至少是解决方案的方向。
还值得一提的是,我曾经使用rtsp-simple-server,它工作得很好
很抱歉回复晚了。如果你在GitHub issus上问与OvenMediaEngine相关的问题,你可以得到快速的答案。