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

Running on Ubuntu #1

Open
decurus opened this issue Apr 3, 2023 · 1 comment
Open

Running on Ubuntu #1

decurus opened this issue Apr 3, 2023 · 1 comment

Comments

@decurus
Copy link

decurus commented Apr 3, 2023

Hello Everyone,
First of all, thanks a lot for this project.
I see you marked the Linux version of this project as untested and since I am currently trying to get it to run I thought I could share my progress so far.
I am on Ubuntu 22.04 and am running Unreal Engine 5.1.
I downloaded the project normally and Put it into the Plugins Folder. In order to Run the Scripts thou, a few things needed to be done:

  1. The scripts (Vlc4LinuxCloneMakeInstall and Vlc4LinuxMakeInstall) seem to be saved in a windows format, all the line endings have CR, which resulted in bash not being able to read the file properly. This problem was solved by just using a Text editor that was capable of displaying CR (nvim) and simply removing them.

  2. It is IMPERIAL to use bash. I am so used to running .sh scripts with sh, that I did just that and did not give it a second though. However this resulted in the script failing in line 12, since += is not supported by sh, which meant the installDir was set to the project dir, and then deleting the entire project in line 13. (no hard feelings thou, it was just a test project)

  3. The installation needs liblua5.2-dev and libxcb-randr0-dev. Installing these manually is no problem, however since the script installs some stuff anyways i thought it would be really convenient to add the two packages to the script.

After all that, the plugin was detected by Unreal. I was able to create a new StreamMediaSource, and selected VlcMedia as a player. However upon creating a player and picking the media source, I got some errors at which I am currently stuck at.
Unreal Engine says:

LogVlcMedia: Error: satip: Failed to play RTSP session
LogVlcMedia: Error: satip: read error: Operation now in progress
LogVlcMedia: Error: satip: Failed to teardown RTSP session
LogVlcMedia: Error: main: Your input can't be opened
LogVlcMedia: Error: main: VLC is unable to open the MRL 'rtsp://192.168.0.84:8554/stream/'. Check the log for details.

Running some debugging showed that the stack-trace looks something like this:
InputSourceNew -> stream_AccessNew -> access_New -> module_need -> module_load -> init -> satip_open
Which then returns the error message "Failed to create worker thread".

The RTSP server itself recognizes a new connection, however, it gives an error message stating : [conn] closed (path has changed).
However I do not think this is the problem, because I can access the stream from every single device (with in my local network) using VLC with the aformentioned address.

Sadly this already is everything i was able to find out. The error messages are so vague, that I have no idea where to start looking to fix this.
Do you have any idea?

Have a great day.
Benny

@ffli
Copy link

ffli commented Nov 2, 2023

Hello,
Can you init the VLC instance. When i apt-get install the libvlc in ubuntu 20.04, and then copy the libvlc.so.5 and libvlccore.so.9.0.1 to the ThirdParty path. And cross-compile in the windows to linux package, then the log has error: Failed to create VLC instance((null)). Should i build and package the project on linux?

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