Webcam preview in fullscreen and testmode display the vertical placed webcam view incorrect
dirkvranckaert opened this issue · comments
The problem
I have 2 webcams configured on my OctoPrint installation, twice the popular Logitec webcam C270.
One is installed horizontal (as you usually use these webcams). One however (due to limitations of my enclosure) is installed vertically. And I'm pretty happy with that installation direction since that gives me quite a different look at my printer :-)
But the problem is that on two places the webcam preview is not correctly displayed:
- As you can see in the screenshot below I have rotated my camera through the settings with 90°, however if I press the preview button it does not rotate.
![Screenshot 2023-11-21 at 19 40 56](https://private-user-images.githubusercontent.com/4660794/284683714-5652ca25-1bad-43a6-ba4c-b0561425fff2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDI0OTU2OTUsIm5iZiI6MTcwMjQ5NTM5NSwicGF0aCI6Ii80NjYwNzk0LzI4NDY4MzcxNC01NjUyY2EyNS0xYmFkLTQzYTYtYmE0Yy1iMDU2MTQyNWZmZjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlXTkpZQVg0Q1NWRUg1M0ElMkYyMDIzMTIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyMzEyMTNUMTkyMzE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTY4NTA2NTYwMzZhOTlhNjkzNTA0MjkzNWZlY2RhYzRjMjcxZWUyN2I1ZWQ4MGIzZTNmMjE1YzJiYWViNGU0MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.vjoKJuBvY39pEMQYmYHDskmutB_CBy7BNPGMzmdd-rE)
![Screenshot 2023-11-21 at 19 41 47](https://private-user-images.githubusercontent.com/4660794/284683913-ab13ecc0-e72c-4182-bb7f-1d0a7cbb948f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDI0OTU2OTUsIm5iZiI6MTcwMjQ5NTM5NSwicGF0aCI6Ii80NjYwNzk0LzI4NDY4MzkxMy1hYjEzZWNjMC1lNzJjLTQxODItYmI3Zi0xZDBhN2NiYjk0OGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQUlXTkpZQVg0Q1NWRUg1M0ElMkYyMDIzMTIxMyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyMzEyMTNUMTkyMzE1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZGY4ZjM2MzQ2N2NlZDA4NjZkZTc1NDA0NWQ0MGU0MTc0ODlhZDljZTI0YWRmNmU2NmFhZGE4NWZiMmIyMzJmOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.mQ_sJjQ-BeRgkTh2L07PrGbOQrrbXzwFo6yKLOb5wp4)
![Screenshot 2023-11-21 at 19 42 27](https://private-user-images.githubusercontent.com/4660794/284684054-cbf95976-fd49-4d12-a828-b2341f865854.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTEiLCJleHAiOjE3MDI0OTU2OTUsIm5iZiI6MTcwMjQ5NTM5NSwicGF0aCI6Ii80NjYwNzk0LzI4NDY4NDA1N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eHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWM1NDAyOWMxYTE3Y2Q5MDA2N2FjNDEwNzY5NTBhOGE2ZTY5Y2MxZTNmZmZlZDdlNGNhMGM3MzViOTFjOGQ0YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.6NJUFY6sKm3F8B5w7Vz9uzTP3MCkfcr_K8WvQaR5FyU)
Did the issue persist even in safe mode?
Yes, it did persist
If you could not test in safe mode, please state why ("currently printing" is NOT an excuse!)
No response
Version of OctoPrint
1.9.3
Operating system running OctoPrint
OctoPi
Printer model & used firmware incl. version
Prusa MK4
Browser and version of browser, operating system running browser
Chrome
Checklist of files to include below
- Systeminfo Bundle (always include!)
- Contents of the JavaScript browser console (always include in cases of issues with the user interface)
- Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
- GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)
Additional information & file uploads
The option to watch the webcam in full screen is not part of OctoPrint core. Did you try it in safe mode?
Safemode does not make any difference. Ok for the fullscreen view (I'll try to find out who's plugin that is then) but still the previews in the settings are not reflecting my settings.
The idea of the test preview is actually JUST to check whether the URL is correct, by embedding it directly with any kind of further processing. That's also why it's located next to the URL entry and not close to the rotation and flip settings. Changing that would basically require to duplicate the code already used in the control tab, which I'd rather not, and also make debugging more problematic - is the camera distorted due to a bug in the rotation/flip code, or because something's up with the camera?
So this is working as it should here, and as already mentioned, the fullscreen view is not part of OctoPrint's core. That SHOULD probably react to the rotation and flip settings, however that needs to get reported to the plugin that provides that (maybe Fullscreen Webcam?).
As thus, I'm closing this since I don't see anything actionable here.