Skip to content

Conversation

@Gidroshvandel
Copy link

#1678

Added converter for ipeye wss stream


// probe waits for init with avcC and extracts SPS/PPS
func (p *Producer) probe() error {
log := app.GetLogger("ipeye")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't import app in pkg

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What logger should I use then? zerolog? Or is it better to delete logs?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current architecture does not allow using logs in pkg. This has not been worked out yet.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, deleted all logs

}

// RTP packetizer
h264Pay := &codecs.H264Payloader{}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary to use H264Payloader in clients

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, removed this

}

// convert AVCC -> AnnexB
annexbData := annexb.DecodeAVCC(mdatData, true)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can leave AVCC for packet payload

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

if dur == 0 {
dur = p.clockRate / 25 // fallback
}
// RTP TS для этого sample
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments must be in English

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@AlexxIT AlexxIT self-assigned this Sep 14, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 19, 2025

This code doesn't work for me. I tried to connect to the demo stream on the website. The packets are processed, but there is no image.

@AlexxIT AlexxIT removed their assignment Sep 19, 2025
@AlexxIT AlexxIT added the doubt label Sep 19, 2025
@Gidroshvandel
Copy link
Author

I found a problem with launching in go2rtc player, but it works in vlc and frigate

in web console:
AbortError: The play() request was interrupted by a call to pause()

Can you suggest what the problem might be?

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 25, 2025

The stream didn't work for me anywhere at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants