Open laispc opened 1 week ago
It could be that ffmpeg
is not correctly installed, if I remember correctly it is not a direct dependency of mxcubeweb
, however the video-streamer
. Could you try installing ffmpeg
, re-run the mockup-server and see if that resolves the issue?
Version used: mxcubeweb v4.231.0 + core v1.188.0 (forgot to include in the description).
Great, @walesch-yan , thanks a lot! I installed ffmpeg
with pip and apt (in Ubuntu) and now I have an image on the UI. :fireworks:
The funny thing for me is that the image I get is the fakeimg.jpg
and not the mxcube_sample_snapshot.jpeg
. I am trying to understand why. :laughing:
You're welcome!:)
That is actually the way it is intended, the mockup version uses the 'TestCamera' from video-streamer
, which will always only use the fakeimg.jpg
. The mxcube_sample_snapshot.jpg
is used for the snapshot routinein the mockup, i.e. if you press the Take Snapshot
button on the mockup UI, your browser will download that image (overlayed with the shapes you drew on the SampleView
)
If you want to change the image that is displayed on the mockup you would have to clone the mxube/video-streamer repository change the picture in here and from the root of the repository use pip install -e .
It could be that
ffmpeg
is not correctly installed, if I remember correctly it is not a direct dependency ofmxcubeweb
, however thevideo-streamer
. Could you try installingffmpeg
, re-run the mockup-server and see if that resolves the issue?
I suggest we document this, and the part about which image is used for display/snapshot, somewhere. I couldn't remember it either when I recently re-installed MXCuBE.
I would advocate adding ffmpeg
as a dependency to the mxcubeweb
conda-environment.yml
? and yes documenting would also be good :)
Hi,
Probably a simple issue/doubt: when running the mockup config (mxcubeweb/demo), the example video image
mxcube_sample_snapshot.jpeg
set inmd_camera.xml
is never displayed on the UI (the sample view widget is always black).On the core side (
MDCameraMockup.py
), the image path is found and the image is emitted (with theimageReceived
signal), but it's not handled bysampleview.py on the Web side (e.g., method
_new_frame_received()` is never called apparently). No error message appears in the log regarding this.Is this the expected behavior? Does tha camera have to be enabled manually? Would be nice to have the image showing, so we can have a base for new camera implementations (which is what I am trying to do :grin: ). Thanks!