Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
H264 codec example

HelloCone example using H264 encoding.

This example requires an NVIDIA GPU Kepler or higher and CUDA Toolkit 9.2 or higher.

This example shows you how to enable H264 encoding in a RemoteViz application. It displays a gray cone.

Run the example:

  1. Go to "OIVHOME/examples/bin/OIVARCH/RemoteViz" and run the executable "RemoteVizHelloConeH264RenderingService".
  2. Go to "OIVHOME/examples/source/RemoteViz/HelloConeH264/Clients/HTML5" and open the "index.html" file inside a web browser.

Note: In this example, the RemoteViz service uses the localhost IP address (127.0.0.1) by default. To run it on a web server, start the example by passing the service IP address and port as arguments (ex : RemoteVizHelloConeH264RenderingService 192.168.0.1 8082) and edit the file "index.html" (client side) to modify the IP address and the port.

Note Regarding Google Chrome users: By default, Google Chrome blocks the loading of HTML5 local files using Media Source Extension for security reasons. In this case, the example has to be launched using a web server.

SCREENSHOT:

FILES:

    • RemoteViz/HelloConeH264/HelloConeH264RenderingService/include/HelloConeH264ServiceListener.h
    • RemoteViz/HelloConeH264/HelloConeH264RenderingService/src/HelloConeH264ServiceListener.cxx
    • RemoteViz/HelloConeH264/HelloConeH264RenderingService/include/HelloConeH264RenderAreaListener.h
    • RemoteViz/HelloConeH264/HelloConeH264RenderingService/src/HelloConeH264RenderAreaListener.cxx
    • RemoteViz/HelloConeH264/HelloConeH264RenderingService/src/main.cxx
    • RemoteViz/HelloConeH264/Clients/HTML5/index.html