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

reading github.com/pion/mediadevices/go.mod at revision v0.0.0: unknown revision v0.0.0 #3

Open
ZeoWorks opened this issue Sep 3, 2022 · 17 comments

Comments

@ZeoWorks
Copy link

ZeoWorks commented Sep 3, 2022

Hi, upon attempting to build the .go source, it requests;
screenGrabWebRTC.go:23:2: no required module provides package github.com/pion/mediadevices/examples/internal/signal; to add it: go get github.com/pion/mediadevices/examples/internal/signal

Upon running;
go get github.com/pion/mediadevices/examples/internal/signal

This error occurs;
go: github.com/pion/mediadevices/[email protected] requires github.com/pion/[email protected]: reading github.com/pion/mediadevices/go.mod at revision v0.0.0: unknown revision v0.0.0

@wawesomeNOGUI
Copy link
Owner

Hi! Sorry I left this repository in a kind of bad state for compiling the code yourself. I just updated it so if you clone the repository you should be able to compile it. Let me know if it works!

@ZeoWorks
Copy link
Author

ZeoWorks commented Sep 4, 2022

Hi, it now builds and runs correctly but unfortunately there is no video stream upon connecting. :)

@wawesomeNOGUI
Copy link
Owner

Hi! Yeah I need to check on that error, try scrolling the page and see if the stream starts playing

@ZeoWorks
Copy link
Author

ZeoWorks commented Sep 4, 2022

Thank you, yes I've tried this however the same issue occurs sir. :)

@wawesomeNOGUI
Copy link
Owner

Did you change this line in index.html to your IP?

ws = new WebSocket("ws://localhost:80/echo"); //address to connect to, /echo triggers go echo function

@ZeoWorks
Copy link
Author

ZeoWorks commented Sep 4, 2022

Yes sir, Even occurs on the same machine.
I'd like to clarify that the previous prebuilt exe had no issues.

@wawesomeNOGUI
Copy link
Owner

Oh that's good the old exe still works. Is there any error output from the go console or browser console?

@ZeoWorks
Copy link
Author

ZeoWorks commented Sep 4, 2022

No, none at all. It connects absolutely fine. I think the issue is within the prebuilt x264?

@wawesomeNOGUI
Copy link
Owner

What system are you running the program on? I built x264 for Windows 64bit

@ZeoWorks
Copy link
Author

ZeoWorks commented Sep 4, 2022

Windows 10 x64 like yourself

@ZeoWorks
Copy link
Author

ZeoWorks commented Sep 4, 2022

Does downloading this project fresh and compiling work for you?

@wawesomeNOGUI
Copy link
Owner

It does, I was setting up a new laptop so I made sure I could clone this repo and compile it there.

@wawesomeNOGUI
Copy link
Owner

Oh what go/ gcc version are you using?

@wawesomeNOGUI
Copy link
Owner

Ohhh I am getting an error on my laptop that says GetDIBits failed, I'll look into that

@ZeoWorks
Copy link
Author

ZeoWorks commented Sep 5, 2022

Yes sir, getting the same error.
2022/09/05 10:30:06 Track (ID: 13503cd6-c517-49a5-8dd0-859f4caae8e4) ended with error: GetDIBits failed

@ZeoWorks
Copy link
Author

ZeoWorks commented Sep 5, 2022

Just to clarify; if I take out the windows input code and try building on Linux, it works with libx264-dev.
Could it be that the issue is appearing due to your build of x264 specifically on Windows?

@wawesomeNOGUI
Copy link
Owner

wawesomeNOGUI commented Sep 6, 2022

Hi! I fixed the error and running on windows works now. For some reason, the screen size was always being passed as 0,0. My fix was to edit github.com/kbinani/screenshot with a new screenshot_windows.go I'll keep looking for a better fix, but that seems to work for now

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

2 participants