-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Issues Displaying Streamed Content in Browsers #6
Comments
What is the content of /etc/akvcam/config.ini? |
|
The configuration seems ok, and the width is multiple of 32, the only thing that is wrong is that FFmpeg only support rw method, so it must be |
Thanks. New settings file:
Issue now is Permission Denied (or similar when used through ANY browser). To reload the config, I ran the below:
Devices look like this:
Nothing useful in /var/log/messages
|
Could that error be related to this? |
So I executed
Rebooted. The result was this in /var/log/messages
So something definitely happened with depmod but whatever it is didn't solve the problem. Also, the user now has the video group.
The devices are now accessed only be group and root.
I've also confirmed that VLC continues to read video1 correctly when casting. This remains a Browser-Only issue both before and after depmod. VLC running as same user. IMO those warnings in /var/log/messages are just warnings that the module is untested/certificated on the main Kernel. It otherwise seems to be loading correctly. Finally, I did also check that there is no IPC lock on the device. It appears not:
Note that even with Chrome on a site which requests the video1 camera, fuser still returns 0 processes. |
Sorry to bump... any thoughts on this? Happy to help test :) Just need something to try :) |
Right now, no. I'm quite busy with the Android port of Webcamoid, I'll take a look of all bugs (including this) once I finish with that. Mean while you or anyone else can start hacking with the code or the system, solutions and PRs are very welcome 😃 |
Understood! Many thanks!! Good luck with the Android port and I'll see what I can do with this in the meantime. |
This issue was fixed in 1.0.2. |
I'm experiencing the same issue on Master branch. It's essentially Permission Denied when using akvcam on browsers but it works 100% fine on VLC etc. Any idea why this would happen with all browsers and not local apps? My feeling is that AKVCam is fine but my setup is stupid. Maybe a firewall issue? If any hints come to mind, please let me know. Otherwise I'll look into permissions stuff and post back here if I get it working. |
Still the same problem? I've tested in Firefox, Chrome and Opera in Arch and it's working fine. Did you have checked you /etc/akvcam/config.ini file?
No, the problem is not related to any firewall or permission settings for sure. |
Try with this config.ini:
|
That worked perfectly. Problem solved. |
Using Fedora 30 on 5.1.8-300.fc30.x86_64.
I have tested considerably with VLC, ffplay, Webcamoid, etc. All non-browser apps pick up /dev/video1 absolutely perfectly and display the content correctly and without corruption.
The issue for me is using either the Firefox or Chrome (+ Chromium) web browsers.
The Chrome-based browsers detect the /dev/video1 camera and display the video at the approximately correct frame rate. However, the content is horribly distorted into various shades of pink and the video is rendered multiple times.
The Firefox browser also detects the /dev/video1 camera but in all test cases (different websites demanding webcam) it seems it attempts to "load" it but it just doesn't ever complete. The image on screen will remain as default and no content is ever rendered.
The method of transmission to video1 is as follows:
ffmpeg -i myVideo.mp4 -s 640x480 -r 30 -f v4l2 -vcodec rawvideo -pix_fmt rgb24 /dev/video0
Please do let me know which logs would be useful and I'll attempt to provide.
The text was updated successfully, but these errors were encountered: