scottlamb / retina

High-level RTSP multimedia streaming library, in Rust
https://crates.io/crates/retina
Apache License 2.0
218 stars 46 forks source link

WatchNet: No VideoFrame Packets #72

Closed nemosupremo closed 1 year ago

nemosupremo commented 1 year ago

I'm working on streaming a h264 feed from a watchnet nvr. Oddly enough demuxed.next only delivers Rtcp packets even though both video and audio streams were registered. I read in https://github.com/scottlamb/retina/issues/68#issuecomment-1281173301 that you have a program to chew through packet captures; is that available in this repo?

nemosupremo commented 1 year ago

Ok, I should have turned on logging (my application is using tracing and I didn't notice that log records were being eaten).

Looks like most of the packets are being dropped:

2022-12-02T21:18:52.932629Z  INFO retina::client::rtp: Skipping out-of-order seq=801d when expecting ssrc=Some(44b746fb) seq=Some(801f)
2022-12-02T21:18:52.940930Z  INFO retina::client::rtp: Skipping out-of-order seq=8021 when expecting ssrc=Some(44b746fb) seq=Some(8023)
2022-12-02T21:18:52.940980Z  INFO retina::client::rtp: Skipping out-of-order seq=8025 when expecting ssrc=Some(44b746fb) seq=Some(8027)
2022-12-02T21:18:52.940998Z  INFO retina::client::rtp: Skipping out-of-order seq=802b when expecting ssrc=Some(44b746fb) seq=Some(802d)
2022-12-02T21:18:52.941279Z  INFO retina::client::rtp: Skipping out-of-order seq=802f when expecting ssrc=Some(44b746fb) seq=Some(8031)
nemosupremo commented 1 year ago

Closing this as this is already tracked in #40 (workaround, use TCP)