MMAPI's 00_video_decode run timeout problem

  1. Create H265 file stream

gst-launch-1.0 filesrc location=/mnt/Socionext_4K/Aerial_4Kp60_VBR_45M.mp4 ! qtdemux name=demux demux.video_0 ! queue ! h265parse ! filesink location=ttt.h265

  1. command line: ~/tegra_multimedia_api/samples/00_video_decode/video_decode ttt.h265 H265

I posted log message below:

Set governor to performance before enabling profiler
Failed to query video capabilities: Inappropriate ioctl for device
NvMMLiteOpen : Block : BlockType = 279
TVMR: NvMMLiteTVMRDecBlockOpen: 7818: NvMMLiteBlockOpen
NvMMLiteBlockCreate : Block : BlockType = 279
Failed to query video capabilities: Inappropriate ioctl for device
Starting decoder capture loop thread
TVMR: NvMMLiteTVMRDecDoWork: 6665: NVMMLITE_TVMR: EOS detected
Input file read complete
TVMR: TVMRBufferProcessing: 5641: Processing of EOS
TVMR: TVMRBufferProcessing: 5716: Processing of EOS Done
Timed out waiting for first V4L2_EVENT_RESOLUTION_CHANGE
Exiting decoder capture loop thread
Error DQing buffer at output plane
TVMR: TVMRFrameStatusReporting: 6266: Closing TVMR Frame Status Thread -------------
TVMR: TVMRVPRFloorSizeSettingThread: 6084: Closing TVMRVPRFloorSizeSettingThread -------------
TVMR: TVMRFrameDelivery: 6116: Closing TVMR Frame Delivery Thread -------------
TVMR: NvMMLiteTVMRDecBlockClose: 8018: Done
App run failed

Please help to check this problem, many thanks.

Please help to check the exception message:

  1. Failed to query video capabilities: Inappropriate ioctl for device

  2. Timed out waiting for first V4L2_EVENT_RESOLUTION_CHANGE

Any one, Any help

I can’t answer your question, but an ioctl call is an operation performed on a device special file…which means it is a command that the driver producing the device special file must support. If there is some feature in your driver which is optional, and you try to use the ioctl when the feature is not present, then you will see this error. Somewhere your software is requesting something from the driver which the driver was not built to support. Perhaps it is because the feature is not present on the hardware and so the driver can’t support this, or perhaps the driver simply needs to be built with other features added.

Hi Jonas, please get the h265 stream via ffmpeg
./ffmpeg -I a.mp4 -vcodec copy -f rawvideo a.265
UPDATE 08/01/2017 The command does not work

Hi daneLLL,

Thanks for you reply.

I tried your recommended command, but yet the same error was occurred.

I did it as below:

ffmpeg -i /mnt/Socionext_4K/Aerial_4Kp60_VBR_45M.mp4 -vcodec copy -f rawvideo ttt.h265

~/tegra_multimedia_api/samples/00_video_decode/video_decode ttt.h265 H265

The print LOG as,

Set governor to performance before enabling profiler
Failed to query video capabilities: Inappropriate ioctl for device
NvMMLiteOpen : Block : BlockType = 279
TVMR: NvMMLiteTVMRDecBlockOpen: 7818: NvMMLiteBlockOpen
NvMMLiteBlockCreate : Block : BlockType = 279
Failed to query video capabilities: Inappropriate ioctl for device
Starting decoder capture loop thread
TVMR: NvMMLiteTVMRDecDoWork: 6665: NVMMLITE_TVMR: EOS detected
Input file read complete
TVMR: TVMRBufferProcessing: 5641: Processing of EOS
TVMR: TVMRBufferProcessing: 5716: Processing of EOS Done
Timed out waiting for first V4L2_EVENT_RESOLUTION_CHANGE
Exiting decoder capture loop thread
Error DQing buffer at output plane
TVMR: TVMRFrameStatusReporting: 6266: Closing TVMR Frame Status Thread -------------
TVMR: TVMRVPRFloorSizeSettingThread: 6084: Closing TVMRVPRFloorSizeSettingThread -------------
TVMR: TVMRFrameDelivery: 6116: Closing TVMR Frame Delivery Thread -------------
TVMR: NvMMLiteTVMRDecBlockClose: 8018: Done
App run failed

The software version is 27.1 and using the Jetpack 3.0.

tegra_multimedia_api was auto compiled by the Jetpack 3.0 and I ran it directly.

Is it a consistent problem ?

Because the MMAPI source code is not open source, I have no idea to debug it.

Any one have if has successful experience on the MMAPI video decoder, please share with me.

Thanks a lot.

I have the same problem, but I do not get error. After getting the following massage, nothing will happen.
Timed out waiting for first V4L2_EVENT_RESOLUTION_CHANGE
Exiting decoder capture loop thread

Hi Jonas, please share the bitstream for further analysis.

Hi DaneLLL,

Please open this url then download.

http://pan.baidu.com/s/1nuAS9YD

Thanks

Please run
gst-launch-1.0 filesrc location= Aerial_4Kp60_VBR_45M.mp4 ! qtdemux ! h265parse ! video/x-h265,stream-format=byte-stream ! filesink location= Aerial_4Kp60_VBR_45M.265

Hi DaneLLL,

Thanks for your help and solved it !