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

CLI Syntax for input-codec=mjpeg #121

Closed
Fibo27 opened this issue May 7, 2023 · 3 comments
Closed

CLI Syntax for input-codec=mjpeg #121

Fibo27 opened this issue May 7, 2023 · 3 comments

Comments

@Fibo27
Copy link

Fibo27 commented May 7, 2023

Hi Dusty
I am using Jetpack 5.1.1 on a Orin Nano on which I have compiled the ros_deep_learning module. I also have a robot running on a nano and it is streaming video on rtp.

  1. On my Orin, I am able to view the streaming video using "video-viewer --input-codec=mjpeg rtp://@:1234"
  2. Also, in jetson inference, I can run any of the modules on the incoming stream like "
    "./detectnet.py rtp://@:1234 --input-codec=mjpeg"
    However when i try to use any of the launch files (I am running Foxy on both the Orin and the Nano on the Robot)
    "ros2 launch ros_deep_learning detectnet.ros2.launch input:=rtp://@:1234 output:=display://0" I would expect to get an error which i get since the default input-codec is h264. Although you mention (as does the code) that the input codec can be changed, I get errors when i try either of the two options mentioned above i.e. using
  3. ros2 launch ros_deep_learning detectnet.ros2.launch input-codec:=mjpeg input:=rtp://@:1234 output:=display://0
  4. ros2 launch ros_deep_learning detectnet.ros2.launch --input-codec=mjpeg input:=rtp://@:1234 output:=display://0

Can you please help me the syntax for CLI? Thanks

@Fibo27 Fibo27 changed the title CLI for input-codec=mjpeg CLI Syntax for input-codec=mjpeg May 7, 2023
@dusty-nv
Copy link
Owner

dusty-nv commented May 8, 2023

@Fibo27 can you try adding this line of code under here:

<param name="latency" value="$(var input_latency)"/>

<param name="codec" value="$(var input_codec)"/>

Unfortunately it appears that I missed that one for mapping input_codec, sorry about that.

@Fibo27
Copy link
Author

Fibo27 commented May 8, 2023

Thanks Dusty - no need to apologize - you have done an incredible job with these repos.
The suggested change works like a charm. The syntax to be used is input_codec=mjpeg

On another note I had the issue which has been posted in 115 - it relates to ros_deep_learning not being found after colcon build. I had the same issue - since I am using Foxy - i removed lines 22 through 44, 85 to 92 and 111 in cmakelists.txt and ros1 related xml files from the folder - it solved the problem!

@dusty-nv
Copy link
Owner

dusty-nv commented May 8, 2023 via email

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