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
v4l2loopback not providing correct timestamp on frames #115
Comments
|
As I reported this in Blender Development page, Benoit Bolsee found that the problem, in Blender, is about caching with multi-thread. Also, he found some anomalies in v4l2loopback code. Anyone can see the bug thread in https://developer.blender.org/T48692, and I will paste the important information, here: Benoit:
Benoit:
Me:
Benoit:
|
|
could you check whether this is fixed in |
|
I tested the new version and tested the file: the issue is still there. Buuut.... I reinstalled the module, but I don't know if I did it well. I don't know if the one it is installed, is the new version. I do: But I don't find "0.10.0" anywhere. I'd like to see that number somewhere... where? Now, as I reported above, in Blender there is an issue with "multi-thread caching", particulary with v4l2loopback device. So, If this issue continues and it is the main bug... then, no. The problem is still there. I'm reporting this new v4l2loopback version in the other bug report. Maybe Benoit can tell us more information. Thanks. |
|
to find out the current version of the module, run
|
|
Well, yes. I installed well. And no, the problem with Blender is still there. But remember that Blender had an issue with "multi-thread caching"... Benoit had sent me a patch that avoid this caching and it worked well. Maybe, now the problem is only in Blender. Let's wait for Benoit feedback. |
|
I got a similar problem
I am not sure if it is v4l2lookback's problem or the gstreamer stamped wrong |
|
Hello, there. What happened with this issue? 0.10.0 didn't fix the problem... |
|
i think one of the issues is that it is unclear who should actually provide the timestamp: the module or the producer? (I tend towards the producer, but I don't know whether there is a single producer out there that actually does it) |
|
oh, i just noticed that there actually is code in place that generates timestamps if the producer doesn't provide one (since v4l2loopback@v0.4.0) so it seems that the problem is indeed with (de)queueing... @panshengjie since your setup seems to be easier to reproduce: could you provide a full (minimal) set of commands (both producer and consumer) to trigger the behaviour. |
|
@umlaeute
and the ffmpeg will report the error
if you don't have a true camera, maybe you can try videotestsrc in gstreamer as a video source |
I made a 3D scene (in Blender Game Engine) with two VideoTextures: one shows the webcam image, the other one, a v4l2loopback device capturing second-display screen, using gst-launch-1.0. No matter what command I use (*), when BlenderPlayer starts, it only shows the first frame of the v4l2loopback device. Webcam works well.
What I tested:
(*) My command:
Also, I tried with the simplest one:
gst-launch videotestsrc ! v4l2sink device=/dev/video1This is the blend file (I can't upload here, not even I compress to a ZIP)
https://dl.dropboxusercontent.com/u/13242430/95-video-texture-v4l2loopback.blend
To reproduce the "issue"
What it should do
One object should show the webcam device and, the other, a video-test-pattern with motion.
I also reported this issue in Blender Development page: https://developer.blender.org/T48692
The text was updated successfully, but these errors were encountered: