Hi everyone. I’ve got my Jetson and already burned a fresh Ubuntu 14.04 system on it with flash.sh and 21.4. I have several questions related to video and/or GPU:
- I use VLC under a regular user to play MEPG2 content. If the user is not a member of the “video” group, I see an error message “**** NvRmMemInit failed ****” in console, but VLC is able to play the video (on CPU I guess). If the user is a member of the “video” group, VLC tries to open /dev/nvhost-ctrl and play the video using MPEG2 hardware acceleration, but I see the very first frame of the video and nothing more. The progress bar is moving, but there is no video content visible in the VLC window, just that first static frame. Console messages:
# sudo -H -u luna vlc -I dummy /data/mpeg2.mp4 VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28) shm_open() failed: Permission denied [0xbd6e8] dummy interface: using the dummy interface module... Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingNvMMLiteOpen : Block : BlockType = 267 TVMR: NvMMLiteTVMRDecBlockOpen: 4937: NvMMLiteBlockOpen NvMMLiteBlockCreate : Block : BlockType = 267 TVMR: cbBeginSequence: 571: BeginSequence 1280x720, bVPR = 0 TVMR: cbBeginSequence: 813: DecodeBuffers = 3 TVMR: cbBeginSequence: 833: Display Resolution : (1280x720) TVMR: cbBeginSequence: 834: Display Aspect Ratio : (1280x720) TVMR: cbBeginSequence: 998: SurfaceLayout = 3 TVMR: cbBeginSequence: 1028: NumOfSurfaces = 7, InteraceStream = 0, InterlaceEnabled = 0, bSecure = 0, MVC = 0 Semiplanar = 1, bReinit = 1 Allocating new output: 1280x720 (x 9), ThumbnailMode = 0 Fontconfig warning: FcPattern object size does not accept value "0" Fontconfig warning: FcPattern object size does not accept value "0" Fontconfig warning: FcPattern object size does not accept value "0" Fontconfig warning: FcPattern object size does not accept value "0" [0xf6db8] main vout display error: Failed to resize display
If I add “-v” option, I see tons of “picture is too late to be displayed (missing XXX ms.)”
And even worse: if I use libvlc and develop my own player based on it, and run it under root (the requirement), the player permanently fails to play the video content since root doesn’t need to be in the “video” group.
So the question is why the hardware decoding fails? How to tell VLC not to use the nVidia hardware decoding WITHOUT removing the normal user from the “video” group, or when running my own player under root?
- glxinfo says “Direct Rendering: Yes”. If I run glxgears I see the FPS value is about 2000 FPS. Is that an expected result with Jetson?