Skip to content
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

Feature request: Setting to stretch the image from the analog module from 4:3 to 16:9 #145

Open
a-di-ez opened this issue Jan 31, 2023 · 40 comments
Labels
analog enhancement New feature or request

Comments

@a-di-ez
Copy link

a-di-ez commented Jan 31, 2023

The tinywhoop cameras does not have settings to change it there, and the glasses do not have such an opportunity, so not the whole screen is used

@bkleiner bkleiner added the enhancement New feature or request label Jan 31, 2023
@wernight
Copy link

Caddx Baby Turtle (Larva X HD) supports 16:9 and 4:3 however it's native 16:9 (i.e. 4:3 is cropped). Also it has onboard DVR and footage in 16:9 is way better. The only issue is that HDZero Goggle doesn't support stretching the image to 16:9.

Flying with the wrong aspect ratio is just awful (and I don't mean rendering a 4:3 feed in 4:3 but stretching 16:9 into 4:3).

I do see that there is a difficulty to switch between 4:3 and 16:9 depending on the model possibly especially for people flying with both aspect ratios (rare).

@a-di-ez
Copy link
Author

a-di-ez commented Jan 31, 2023

Caddx Baby Turtle (Larva X HD) supports 16:9 and 4:3 however it's native 16:9 (i.e. 4:3 is cropped). Also it has onboard DVR and footage in 16:9 is way better. The only issue is that HDZero Goggle doesn't support stretching the image to 16:9.

Flying with the wrong aspect ratio is just awful (and I don't mean rendering a 4:3 feed in 4:3 but stretching 16:9 into 4:3).

I do see that there is a difficulty to switch between 4:3 and 16:9 depending on the model possibly especially for people flying with both aspect ratios (rare).

Larwa is not a tinywhoop, for such sizes it is possible to adjust the aspect ratio, but I see no reason to use an analog if there is hdzero. The analog is relevant only for 65-75mm, because hdzero is heavy.
For tinywhoop, the optimal image quality and weight are only in runcam nano 3, but it does not have any settings.
I don't know how you stretch 4:3 to 16:9 so that it looks terrible, but for me it's not a critical difference

@wernight
Copy link

wernight commented Feb 1, 2023

To be clear I'm using an analog module on the HDZero Goggle. Yes I can change the aspect ratio that the camera sends and lose what I could see on the side to gain a bit on the horizontal resolution.

@a-di-ez
Copy link
Author

a-di-ez commented Feb 1, 2023

@wernight change aspect ratio in goggle or camera?

@wernight
Copy link

wernight commented Feb 1, 2023

@a-di-ez In the goggle so that if I set the analog camera to send 16:9 (received via TBS Fusion module) the HDZero Goggle would also render that in 16:9.

For now I've change the aspect ratio that the camera sends (i.e. I get a cropped view but a bit higher horizontal resolution). Noticed that the DVR recorded video is always 16:9 which is good.

@a-di-ez
Copy link
Author

a-di-ez commented Feb 1, 2023

@wernight great, but in your case it's better to switch to hdzero to get a high-quality picture

@wernight
Copy link

wernight commented Feb 1, 2023

You mean change the VTX to something like a HDZero Whoop / Race? Sure that'd improve quality if it actually fits and works with the camera and onboard-DVR (which I doubt). In any case I have digital VTX on 5" but I got the analog module for smaller quads and cheaper builds.

Keeping analog either options (HDZero Goggle stretch the received analog feed to 16:9 vs cropping the analog VTX to 4:3) would have the same picture quality just "distributed" differently. I think the HDZero Goggles are also very popular with many analog users as I also noticed around me.

@a-di-ez
Copy link
Author

a-di-ez commented Feb 2, 2023

Yes, analog support was a decisive factor for me to get rid of hdo2

@cynfewl
Copy link

cynfewl commented Feb 6, 2023

I would also like the ability to display a 16:9 analogue image at the full 46 degree FOV of the goggles. There are cameras like the Caddx Ant Lite (not the FPV Cycle edition that is 4:3 native) that I can't currently use due to stretching, but would love to on lighter 65mm builds.

I really like the way the goggles handle the HDzero 16:9 vs 4:3 image where the goggles are always 16:9, but the image from the camera either fills up the screen (16:9) or is displayed with black columns either side (4:3). This means I don't have to set my goggles to a particular mode and can mix cameras at will.

If the analogue module behaved in the same way, that would be awesome, though if I had to choose a screen format for the analogue module to force full screen 16:9, that would also work.

@HazzaHFPV
Copy link

16:9 mode for the analog module would be awesome. I do fly a lot of analog whoops still, one reason I bought the HDZero Goggles. Many of my whoops do have 16:9 which gets squished in the goggles unfortunately. So I'd be really happy for this mode.

@dbloemhard
Copy link

I have gotten used to flying all my analog whoops on 16:9 (Skyzone 02s). Even the 4:3 cameras, when stretched to 16:9 look great. Its much easier to get used to than the other way around (4:3 stretched to 16:9). So I would be very grateful for this fix.

@cynfewl
Copy link

cynfewl commented May 12, 2023

I know there is a lot of work going on with the analogue interface at the moment and this is just one issue amongst many that probably have higher priority.

Does anyone know if these wishlist (but still important for those of us who want them) items are also being included in these works?

Thank you in advance.

@gonebdg
Copy link

gonebdg commented May 22, 2023

How it's going?
Don't want to argue or talk much regarding 4:3 & 16:9
16:9 option is a must for hdz goggle.

@slash128v6
Copy link

I would like this as well.

@SupaflyFPV
Copy link

I'd really like to have 16:9 for the analog input. This could make them my main goggles. A lot of people fly 16:9 on analogue.

@kyleireland
Copy link

I would also love to have 16:9 output as an option with the Analog output.
Not a fan of being limited to 4:3.

@thespova
Copy link

I also primarily use 16:9 cameras on analog even on whoops. Telling people to switch to a different VTX is not a fix. There are lots of reasons to use analog even outside of whoops still and lots of people got the HDZ goggles because they also are supposed to include full analog support. I still feel like to date they still have a fairly limited implementation for analog however.

@kyleireland
Copy link

kyleireland commented Oct 15, 2024

Option to switch between 4:3 and 16:9 Analog.
Stretches 4:3 to 16:9.
16:9 as 16:9 rather than compressing it to 4:3.

@kyleireland
Copy link

kyleireland commented Oct 19, 2024

This is what it would possibly look like if you had the option of 16:9 wide but a 4:3 feed.
16:9 Feed shown as 16:9 would be great as it currently compresses to 4:3. (not shown)

example.mp4

I feel the 16:9 is needed as some analog cameras are 16:9 and they get compressed to 4:3

If you want to convert your current HDZero footage from 4:3 to 16:9 for now you can;

  1. Disable HDZero OSD in menu before flights.
  2. Download ffmpeg - https://ffmpeg.org/download.html#build-windows
  3. Find the ffmpeg.exe and put it into a folder.
  4. Put the footage you want to convert into the same folder.
  5. Open a text editor and paste the following code, then save as something.cmd
  6. Run the script, type ok to confirm you want to run it. (safety from accidental running)

@echo off
setlocal enabledelayedexpansion

echo WARNING: This script will convert all videos in the current folder from 4:3 to 16:9
echo.
echo Please type "OK" and press Enter to continue, or press Enter to cancel.

set /p userInput=Input:
if /I "%userInput%" neq "ok" (
    echo Cancelled.
    exit /b
)

for %%F in (*.TS *.mp4 *.avi *.mkv *.mov *.flv *.wmv) do (
    set "inputFile=%%F"
	set "filename=!inputFile!"
    set "outputFile=%%~nF_16x9%%~xF"
	
    echo Converting !inputFile! to 16:9 aspect ratio...

	
    ffmpeg -i "!inputFile!" -vf "crop=in_h*4/3:in_h,scale=1280:720,setdar=16/9" -c:v libx264 -crf 17 -preset slow -c:a copy "!outputFile!"

    if %ERRORLEVEL% neq 0 (
        echo Failed to convert !inputFile!
    ) else (
        echo Converted !inputFile! to !outputFile!.
    )
)

echo Script finished.
pause

@gerab
Copy link

gerab commented Oct 30, 2024

Ok, this is ridiculous that we don't have it yet.

@JSMiCh
Copy link

JSMiCh commented Oct 30, 2024

My old analog camera (foxeer T Rex) has sensor 16:9 and gives really nice image. It would be great to have the feature

@etsach
Copy link

etsach commented Oct 30, 2024

Just purchased HDZero goggles for the ability to do both HD and Analog, and with 16/9 signal having it squeezed to 4/3 is awful, it gives horrible motion sickness when doing barrel rolls.
This is a feature available on the cheapest possible goggles, it's not possible not to have it on the most expensive analog system.
Would be glad to help implementing it if I can contribute.

@thespova
Copy link

thespova commented Nov 5, 2024

How do we get this fix implemented? I wouldn't even consider analog supported with out the ability to support the higher end analog cameras.

Is this something we should bug Divimath about? Do we just get enough people to comment here? Discord?

@pfeerick
Copy link

pfeerick commented Nov 5, 2024 via email

@cougman
Copy link

cougman commented Nov 5, 2024 via email

@anilvermab
Copy link

At least add this to your 10.0 to-do list.

@8xx8
Copy link

8xx8 commented Jan 8, 2025

+1 to this feature request from me.. Was really surprised in a bad way that this is not supported.

@thespova
Copy link

thespova commented Jan 8, 2025

With all the interest and comments this seems to get it would be nice to get some comment from devs about the possibility of this happening.

I know everyone was saying analog is dead there for a bit but that's clearly not true. Analog still has a lot of use and interest. HDZ are supposed to be "the best you can do with analog" but not having common screen ratio that many of the best analog cameras are offered with is an issue.

@nerdCopter
Copy link
Contributor

PR #472 now stretches analog to 16:9, but seemingly without option for 4:3 :(

binary here: https://github.com/hd-zero/hdzero-goggle/actions/runs/12760401014

@thespova
Copy link

PR #472 now stretches analog to 16:9, but seemingly without option for 4:3 :(

binary here: https://github.com/hd-zero/hdzero-goggle/actions/runs/12760401014

Was that specifically supposed to add an option or change the aspect ratio of analog? It doesn't look like either was intended as far as I can tell.

@nerdCopter
Copy link
Contributor

Was that specifically supposed to add an option or change the aspect ratio of analog? It doesn't look like either was intended as far as I can tell.

same conclusion here. i don't how it's happening, only that it is.

@thespova
Copy link

thespova commented Jan 20, 2025

I gave this a few test flights with my whoops and didnt notice any issues. Can confirm its full screen with the aircraft I tested and all of these where set to wide screen on the cam side (or just have not adjustable wide screen cams).

Maybe they are just changing to wide screen being default for analog? IDK how many cams are sold default wide vs 4:3 but maybe this makes more sense as a default?

Personally, id be ok with just having 2 versions of each official firmware release. One for people that want wide screen analog and one for people that want 4:3. I imagine there are far fewer people that use both mode across different aircraft as most probably always go one way or the other.

@nerdCopter
Copy link
Contributor

i just did some testing, i used the right-button input = toggle-source, and once i go from Analog to HD then back to Analog, the screen is 4:3 again. so i'm a little confused at the result/function.

i have not tested how to achieve 16:9 again. 😆 🤕

as far as two firmwares, i think such would be messy in the dev-ops arena. one firmware makes more sense.

@etsach
Copy link

etsach commented Jan 20, 2025 via email

@ligenxxxx
Copy link
Member

I would add 16:9 / 4:3 options

@nerdCopter
Copy link
Contributor

option was merged: #473

latest main build(s) found here: https://github.com/hd-zero/hdzero-goggle/actions?query=branch%3Amain+event%3Apush

@cougman
Copy link

cougman commented Jan 24, 2025 via email

@gerab
Copy link

gerab commented Jan 27, 2025

I tried to install the artifact from here: https://github.com/hd-zero/hdzero-goggle/actions/runs/12948041847, but I don't know if it was a coincidence or it has an issue, but after repower, my goggles won't boot. I made a recovery SD and, after a few attempts, was able to restore the system to try to install the 16:9 new feature once again, but this time from the latest artifact that I took here:
https://github.com/hd-zero/hdzero-goggle/actions/runs/12948041847/artifacts/2480128676
and it works great.

Just curious if it's possible and if it makes sense to auto-adjust the aspect ratio for analog and add a 4:3/16:9/auto option.

@nerdCopter
Copy link
Contributor

[...] I made a recovery SD and, after a few attempts, was able to restore [...]

i've had similar before, ; i was told simply to put one of the *_VA.bin file on SDcard root, it should repair without doing the entire recovery method. Also, What i found missing from the user-manual (v1.9) about the "Emergency" recovery method is that the PhoenixCard tool reformats to exfat, but you still need to reformat into fat32 for the _RX/_VA part to work. Documentation could use some clarity and the aforementioned shortcut.

@gerab
Copy link

gerab commented Jan 27, 2025

Documentation could use some clarity and the aforementioned shortcut.

Yep. All those beeps say nothing and a part where .bin files should be automatically removed on success is also not true. But I was able to install everything in an hour or so. It's not ideal, but it is also a part of the hobby.
Anyway, I'm delighted with the automatic pipeline artifacts. At first, I thought I'd need a toolchain and build firmware from sources by myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests