Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Every video frame is sent as a keyframe #524

Open
mmdGhanbari opened this issue Jan 2, 2024 · 1 comment
Open

Every video frame is sent as a keyframe #524

mmdGhanbari opened this issue Jan 2, 2024 · 1 comment

Comments

@mmdGhanbari
Copy link

Hi. First of all, thanks for your awesome work!

I'm developing a streaming application where native clients stream a vp9 video file to a media server using WebRTC, and there's also a web client where I can consume and view the incoming video track. The video file is in IVF format (vp9) and I can confirm with ffprobe that there's a keyframe every 4 seconds.

I read the IVF video file and stream it using the play_from_disk_vpx example code (IVFReader). But in the web client, when I investigate the webrtc-internals stats, I can see that the number of decoded frames and decoded keyframes are equal. So, somehow every video frame is sent as a keyframe.

I wonder if there's something that I'm missing? Should I do something manually to mark specific RTP packets as keyframes?
Thanks in advance.

@mmdGhanbari
Copy link
Author

I should add that when I encode the IVF file as VP8, everything is fine and the number of decoded keyframes is as expected. So, the problem only exists when I'm streaming a VP9 video file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant