rviscarra / webrtc-remote-screen

Stream a remote desktop screen directly to your browser
MIT License
469 stars 72 forks source link

need help with error Couldn't find a matching codecError: Couldn't find a matching codec #3

Closed vitaliy-kuzmich closed 4 years ago

vitaliy-kuzmich commented 4 years ago

Can't stream when press on start

paralin commented 4 years ago

Build with Go tag "vp8enc"

narkhedek3 commented 4 years ago

Build with Go tag "vp8enc"

after using vp8enc following error is coming.

# github.com/rviscarra/webrtc-remote-screen/internal/encoders
internal/encoders/vp8_encoder.go: In function 'rgba_to_yuv':
internal/encoders/vp8_encoder.go:25:2: error: 'for' loop initial declarations are only allowed in C99 mode
  for( size_t line = 0; line < height; ++line ) {
  ^
internal/encoders/vp8_encoder.go:25:2: note: use option -std=c99 or -std=gnu99 to compile your code
internal/encoders/vp8_encoder.go:27:4: error: 'for' loop initial declarations are only allowed in C99 mode
    for( size_t x = 0; x < width; x += 2 ) {
    ^
internal/encoders/vp8_encoder.go:44:4: error: 'for' loop initial declarations are only allowed in C99 mode
    for( size_t x = 0; x < width; x += 1 ) {
    ^
internal/encoders/vp8_encoder.go: In function 'vpx_img_read':
internal/encoders/vp8_encoder.go:75:32: error: 'VPX_IMG_FMT_HIGHBITDEPTH' undeclared (first use in this function)
                   ((img->fmt & VPX_IMG_FMT_HIGHBITDEPTH) ? 2 : 1);
                                ^
internal/encoders/vp8_encoder.go:75:32: note: each undeclared identifier is reported only once for each function it appears in
make: *** [agent] Error 2
huhuegg commented 3 years ago

I use vp8enc, the same code runs fine on macos, and it prompts "Couldn't find a matching codec" on windows