t-asano / tinyviewplus

FPV multi-view and lap timing system.
Other
65 stars 14 forks source link

Add DJI Video Output as an Input / Support USB-HDMI capture card #28

Open sebastienvg opened 3 years ago

sebastienvg commented 3 years ago

Yesterday the community made some tremendous progress and got the video out working of the USB-C port of the DJI Goggles https://github.com/fpv-wtf/voc-poc

I think that would be just awesome to have the option to use DJI Goggles and/or analog with TinyViewPlus, I wish I was able to contribute to the code base but it's a little over my skillset at this time.

potre32 commented 3 years ago

Yes, please work on this, I love your program but I switched to DJI and I can't use it

t-asano commented 3 years ago

Thank you for requesting. Tiny View Plus v0.9.31 supports user defined usb video capture device. It could be another rough solution.

connection

スクリーンショット 2021-10-03 7 04 31
<camera>
    <name>USB</name>
    <description>720p trim 4:3</description>
    <grab>
        <width>1280</width>
        <height>720</height>
    </grab>
    <crop>
        <x>160</x>
        <y>0</y>
        <width>960</width>
        <height>720</height>
    </crop>
    <draw>
        <aspectRatio>4:3</aspectRatio>
    </draw>
</camera>

This solution needs following equipments:

[DJI Goggle]--USB--[PC1(voc-poc)]--HDMI--[Video Capture Device]--USB--[PC2(TinyViewPlus)]

OscarPonsetti-OSCARNOVA commented 5 months ago

Hello how can I put 1 pilot with hdZero and 3 pilot with analog? I have an hdmi card to usb and it work very good on obs but I don't know how have 4 mixed video

nkozawa commented 5 months ago

I wrote a Japanese article about HDZero video input to TinyViewPlus recently. I hope that Google translate helps you to understand. https://www.nkozawa.com/blog/archives/7761

OscarPonsetti-OSCARNOVA commented 5 months ago

ah ok so when I attached and hdzero source the program will take the settings in the fpv.xml file but if I also attach analog receiver which file the program use?

t-asano commented 5 months ago

@nkozawa nice blog!

@OscarPonsetti-OSCARNOVA fpv.xml is a setting file for "additional" video device. You can use default video device (analog receiver) and additional video device (defined by fpv.xml) at same time.

Default video device:

Additional video device:

OscarPonsetti-OSCARNOVA commented 5 months ago

Ok which name I have to write? 1

OscarPonsetti-OSCARNOVA commented 5 months ago

if I write USB3.0 Capture the program will crash

OscarPonsetti-OSCARNOVA commented 5 months ago

here the file xml:

USB3.0 Capture squeezed 16:9 1280 720 0 0 704 480 16:9
OscarPonsetti-OSCARNOVA commented 5 months ago

@t-asano what is the problem with the name here?

t-asano commented 5 months ago

No problem. I'm pareparing answer for you. please wait.

OscarPonsetti-OSCARNOVA commented 5 months ago

If I use obs with this device all work good but tinyviewer continue to crash with the name <name>USB3.0 Capture</name>

t-asano commented 5 months ago

I think \<name> is correct. It might be a prolrem of resolution settings. Please try settings below. example_usb30capture.zip

Please rename xml file to "fpv.xml".

fpv

OscarPonsetti-OSCARNOVA commented 5 months ago

nope I try with this two file and nothing change the program continue to crash

t-asano commented 4 months ago

@OscarPonsetti-OSCARNOVA Please give me more detailed information.

OscarPonsetti-OSCARNOVA commented 4 months ago

Here is the link of my capture card: https://amzn.eu/d/1eenjq7 If I didn't plug the hdmi card the program didn't crash

t-asano commented 4 months ago

I can’t get "DigitConvert" product in japanese market. However, I've got two similar products.

GUERMOK HD Capture Card (Z29A-FBA-JP)

Result: FAIL

image

guermok

I expect that this device has a same problem as "DigiConvert". It may take a long time to resolve.

UGREEN HD USB Video Capture Card (40189)

Result: PASS (Image was displayed)

image

ugreen

OscarPonsetti-OSCARNOVA commented 4 months ago

Ok so you will try to fix the problem or I need to buy the ugreen converter?

t-asano commented 4 months ago

If you are in a hurry, I recommend that you borrow a UGREEN device from someone to test or buy it yourself.

I can't take responsibility for the perfect operation of UGREEN devices. Because, I have only done limited testing, and I don't have enough time to do any more testing. Furthermore, there is no guarantee that the products that can be purchased in the Japanese market and your country have exactly the same specifications.

The problem with the "USB3" device may depend on the library (openFrameworks) used by TVP. I haven't investigated it yet, and I don't have enough time to do so. I can't even predict whether I can fix it.

t-asano commented 4 months ago

GUERMOK HD Capture Card (Z29A-FBA-JP) did not work even with apps below.

I expect that this device has a same problem as "DigiConvert". It may take a long time to resolve.

It seems like a different problem. The device I bought may be broken. I cannot investigate it.