GithubHelp home page GithubHelp logo

Comments (9)

lherman-cs avatar lherman-cs commented on August 19, 2024

@at-wat what do you think about the interface?

from mediadevices.

at-wat avatar at-wat commented on August 19, 2024

I think updating BaseParams.KeyFrameInterval is less meaningful on WebRTC (and also pure RTP) in which RTCP PictureLossIndication packet triggers a key frame.
I'm not very sure it's better to update whole BaseParams.

from mediadevices.

lherman-cs avatar lherman-cs commented on August 19, 2024

From my understanding, setting BaseParams.KeyFrameInterval to 0 means the same thing with force keyframe. Did I misunderstand this?

from mediadevices.

at-wat avatar at-wat commented on August 19, 2024

I think BaseParams.KeyFrameInterval=0 means that all frames are key frame.
PictureLossIndication makes next single frame into key frame.

from mediadevices.

lherman-cs avatar lherman-cs commented on August 19, 2024

Ah, that makes total sense. I guess nvm then, I think we can use what you've suggested already,

package codec

import "io"

type ReadCloser interface {
	io.ReadCloser
	SetBitRate(int) error
	ForceKeyFrame() error
}

What do you think about the naming? I changed it from StreamReader to ReadCloser because I think it's more common and it's clear that's different from io.ReadCloser, because it'll be called with the namespace codec.ReadCloser. This pattern also exists in the standard library, there are image.Image and draw.Image. The main difference is that draw.Image has an extra method that allows setting a single pixel to a color.

from mediadevices.

at-wat avatar at-wat commented on August 19, 2024

codec.ReadCloser sounds good to me!

from mediadevices.

at-wat avatar at-wat commented on August 19, 2024

related: https://github.com/pion/webrtc/wiki/MediaAPI#rtpsender-will-have-callbacks-for-rtcp-feedback-results

from mediadevices.

EmrysMyrddin avatar EmrysMyrddin commented on August 19, 2024

Is this still in progress ?

I came across this issue will trying to understand how PLI packets are handled in pion's webrtc. From what I understand of the code, receiving a PLI should trigger a new key frame, but this is not implemented for now right ?

Related to this, I have made a PR to implement key frame request for VPX: #334

from mediadevices.

EmrysMyrddin avatar EmrysMyrddin commented on August 19, 2024

This is stale and no longer applicable since #338 has been merged.

from mediadevices.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.