Video_stream_add

Support for Air Player desktop.

Moderators: russ, Ralph

Message
Author
Mickolodias
Posts: 69
Joined: Mon Sep 13, 2021 3:21 am

Re: Video_stream_add

#11 Post by Mickolodias »

Mickolodias wrote: Sat Oct 01, 2022 10:01 am
Corjan wrote: Sat Oct 01, 2022 9:33 am So yeah, as far as X-plane is concerned, no more popouts.
And yes, you can also stream to other devices, like tablets.
This is truely awesome!!!
@Puukka ’s Citation X instruments could totally use this as well.

@jph Possibly this paves the way for custom hardware glass instruments using an Rpi!

@Corjan oooooo - by tablets… do you mean…. Ipad/android support as well!?
I'm one of 'those' mac guys. (and I have no idea why I can't afford to eat)

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: Video_stream_add

#12 Post by jph »

That's really interesting Corjan. thanks.! :o
It will be good to see how much performance hit there is in generating the data for the devices that can be accessed externally is actually there and also if the instrument math and texture generation in XP can be offloaded to a second XP machine.
Joe

Mickolodias - RPI.. naw, use a PC any day :lol:
Joe. CISSP, MSc.

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: Video_stream_add

#13 Post by Corjan »

Hi,


Yeah, that would also includes iPad and Android.

We tested the stream on a Pi, and it was able to keep up with a decent framerate.
Don't expect to run multiple streams though.

On my 11800H processor, when running 4 streams at once, the AM process uses about 2% CPU.
This is quite a high end machine, but I don't expect to much trouble on the performance side.


There might be some GPU driver issues though... but we just have to see how that plays out,

Corjan

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: Video_stream_add

#14 Post by jph »

2% for 4 streams on an 11800 is very respectable.
I am sure there will be GPU driver issues due to Vulkan but they will sort that out.
Great info.
Joe. CISSP, MSc.

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: Video_stream_add

#15 Post by Corjan »

Hi,


No, in fact the X-plane API keeps using the openGL functions.
They have some kind of translation layer to Vulkan it seems.


When they would leave openGL for plugins, a lot of plugins would break instantly,

Corjan

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: Video_stream_add

#16 Post by jph »

Corjan wrote: Sat Oct 01, 2022 11:08 am Hi,


No, in fact the X-plane API keeps using the openGL functions.
They have some kind of translation layer to Vulkan it seems.


When they would leave openGL for plugins, a lot of plugins would break instantly,

Corjan
I am surprised at that. I thought they insisted that the plugins were updated, but I am only going from memory. Is the translation part of Vulkan or is it some fudge they are doing ? The translation surely must be part of Vulkan ? (I hope it is - it would be a bit of a nightmare otherwise :o )
Joe. CISSP, MSc.

JackZ
Posts: 2262
Joined: Mon Feb 22, 2016 1:02 pm

Re: Video_stream_add

#17 Post by JackZ »

Is it the equivalent of XTexture extractor?
Great job Corjan, if you can make it work.
Especially if the texture can be streamed to a remote PC or Raspi

Jacques
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ

User avatar
Ralph
Posts: 7878
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Video_stream_add

#18 Post by Ralph »

It's on some way the same. But in this case you can directly request which texture you want, the user doesn't have to search for the right texture.
The streaming across the network is already working. This means that you can also show it on for example an iPad.
It uses H264 compression, so there's very little data going across.

User avatar
jph
Posts: 2846
Joined: Fri Apr 10, 2020 12:50 pm
Location: Somewhere over the rainbow..

Re: Video_stream_add

#19 Post by jph »

This is my main concern - if it is like XTexture extractor as far as the panel rendering - then (for the notes for XTE)
The plugin requires the cockpit to be rendered, so only works with internal and not external views. If you need an external view, start from within a cockpit view, and move the camera outside the aircraft. This will cause X-Plane to render the cockpit panels, and allow the plugin to work.
Having the panel rendered is a definite concern as it is a huge frame rate hit (with triple monitors especially)
It would (for me) need to be able to selectively render specific instruments only - not the whole panel.

Ah, we overlapped Ralph, are you saying you can specify only SPECIFIC instruments to be rendered- and not the whole panel ? - it still sounds a little like the whole panel may be rendered but you can more easily specify which to stream - but still from the whole list. That is one hell of a lot of processing. (if that is the case)
Joe. CISSP, MSc.

User avatar
Corjan
Posts: 2936
Joined: Thu Nov 19, 2015 9:04 am

Re: Video_stream_add

#20 Post by Corjan »

Hi,


Not sure how X-plane does it internally. but the API lets you request a certain avionics device.
It is also working when the virtual cockpit is turned off.

If they where smart about it, they wouldn't render any avionics if the virtual cockpit is turned off and no requests have been done through the API.
But then again, I am not a X-plane programmer :)


Corjan

Post Reply