Segmentation fault in decoding
Hi, decoding is not working It can not decode sample Jetson Nano file ./ffmpeg -c:v h264_nvmpi -i /usr/src/nvidia/tegra_multimedia_api/data/Video/sample_outdoor_car_1080p_10fps.h264 -f null -
it throws Segmentation fault (core dumped)
work fine on my jetson nano
jocover@jetson-nano:~/ffmpeg$ ./ffmpeg -c:v h264_nvmpi -i /usr/src/nvidia/tegra_multimedia_api/data/Video/sample_outdoor_car_1080p_10fps.h264 -f null - ffmpeg version 61853f7 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) configuration: --enable-nvmpi libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 Input #0, h264, from '/usr/src/nvidia/tegra_multimedia_api/data/Video/sample_outdoor_car_1080p_10fps.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 10 fps, 10 tbr, 1200k tbn, 20 tbc Opening in BLOCKING MODE NvMMLiteOpen : Block : BlockType = 261 NVMEDIA: Reading vendor.tegra.display-size : status: 6 NvMMLiteBlockCreate : Block : BlockType = 261 Stream mapping: Stream #0:0 -> #0:0 (h264 (h264_nvmpi) -> wrapped_avframe (native)) Press [q] to stop, [?] for help Output #0, null, to 'pipe:': Metadata: encoder : Lavf58.29.100 Stream #0:0: Video: wrapped_avframe, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 10 fps, 10 tbn, 10 tbc Metadata: encoder : Lavc58.54.100 wrapped_avframe frame= 568 fps=187 q=-0.0 Lsize=N/A time=00:00:58.80 bitrate=N/A speed=19.3x video:297kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
You can try to recompile latest version nvmpi and ffmpeg
Thank you for quick answer. Yes I compiled it with latest ffmpeg 4.2 as it is described.
./ffmpeg -c:v h264_nvmpi -i /usr/src/nvidia/tegra_multimedia_api/data/Video/sample_outdoor_car_1080p_10fps.h264 -f null - ffmpeg version 61853f7 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) configuration: --enable-nvmpi libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 Input #0, h264, from '/usr/src/nvidia/tegra_multimedia_api/data/Video/sample_outdoor_car_1080p_10fps.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 10 fps, 10 tbr, 1200k tbn, 20 tbc Failed to query video capabilities: Inappropriate ioctl for device Opening in BLOCKING MODE NvMMLiteOpen : Block : BlockType = 261 NVMEDIA: Reading sys.display-size : status: 6 NvMMLiteBlockCreate : Block : BlockType = 261 Stream mapping: Stream #0:0 -> #0:0 (h264 (h264_nvmpi) -> wrapped_avframe (native)) Press [q] to stop, [?] for help NVMAP_IOC_READ failed: Interrupted system call NVMAP_IOC_READ: Offset 0 SrcStride 2048 pDst 0x7fa0005dc0 DstStride 1920 Count 540 NVMAP_IOC_READ failed: Interrupted system call NVMAP_IOC_READ: Offset 2228224 SrcStride 1024 pDst 0x7fa0005de0 DstStride 960 Count 540 NVMAP_IOC_READ failed: Invalid argument NVMAP_IOC_READ: Offset 2883584 SrcStride 1024 pDst 0x7fa0005e00 DstStride 960 Count 2048 NVMAP_IOC_READ failed: Interrupted system call NVMAP_IOC_READ: Offset 0 SrcStride 2048 pDst 0x7fa0007890 DstStride 1920 Count 540 NVMAP_IOC_READ failed: Interrupted system call NVMAP_IOC_READ: Offset 2228224 SrcStride 1024 pDst 0x7fa00078b0 DstStride 960 Count 540 NVMAP_IOC_READ failed: Invalid argument NVMAP_IOC_READ: Offset 2883584 SrcStride 1024 pDst 0x7fa00078d0 DstStride 960 Count 2048 Segmentation fault (core dumped)
if it can be helpful, that is the stack trace
Thread 1 "ffmpeg_g" received signal SIGSEGV, Segmentation fault.
__memcpy_generic () at ../sysdeps/aarch64/multiarch/../memcpy.S:188
188 ../sysdeps/aarch64/multiarch/../memcpy.S: No such file or directory.
(gdb) bt
#0 __memcpy_generic () at ../sysdeps/aarch64/multiarch/../memcpy.S:188
#1 0x0000005556113908 in memcpy (__len=1920, __src=0x7fa0020cc0, __dest=