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

Moblin support for portrait mode streaming #88

Open
fdebbabi opened this issue Dec 15, 2024 · 33 comments
Open

Moblin support for portrait mode streaming #88

fdebbabi opened this issue Dec 15, 2024 · 33 comments

Comments

@fdebbabi
Copy link

fdebbabi commented Dec 15, 2024

The stream via Moblin seems possible only in landscape mode. Any idea how to stream in portrait mode
from within the app?

My hack for now is to send it to a middle component that is going to do a rotate for something that should be native I believe.

This is extremely beneficial for portrait live streams (IRL/Outdoor) that target smartphones so that viewers can see a bigger and sharper image and not simply a 16:9 image in a 9:16 canvas (a big part of the frame is black) (check added photo to see how the stream looks on smartphones screens without doing the hack

Screenshot 2024-12-15 at 14 19 35 )
@eerimoq
Copy link
Owner

eerimoq commented Dec 15, 2024

Settings -> Streams -> My stream -> Portrait not sufficient, and rotate 90 degrees in OBS?

Widgets are not supported in "portrait". They will be rotated 90 degrees.

@fdebbabi
Copy link
Author

As I stream outdoor for 1-5 hours, my goal is to skip OBS part (that I am doing currently), my goal is to send stream following the first approach as there is less dependency/requirements/things to manage at home and when things fail when I am outside I don't have to stop livestreaming and go back at home and fix things:

  1. Moblin(SRTLA) -> Belabox(SRTLA) <- RTMP Relay -> (Youtube, Tiktok and Instagram simultaneously)

  2. Moblin(SRTLA) -> Belabox(SRTLA) <- OBS On my PC to rotate -> RTMP Relay -> (Youtube, Tiktok and Instagram simultaneously)

@eerimoq
Copy link
Owner

eerimoq commented Dec 15, 2024

I see. No one is working on adding real portrait right now, so likely not supported anytime soon

@fdebbabi
Copy link
Author

Ok, thank you for the information 👍

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

Implemented it. It's in Test Flight soon.

@fdebbabi
Copy link
Author

That was extremly fast 😅 you know that portrait streaming is the only reason I keep using Larix Broadcaster (I bet a lof people need this for IRL)

@fdebbabi fdebbabi reopened this Dec 18, 2024
@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

It's in test flight now in case you wanna give it a try. Just enable it in Settings -> Streams -> My stream and go live. Let me know if it works

@fdebbabi
Copy link
Author

I have just checked (on iPad), one question, how to enable it in Settings -> Streams -> My stream, I can't find a button to rotate stream or proper 9:16 resolution, i only find rotate in display.

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

it's only supported on iphone

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

can probably be added to ipad

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

was easy to make it work on ipad. will be in test flight in 15 minutes

@fdebbabi
Copy link
Author

Stream is working fine, some minor issues I sent via testFlight

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

I need more details on the problem that parts of the video is outside the screen. It's not like that for me on iPhone or iPad. What is you setup? What camera are you using as video source?

@fdebbabi
Copy link
Author

Using iPhone SE natif back camera (there is only one)

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

fixed the resolution names

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

looks good on iphone x as well. not sure why the video is partly outside the screen. you got any widgets or anything else you think could affect it?

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

Update to latest testflight again. should have resolution fix

@fdebbabi
Copy link
Author

Yes, all of the issues mentioned are now fixed on both ipad and iPhone SE (even the camera that was out of the screen in portrait mode).
One minor issue still left is that icons in portrait mode are slightly cut/out of the screen in iPHone SE (I sent photo using test flight)

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

ok! yeah, the buttons are slightly cut on Mac as well. not sure how to fix it, as I don't want to add padding on phones where it already looks good.

@fdebbabi
Copy link
Author

fdebbabi commented Dec 18, 2024

Yes, for me everything is perfect :) that would be good also to share it in discord once accessible directly in app store (multiple people were asking also for it)

Note: I tested on iPhone SE because it is the only iphone I had accesible tonight, iPhone SE is really not for streaming (can't take the stress)

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

fixed the buttons as well. was easy.

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

You can read the release notes in moblin discord server, the releases channel.

@eerimoq
Copy link
Owner

eerimoq commented Dec 18, 2024

it's in test flight now

@fdebbabi
Copy link
Author

I will check that tomorrow

@fdebbabi
Copy link
Author

Buttons are working fine now, portrait mode seems not working when using external camera (DJI Action 4) in iPad, i didn't check the resolution received by the stream, for now I am speaking only about the UI, i believe it should rotate.
20241219_110258

@eerimoq
Copy link
Owner

eerimoq commented Dec 19, 2024

Added rotation setting in Settings -> Scenes -> My scene just now. It's in test flight.

@fdebbabi
Copy link
Author

Now it rotates properly, but when in portrait mode it does not fill enough space in the screen, it would perfect if it is a little bit bigger
20241220_142724

@eerimoq
Copy link
Owner

eerimoq commented Dec 21, 2024

odd it's not like that for me

@fdebbabi
Copy link
Author

I on iPaid Air Model, I will in chech again one hour

@fdebbabi
Copy link
Author

Everything works fine now 🤩

@eerimoq
Copy link
Owner

eerimoq commented Dec 22, 2024

Goood!

@fdebbabi
Copy link
Author

One question, when using external camera, does moblin decodes the received stream from the camera to show it on screen, than re-encodes the decoded one to send it to the destination, or does it send as it is from the source?

@eerimoq
Copy link
Owner

eerimoq commented Dec 24, 2024

Everything leaving Moblin is encoded by Moblin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants