Camera flipping in the new camera-streamer build

tried one more line, from foosel's original post regarding camera-streamer build:
Camera-streamer configuration on the new camera stack for OctoPi - Get Help / Guides - OctoPrint Community Forum
Under the section starting;

"Additionally, any of camera-streamer 's command line parameters can be provided as well:"

There is a suggestion for exactly this, i wrote it as;
OPTIONS='--camera-hflip=1 --camera-vflip=1"', this actually broke the stream as well.

Also should mention, i am only changing one thing at a time, and restarting with every change.

Does anyone even know if this camera can be flipped, in Foosel's post he mentions that some cannot. It's a standard raspicam V2. Kind of can be confirmed by the reported resolution on the options page.

Probably irrelevant, but i went to classic webcam settings, and checked flip there, and all the flip functions there work fine on my USB Microsoft webcam.

You don't need the 'Camera Streamer Control' plugin to use the new camera stack - and it should be noted the plugin is not finished yet.

Please test OctoPrint's flip feature just with the Classic Webcam plugin, the default as it is setup out of the box. If the flip works there, then it's probably just a bug with the new plugin that I haven't quite finished yet.

I will try this, however it's with more than just the plugin. Even when i change the settings in the libcamera.conf file, those changes don't take affect either.

That's why I suggested testing your changes from the /webcam endpoint links as a way of testing just the camera-streamer outside of Octoprint. Will help isolate the issue.

Still think you're going to be able to flip in software. I had one nagging thought about my recommendation to try RESCALLER:STREAM Options as a means to flip the image & that regards whether the ":" character requires any special handling when used in this way. The fact that those two options break the stream rather than have no effect makes me wonder more. None of the documentation I've read indicates that special handling is necessary & none of the cameras I have use any colon-seperated options so I'm unable to test it. I think it's time to summon the expertise of @ayufan, the camera-streamer author for clarification on that one.

Also surprised that the rotation property didn't work. Did you try any other values than 180 (which appears to be your default, making "0" the correct value)?

Yes, i tried several rotate values. And i noticed the default as well and set to 0.

Also when i tried your suggestions, i also noticed the period you placed, and noticed it used a dash in the default AF option, so i tried it with dashes in place of the periods, and that broke stream as well. I only had a couple minutes to answer here, I'll have to dable more later.

So it does indeed work through the classic webcam tab. Now basically i have both set to raspicam, and the Camera streamer tab show upside down;

And the classic webcam tab is flipped both ways;

Well seems to have boiled it down to the plugin. I will go ahead and mess with the options under the libcamera.conf under the classic webcam setup to see if those function actually do work.

Charlie anything you want me to do to report the bug, or do you already got it? I know its not complete, but mostly it works a treat, so thank you for it.

EDIT: I should have mention here that both flip checkboxes are checked on both settings tabs for both 'plugins'

If you browse to the /webrtc endpoint (http://octopi.local/webcam/webrtc) is the image displayed correctly (i.e. NOT in need of flipping)? The /webrtc endpoint is what Charlie is using in his camera-streamer plugin & I would think they display the same image. If that's the case, it would seem to point to an issue in the camera-streamer config.

Its is still upside down, however as i have it at the moment, none of the settings in the libcamera.conf are set, all are commented out. I will try when i can..

I only mentioned it because if we're unable to flip the image through configuration of the camera-streamer itself, I wouldn't hold out much hope of the plugin being able to accomplish it at this point.

Yep, im with ya, just right in the middle of a 2 day print, so once its done i will play some more. (Need to restart)

The flip options in the UI are just how the stream is embedded - it doesn't change the actual stream, so it works independently of the options in the .conf file.

With regards to the bug of the flip not working, I'll take a look when I next get a chance to work on the plugin.

Thank you for that. Yes I understand, thats why i have to wait for my print to finish so i can restart once setting libcamera.conf settings.

I didn't initially send a system bundle, but if it helps you i can.

So, my print failed, and i went and messed with the settings, and low and behold it works with it set as;

I promise i tried this already and it didnt work, but now it does, lets see if it lasts. This is in both the webrtc page, and through the plugin. I also have both flip boxes checked in Camera-streamer plugin page, maybe having both set is what did it, might just have been a combo i didn't happen to try. Thanks for all your help!!

Several restarts and it seems to be staying.

:sunglasses: Glad you found a solution.

Edit: Are you pasting pictures of your libcamera.conf because of what the site markup language does to the contents when you try to paste it? If so, use the preformatted text control "</>" from the post editor toolbar to enclose anything like logs or config files to improve readability and increase the amount of love you'll get in the forums :grinning:

Sorry, but...

"she", thanks :wink:

2 Likes

I'm so sorry, no disrespect meant, I've only ever read your work, so.... Sorry!

1 Like

Thanks for the advice, and thanks for your help.