You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using samplebuilder to reconstruct frames from RTP packets of a WebRTC video stream, visual artifacts appear after a few seconds of stable or low-motion video. These artifacts persist until there is a moment of significant movement in the video scene, at which point the frame alignment seems to correct itself, and the video quality returns to normal.
What did you do?
Set up a WebRTC video track using codecs like VP8, VP9, or H264.
Use samplebuilder.New(35, pkt, t.Codec().ClockRate) and push incoming RTP packets to it.
Pop samples from samplebuilder and write them directly to a video track (videoTrack.WriteSample()).
Observe the video output after a few seconds of minimal movement:
Video frames start showing pixelation and artifacts.
These artifacts remain until a sudden movement occurs in the video, after which the frames realign and the image quality returns to normal.
Expected Behavior:
The samplebuilder should produce clean, artifact-free frames regardless of the motion level in the video. All frames should remain synchronized and properly decoded.
Actual Behavior:
Frames become misaligned or partially corrupted over time in low-motion scenes, leading to visible artifacts. Only significant motion triggers a correction and returns the output to a stable, artifact-free state.
What happened?
When using
samplebuilder
to reconstruct frames from RTP packets of a WebRTC video stream, visual artifacts appear after a few seconds of stable or low-motion video. These artifacts persist until there is a moment of significant movement in the video scene, at which point the frame alignment seems to correct itself, and the video quality returns to normal.What did you do?
samplebuilder.New(35, pkt, t.Codec().ClockRate)
and push incoming RTP packets to it.samplebuilder
and write them directly to a video track (videoTrack.WriteSample()
).Expected Behavior:
The
samplebuilder
should produce clean, artifact-free frames regardless of the motion level in the video. All frames should remain synchronized and properly decoded.Actual Behavior:
Frames become misaligned or partially corrupted over time in low-motion scenes, leading to visible artifacts. Only significant motion triggers a correction and returns the output to a stable, artifact-free state.
Code Example:
Additional Context:
Environment:
example image :
the complete example be made from this repo:
https://github.com/VerioN1/webrtc-poc-go/tree/main
The text was updated successfully, but these errors were encountered: