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

scream L4S run error #58

Open
xiaoshuyu6 opened this issue Nov 23, 2023 · 16 comments
Open

scream L4S run error #58

xiaoshuyu6 opened this issue Nov 23, 2023 · 16 comments

Comments

@xiaoshuyu6
Copy link

Hello , after installing scream, I did the Modifying gstreamer to use L4S in gstream.

I then went to run the L4S
. /scripts/receiver.sh
. /scripts/sender.sh

But there was an error, I couldn't test the L4S functionality of scream

The program on the sender side gives an error
image

@xiaoshuyu6 xiaoshuyu6 changed the title sceam L4S run error scream L4S run error Nov 23, 2023
@jacobt21
Copy link
Collaborator

Hi,

  1. Did you

Modify scripts/ecn_env.sh

ECN_ENABLED=1
Make sure that MY_GST_INSTALL points to the correct install directory.

2 Please modify sender.sh
killall -9 scream_sender
+which gst-inspect-1.0
+gst-inspect-1.0 gstscream
+gst-inspect-1.0 x264enc
$SCREAM_TARGET_DIR/scream_sender --verbose
3. Run sender.sh.

@xiaoshuyu6
Copy link
Author

I have executed the modified send.sh script as per your instructions. However, I still encounter an error. The operating system I am currently using is Ubuntu 20.04 with kernel version 5.15.0-88-generic. Do you recommend changing the operating system for testing purposes?

@jacobt21
Copy link
Collaborator

jacobt21 commented Nov 27, 2023 via email

@xiaoshuyu6
Copy link
Author

I'm posting the logs generated by the running 'receiver.sh' and 'sender.sh' scripts.These logs are stored in two separate files.
receiver.log

sender.log

@jacobt21
Copy link
Collaborator

jacobt21 commented Nov 27, 2023 via email

@xiaoshuyu6
Copy link
Author

Hello, I might not have specified the installation path during setup, and it's possible that the default path was used. The command I executed was 'meson setup builddir'.

Currently, after running 'gst-inspect-1.0', the output on my system is as follows:

1

Do I need to reinstall? If so, what path should I specify for the installation?

@jacobt21
Copy link
Collaborator

jacobt21 commented Nov 27, 2023 via email

@xiaoshuyu6
Copy link
Author

Hello, I've followed your instructions and successfully reinstalled the program. Now, MY_GST_INSTAL is set to $SCRIPT_DIR/... /... /... /gstreamer/install.

When I executed . /script/receiver.sh, it worked fine and produced the output: "screamrx/imp.rs ecn-enabled."

However, when I run . /script/sender.sh, it still throws an error. Here's the content of the output file for your reference.
send2.log

I also used gst-inspect-1.0 x264enc and successfully located it as follows:
2

@jacobt21
Copy link
Collaborator

jacobt21 commented Nov 28, 2023 via email

@xiaoshuyu6
Copy link
Author

Hello, I've followed your instructions and added the sender.sh script, which includes the commands gst-inspect-1.0 x264enc and gst-inspect-1.0 avdec_h264.

Below is the output from the sender side.
send4.log

According to the results, avdec_h264 should be present, but x264enc is not.

@jacobt21
Copy link
Collaborator

jacobt21 commented Nov 28, 2023 via email

@xiaoshuyu6
Copy link
Author

Thank you for your guidance. I've checked, and unfortunately, I couldn't find the libgstx264.so file in both the build directory and the install directory. Additionally, upon inspecting the meson-log.txt file in the build/meson-logs directory, it appears that x264enc is disabled.

image

Is there a specific step or configuration that I might have missed in enabling x264enc during the build process?

In addition, I would like to provide another piece of information. When I disable L4S by setting ECN_ENABLED=0 in ecn_env.sh and run sender.sh, the program output is normal, and I can detect x264enc.

I am wondering if the issue might be related to the version of GStreamer that I installed. I used the following repository: https://gitlab.freedesktop.org/samhurst/gstreamer/-/tree/ecn, specifically the ecn branch.
image

I did not use the command patch -p1 < <2717.patch. I'm unsure if this might be a problem.

image

It appears to me that the changes introduced by the patch and the code in the ecn branch are consistent. However, I'm not entirely certain if my understanding is accurate.

I performed the installation using the following commands:
meson setup --prefix=/path/to/install/prefix builddir
meson compile -C builddir
meson install -C builddir

Your insights or suggestions on any potential issues would be greatly appreciated.

@jacobt21
Copy link
Collaborator

jacobt21 commented Nov 29, 2023 via email

@xiaoshuyu6
Copy link
Author

Hello, I successfully ran the sender.sh following your guidance. I greatly appreciate your assistance over these days. Thank you for your patience and support.

@jacobt21
Copy link
Collaborator

jacobt21 commented Nov 30, 2023 via email

@jacobt21
Copy link
Collaborator

Added more info to README

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