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

Make it work #1

Closed
yuripourre opened this issue Oct 6, 2019 · 0 comments
Closed

Make it work #1

yuripourre opened this issue Oct 6, 2019 · 0 comments

Comments

@yuripourre
Copy link
Member

yuripourre commented Oct 6, 2019

Successfully define format but can't send frames (probably because jcharArray and (C/C++)char[] differ on size)

jboolean isCopy;
    jbyte* a = env->GetByteArrayElements(bArray, &isCopy);
    char* b;
    b = (char*)a;

https://codeday.me/en/qa/20190306/6130.html
https://stackoverflow.com/a/8439341

Init cameras

sudo modprobe v4l2loopback devices=2 exclusive_caps=1,1

Common issues

https://github.com/umlaeute/v4l2loopback/issues/78
https://github.com/umlaeute/v4l2loopback/issues/134

Bypass /dev/video0 to /dev/video3:

gst-launch-1.0 v4l2src device=/dev/video0 ! videorate ! v4l2sink device=/dev/video3

Check format with ffmpeg:

ffmpeg -f v4l2 -list_formats all -i /dev/video3
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

1 participant