Single-Process Examples
This topic gives examples of how to perform single-process tasks.
To run an image consumer/video consumer
./nvm_eglstream -f disney.264 -producer 0 -consumer 0 -ot rgba
-defaultdisplay -enc encode.264
To run an NvMedia video for a producer and consumer
./nvm_eglstream -f test.264 -producer 0 -consumer 0 –enc
encode.264 [-ot yuv420]
To run an NvMedia image for a producer and consumer
./nvm_eglstream -f test.yuv -fr 720x480 -producer 1 -consumer
1 –enc encode.264 [-ot yuv420]
To run an NvMedia video producer and a GL consumer
./nvm_eglstream -f test.264 -producer 0
-consumer 2 [-ot yuv420]
To run an NvMedia image producer and a GL consumer
./nvm_eglstream -f test.yuv -fr 720x480 -producer 1 -consumer 2 [-ot yuv420]
To run an NvMedia video producer and a CUDA consumer
./nvm_eglstream -f test.264 -producer 0 -consumer 3 [-ot yuv420 -pl]
After running the application, you can view the saved output using yuvviewer. The output is saved to cuda.yuv.
To run an NvMedia image producer and a CUDA consumer
./nvm_eglstream -f test.yuv -fr 720x480 -producer 1 -consumer 3 [-ot yuv420 -pl]
After running the application, you can view the saved output using yuvviewer. The output is saved to cuda.yuv.
To run a CUDA producer and consumer
./nvm_eglstream -f test.yuv -fr 720x480 -producer 3 -consumer 3 [-ot yuv420 -pl]
After running the application, you can view the save output using yuvviewer. The output is saved to cuda.yuv.
To run an NvMedia video producer and an EGLOutput consumer
This example is valid only for an egldevice window interface and EGLOutput.
./nvm_eglstream -f test.264 -producer 0 -consumer 4 [-ot yuv420]
To run an NvMedia image producer and an EGLOutput consumer
This example is valid only for an egldevice window interface with EGLOutput.
./nvm_eglstream -f test.yuv -fr 720x480 -producer 1 -consumer 4 [-ot yuv420]