Hi
JP: 5.1.3
HW: orinnx 16G
I run hello_sample which is one of sample of multi media error, it report
libv4l2: error getting capabilities: Inappropriate ioctl for device
[ERROR] (/home/positec/Downloads/sample_dir/common/classes/NvV4l2Element.cpp:63) Could not open device ‘/dev/nvhost-msenc’: Inappropriate ioctl for device
waitForDQThread IN
waitForDQThread ret = 0
waitForDQThread set stop_dqthread true0
[ERROR] (/home/positec/Downloads/sample_dir/common/classes/NvV4l2ElementPlane.cpp:511) Output Plane:Error in VIDIOC_REQBUFS at output plane: Bad file descriptor
waitForDQThread IN
and the serial port log is
[ 3692.061768] nvmap_alloc_handle: PID 95847: hello_sample: WARNING: All NvMap Allocations must have a tag to identify the subsystem allocating memory.Please pass the tag to the API call NvRmMemHanldeAllocAttr() or relevant.
[ 3692.511725] bwmgr API not supported
[ 3693.619330] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600
please help us to check
Hi,
Please confirm which sample you run. The jetson_multimedia_api samples are installed to
/usr/src/jetson_multimedia_api/samples
There is no hellow_sample.
the “01_video_encode” sample also has this issue
Hi,
Looks like you don’t use correct version of jetson_multimedia_api sample. The version of the samples has to match with Jetpack version. Do you install the samples through SDKManager or sudo apt-get install commands?
We install the samples by downloading the tar package
“Jetson Linux API Reference”
by the way, we use the minimal rootfs and it has no desktop
Hi,
After you extract rootfs to Linux_for_Tegra/rootfs/, do you run $ sudo ./apply_binaries.sh? Seems like the device node /dev/nvhost-msenc is missing in your rootfs.
You need to follow the steps in
Quick Start — NVIDIA Jetson Linux Developer Guide 1 documentation
1, the /dev/nvhost-msenc exixts in the /dev directory
2, We have run the sudo ./apply_binaries.sh, otherwise it can’t burn the board.
Hi,
Are you able to set up developer kit and try to install the sample through $ sudo apt install nvidia-l4t-jetson-multimedia-api? The samples are supposed to work and it still looks to be mismatch in versions.
And please also try gstreamer commands with nvv4l2h265enc or nvv4l2decoder plugins. The plugins and jetson_multimedia_api are implemented through NvBufSurface APIs and v4l2 interface. If jetson_multimedia_api fails, would like to know whether gstreamer also fails.
Or please try this rootfs:
Root File System — NVIDIA Jetson Linux Developer Guide 1 documentation
It is also headless.