Multi Source Translation Content

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Multi Source Translation Content

讨论

排序依据:
lvgl バージョンのサポートに関する問題 こんにちは: LVGL_V9のみをサポートしているのでしょうか?V8バージョンに切り替えることは可能ですか? Re: lvgl版本支持问题 こんにちは、 @ALVAN さん。 こんにちは。確認したところ、最新版のGui-Guider v2.0.xはLVGL v9.4.0のみをサポートしています。LVGL V8を使用したい場合は、Gui-Guider v1.10.1の使用をご検討ください。 このバージョンは、 NXP Semiconductorsの公式ウェブサイトから引き続きダウンロード可能です。「最新の組み込みGUIを高速に作成する」 Celeste_Liu_0-1788948567553.pngCeleste_Liu_0-1788948567553.png BR セレステ
查看全文
Suspend hang with dm-crypt on eMMC We are seeing a suspend/resume issue on our target when using dm-crypt on an eMMC-backed partition. The suspend failure starts as soon as the dm-crypt mapping is created with the following table: 0 crypt capi:cbc(aes)-plain :32:trusted:user_encrypted 0 1 allow_discards   With this table, suspend fails error logs attached for your reference. We then changed the table as below: 0 crypt capi:cbc(aes-generic)-plain :32:trusted:user_encrypted 0 1 allow_discards   After this change, suspend works correctly. So, from our testing: plain partition mount  - no suspend issues dm-crypt mapping with capi:cbc(aes)-plain causes suspend issue changing to capi:cbc(aes-generic)-plain resolves the issue This makes us think the suspend problem is related to the AES crypto backend selected for aes on this platform, rather than to dm-crypt mapping logic in general. We are using kernel version 6.12 and PREEMPT_RT is enabled and using iMx6ULL processor. Could you please help check whether there is any known issue in the NXP BSP/kernel crypto driver path for capi:cbc(aes)-plain during suspend/resume? We have even tried the commands which is shared in linux user guide https://docs.nxp.com/bundle/UG10163/page/topics/dm-crypt_using_dcp_crypto_keys.html We faced the same issue. Can you please help us to resolve this issue? Re: Suspend hang with dm-crypt on eMMC Dear NXP team, Can you please help me to resolve this issue?
查看全文
无法访问S32DS下载页面 尊敬的恩智浦半导体成员们:   我几天前注册了一个新的 NXP 账户,现在需要下载 S32 设计工作室软件。但是,在 nxp.com门户网站上,我无法从“我的 NXP 帐户”>“应用和服务”中找到访问“软件许可和支持”页面的链接。能否帮助我获取这些资源?   感谢您的支持! Re: Unable to access S32DS download page 很有帮助,谢谢。 Re: Unable to access S32DS download page 你好, @Interrogator 感谢分享。 您可以尝试通过产品页面访问 S32DS: S32 设计工作室 | 恩智浦半导体 然后尝试用以下方式下载: chenyin_h_0-1788932820632.pngchenyin_h_0-1788932820632.png BR 陈银
查看全文
i.MX 8X VPU H.264 编码恒定比特率 您好, 我们使用 i.MX 8X(在 Digi ConnectCore 8X Pro 上)通过 gstreamer 以恒定比特率对视频进行编码。更新 BSP 后,我们发现编码器无法达到要求的比特率。 使用 gstreamer 中的“ball”测试源可以重现此问题(300 帧,30fps,4000Kbps 时,我们预计文件大小约为 5MB)。 gst-launch-1.0 -e videotestsrc pattern=ball num-buffers=300 ! video/x-raw,format=NV12,width=640,height=512,framerate=30/1 ! v4l2h264enc extra-controls="controls,video_bitrate_mode=1,video_bitrate=4000000,video_b_frames=0" ! "video/x-h264,profile=baseline,level=(string)4" ! h264parse ! filesink location=out.h264 编码器固件版本 1.3.0,这导致文件大小为 4980939 字节(约 5MB),而 1.4.5 版本的结果仅为 102994 字节(约 0.1MB)。 能否确认这是固件中已知的回归问题,以及是否有办法使用恒定比特率? 测试平台详情: 内核 6.6.52(数字嵌入式 yocto) gstreamer 1.24.7 i.MX 8 系列 | i.MX 8QuadMax (8QM) | 8QuadPlus Linux Re: i.MX 8X VPU H.264 Encoding Constant Bitrate 根据我做的另一次测试,我认为它在编码器版本 1.4.1 下可以正常工作,但在 1.4.5 下则不行,所以我推测这是这两个版本之间的一个回归问题。
查看全文
i.MX 8X VPU H.264 Encoding Constant Bitrate Hi there, We are using the i.MX 8X (On a Digi ConnectCore 8X Pro) to encode video at a constant bitrate with gstreamer. After updating our BSP, we have found that the encoder is not reaching the requested bitrate. This is reproducible with the 'ball' test source in gstreamer (with 300 frames and 30fps we would expect a filesize of around 5MB at 4000Kbps) gst-launch-1.0 -e videotestsrc pattern=ball num-buffers=300 ! video/x-raw,format=NV12,width=640,height=512,framerate=30/1 ! v4l2h264enc extra-controls="controls,video_bitrate_mode=1,video_bitrate=4000000,video_b_frames=0" ! "video/x-h264,profile=baseline,level=(string)4" ! h264parse ! filesink location=out.h264 On encoder firmware version 1.3.0, this results in a file size of 4980939 bytes (~5MB), vs on 1.4.5 the result is only 102994 bytes (~0.1MB).  Could you confirm that this is a known regression in the firmware and whether there is a workaround to use constant bitrate? Tested platform details: kernel 6.6.52 (digi embedded yocto) gstreamer 1.24.7 i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Linux Re: i.MX 8X VPU H.264 Encoding Constant Bitrate Based on another test I've done, I believe this to be working with encoder version 1.4.1 but not 1.4.5, so I assume it is a regression between these versions
查看全文
IMX95 v4l2h264enc 编码帧损坏 我正在使用 IMX95 的 v4l2h264enc 编码器来测试 H264 视频编码。测试命令行如下: gst-用上市,不用发布-1.0-v videotestsrc pattern=ball num-buffers=150 !video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 !v4l2h264enc!文件接收器位置=enc_test.h264 视频文件已成功生成,但当我尝试使用 ffplay 播放时,播放失败并显示以下错误: ffplay 版本 4.2.7-0ubuntu0.1版权所有 (c) 2003-2022 FFmpeg 开发人员 使用 gcc 9 构建(Ubuntu 9.4.0-1ubuntu1~20.04.1) 配置:--prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --启用 nvenc --启用 chromaprint --启用 frei0r --启用 libx264 --启用共享 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 libavresample 4.0.0 / 4.0.0 libswscale 5.5.100 / 5.5.100 libswresample 3.5.100 / 3.5.100 libpostproc 55.5.100 / 55.5.100 [h264 @ 0x7fbea4002840] 读取 VUI 时超出 7 位 [h264 @ 0x7fbea4002840] sps_id 0 超出范围 [h264 @ 0x7fbea4002840] 引用了不存在的 PPS 0 最后一条消息重复了 2 次 [h264 @ 0x7fbea4002840] 超读 VUI 8 位 0KB 平方 = 0B f = 0/0 [h264 @ 0x7fbea4002840] 读取 VUI 时超出 7 位 [h264 @ 0x7fbea4002840] 读取 VUI 时超出 8 位 [h264 @ 0x7fbea4002840] 引用了不存在的 PPS 0 最后一条消息重复了26次 [h264 @ 0x7fbea4002840] 读取 VUI 时超出 7 位 [h264 @ 0x7fbea4002840] sps_id 0 超出范围 [h264 @ 0x7fbea4002840] 引用了不存在的 PPS 0 最后一条消息重复了 29 次 [h264 @ 0x7fbea4002840] 读取 VUI 时超出 7 位 [h264 @ 0x7fbea4002840] sps_id 0 超出范围 [h264 @ 0x7fbea4002840] 引用了不存在的 PPS 0 最后一条消息重复了 29 次 [h264 @ 0x7fbea4002840] 读取 VUI 时超出 7 位 [h264 @ 0x7fbea4002840] sps_id 0 超出范围 [h264 @ 0x7fbea4002840] 引用了不存在的 PPS 0 最后一条消息重复了 29 次 [h264 @ 0x7fbea4002840] 读取 VUI 时超出 7 位 [h264 @ 0x7fbea4002840] sps_id 0 超出范围 [h264 @ 0x7fbea4002840] 引用了不存在的 PPS 0 最后一条消息重复了 29 次 输入 #0,h264,来自'enc_test.h264': 时长:不适用,比特率:不适用 流 #0:0:视频:h264(基线),yuv420p,1280x720,25.17 fps,25 tbr,1200k tbn,50 tbc [h264 @ 0x7fbea4007f00] 读取 VUI 时超出 8 位 无法打开文件“enc_test.h264”或配置滤光图 从上面的日志来看,视频磁头似乎已损坏。 然后我尝试使用 gstreamer debug,并发现了以下日志: 0:00:05.727025935 13024 0xffffa0000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: 由于输入帧消失,无法复制元数据。 我的系统信息:Linux imx95-19x19-lpddr5-evk 6.12.49+ #9 SMP PREEMPT Wed Jul 22 11:47:53 UTC 2026 aarch64 GNU/Linux Re: IMX95 v4l2h264enc encoded frame corrupted 与AE团队讨论。 Re: IMX95 v4l2h264enc encoded frame corrupted 根据您的提示,我尝试执行您提供的两条命令行。但它们都不管用。编码后的视频仍然无法播放。 命令如下: gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! filesink location=enc_test.h264 当我尝试播放编码后的视频文件时,出现以下错误: ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared 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 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 [h264 @ 0x557b5dc1e980] Format h264 detected only with low score of 1, misdetection possible! [h264 @ 0x557b5dc20380] sps_id 0 out of range Last message repeated 1 times [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0x557b5dc20380] sps_id 0 out of range Last message repeated 1 times [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced [h264 @ 0x557b5dc20380] decode_slice_header error [h264 @ 0x557b5dc20380] no frame! [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced [h264 @ 0x557b5dc20380] decode_slice_header error ...... Last message repeated 1 times [h264 @ 0x557b5dc20380] decode_slice_header error [h264 @ 0x557b5dc20380] no frame! [h264 @ 0x557b5dc1e980] decoding for stream 0 failed [h264 @ 0x557b5dc1e980] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, h264, from 'enc_test.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264, none, 25.17 fps, 25 tbr, 1200k tbn, 50 tbc 我尝试调试,结果出现了如下警告: 0:00:00.129727669 2003 0xffffa8000b70 WARN v4l2bufferpool gstv4l2bufferpool.c:884:gst_v4l2_buffer_pool_start: Uncertain or not enough buffers, enabling copy threshold 0:00:00.152626502 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.153013002 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:435:gst_h264_parse_vui_parameters: failed to read uint8 for 'vui->aspect_ratio_idc', nbits: 8 0:00:00.153052211 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:516:gst_h264_parse_vui_parameters: error parsing "VUI Parameters" 0:00:00.153071752 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2155:gst_h264_parse_sps: error parsing "Sequence parameter set" 0:00:00.153092044 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:993:gst_h264_parse_process_nal: failed to parse SPS: 0:00:00.153120336 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:1529:gst_h264_parse_handle_frame: broken/invalid nal Type: 7 SPS, Size: 9 will be dropped 0:00:00.153205086 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2284:gst_h264_parse_pps: couldn't find associated sequence parameter set with id: 0 0:00:00.153230627 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:1026:gst_h264_parse_process_nal: failed to parse PPS: 0:00:00.153418211 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.153690127 2003 0xffffa8000d00 WARN v4l2bufferpool gstv4l2bufferpool.c:491:gst_v4l2_buffer_pool_alloc_buffer: newly allocated buffer 0 is not free Pipeline is PREROLLED ... Setting pipeline to PLAYING ... Redistribute latency... New clock: GstSystemClock 0:00:00.180972628 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.181182169 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.211927795 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.212148128 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.242748712 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.242969462 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 命令如下: gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! mp4mux ! filesink location=enc_test.mp4 视频文件无法编码,显示如下错误: root@imx95-19x19-lpddr5-evk:~# GST_DEBUG=3 gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! mp4mux ! filesink location=enc_test.mp4 Setting pipeline to PAUSED ... ====== V4L2ENC: 1.24.7 build on Jan 2 2025 07:23:23. ====== 0:00:00.078378376 2059 0xaaaadecda320 WARN v4l2 gstv4l2object.c:5350:gst_v4l2_object_probe_caps: Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument 0:00:00.079377793 2059 0xffffa8000b70 WARN aggregator gstaggregator.c:2283:gst_aggregator_query_latency_unlocked: Latency query failed Pipeline is PREROLLING ... 0:00:00.079857126 2059 0xffffa8000d00 FIXME default gstutils.c:4089:gst_element_decorate_stream_id_internal: Creating random stream-id, consider implementing a deterministic way of creating a stream-id /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono Redistribute latency... /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 0:00:00.140337252 2059 0xffffa8000d00 WARN v4l2bufferpool gstv4l2bufferpool.c:884:gst_v4l2_buffer_pool_start: Uncertain or not enough buffers, enabling copy threshold 0:00:00.165691544 2059 0xffffa8000e90 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.166079919 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:435:gst_h264_parse_vui_parameters: failed to read uint8 for 'vui->aspect_ratio_idc', nbits: 8 0:00:00.166119002 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:516:gst_h264_parse_vui_parameters: error parsing "VUI Parameters" 0:00:00.166138877 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2155:gst_h264_parse_sps: error parsing "Sequence parameter set" 0:00:00.166159335 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:993:gst_h264_parse_process_nal: failed to parse SPS: 0:00:00.166187127 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:1529:gst_h264_parse_handle_frame: broken/invalid nal Type: 7 SPS, Size: 9 will be dropped 0:00:00.166277252 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2284:gst_h264_parse_pps: couldn't find associated sequence parameter set with id: 0 0:00:00.166301710 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:1026:gst_h264_parse_process_nal: failed to parse PPS: 0:00:00.166486835 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.166826460 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:6357:gst_qt_mux_video_sink_set_caps: no codec_data in h264 caps 0:00:00.166923502 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:6856:gst_qt_mux_video_sink_set_caps: pad video_0 refused caps video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, i/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true nterlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true 0:00:00.166977794 2059 0xffffa8000e90 WARN v4l2bufferpool gstv4l2bufferpool.c:491:gst_v4l2_buffer_pool_alloc_buffer: newly allocated buffer 0 is not free /GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstQTMuxPad:video_0: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true 0:00:00.167488335 2059 0xffffa8000b70 FIXME basesink gstbasesink.c:3399:gst_base_sink_default_event: stream-start event without group-id. Consider implementing group-id handling in the upstream elements /GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstAggregatorPad:src: caps = video/quicktime, variant=(string)iso /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)iso Pipeline is PREROLLED ... Setting pipeline to PLAYING ... 0:00:00.168202544 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:5415:gst_qt_mux_add_buffer: error: format wasn't negotiated before buffer flow on pad video_0 Redistribute latency... ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: GStreamer error: negotiation problem. Additional debug info: /usr/src/debug/gstreamer1.0-plugins-good/1.24.7.imx/gst/isomp4/gstqtmux.c(5415): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: format wasn't negotiated before buffer flow on pad video_0 0:00:00.168413044 2059 0xffffa8000b70 FIXME aggregator gstaggregator.c:1478:gst_aggregator_loop: Subclass should call gst_aggregator_selected_samples() from its aggregate implementation. Execution ended after 0:00:00.000556000 Setting pipeline to NULL ... 0:00:00.174238335 2059 0xaaaadecda320 WARN bufferpool gstbufferpool.c:1429:gst_buffer_pool_set_flushing: can't change flushing state of inactive pool 0:00:00.199404961 2059 0xaaaadecda320 WARN bufferpool gstbufferpool.c:1429:gst_buffer_pool_set_flushing: can't change flushing state of inactive pool Freeing pipeline ... Re: IMX95 v4l2h264enc encoded frame corrupted 编码器输出可能不是来自测试源的“视频头损坏”;该管道缺少 NXP 的 i.MX Linux 指南中针对 i.MX 8 / i.MX 95 VPU 编码器管道所期望的 H.264 解析器阶段。i.MX 95 v4l2h264enc 输出为 H.264 stream-format=byte-stream / alignment=au,NXP 文档指出应该添加 h264parse/h265parse,因为 VPU 在 i.MX 8 和 i.MX 95 上仅支持字节流输出。 请先使用此方法: gst-用上市,不用发布-1.0-e -v \ videotestsrc pattern=ball num-buffers=150 !\ video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 !\ v4l2h264enc!\ h264parse 配置间隔=-1!\ filesink location=enc_test.h264 然后直接以原始 H.264 格式播放: ffplay -f h264 enc_test.h264 如果你想要一个普通的可播放容器文件,请使用复用器: gst-用上市,不用发布-1.0-e -v \ videotestsrc pattern=ball num-buffers=150 !\ video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 !\ v4l2h264enc!\ h264解析!\ mp4mux!\ filesink location=enc_test.mp4 或者: gst-用上市,不用发布-1.0-e -v \ videotestsrc pattern=ball num-buffers=150 !\ video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 !\ v4l2h264enc!\ h264解析!\ matroskamux!\ filesink location=enc_test.mkv NXP的录制示例将h264parse置于编码器和复用器/文件接收器路径之间,例如:$videoEncoderPlugin![h264解析]!$MUXER!filesink ...对于 MP4 格式,-e 选项非常重要,这样 GStreamer 才能发送 EOS 并让复用器正确地完成文件。 GStreamer 消息: 视频编码器待修复……由于输入帧消失,无法复制元数据 这本身并不能证明 H.264 比特流头已损坏。这是在 v4l2h264enc 管道中发现的 GStreamer 视频编码器元数据复制警告/FIXME。ffplay 错误——过度读取 VUI、sps_id 0 超出范围、引用不存在的 PPS 0——与下游读取器看到的 H.264 流未按预期规范化/解析的情况更为一致,尤其是在 SPS/PPS 处理方面。 如果解析后的原始 .h264 文件仍然失败,请检查前几个字节: xxd -l 64 enc_test.h264 对于 Annex-B 字节流 H.264,您应该会看到如下起始代码: 00000001 接近开头,然后是 SPS/PPS NAL 单元,之后是切片。 推荐的解决方法:在 v4l2h264enc 之后插入 h264parse;对于一般播放,建议使用 h264parse!mp4mux!filesink location=enc_test.mp4而不是将编码器输出直接写入原始的 .h264 文件。 Re: IMX95 v4l2h264enc encoded frame corrupted 我们可以使用gstreamer播放h264视频,播放效果很好: gst-launch-1.0filesrc location=enc_test.h264 !decodebin!glupload!自动视频接收器 所以我觉得这不是 v4l2h264enc 的问题。
查看全文
S32DS3.5で作成されたS32K144プロジェクトでは、CSECドライバとFlashドライバは共存できません。 既存のS32DS3.5プロジェクトを、新しいクライアントの要件に合わせて変更する必要があります。フラッシュドライバは既に存在するため、CSECドライバを追加する必要があります。MEXファイルで周辺機器を設定する際に、CSECを追加するとエラーが発生し、CSECまたはフラッシュドライバを削除すると問題が解決することがわかりました。この問題を解決するにはどうすればよいでしょうか? IDE: S32DS3.5 SDK: S32 SDK RTM 4.0.1 err.jpgerr.jpg     Re: S32DS3.5创建的S32K144工程CSEC和Flash驱动不能同时存在 こんにちは、 @ZDDL さん。 SDKのリリースノートによると、S32 Design Studio(S32DS)3.4と互換性があります。S32DS 3.5との互換性はまだ検証されていないため、正しい機能を保証することはできません。 また、1つのIDEインストール内にSDKやRTDのバージョンを1つだけインストールすることを強くおすすめします。複数のSDK/RTDバージョンが必要な場合は、各バージョンごとに別々のIDEインストールを使用してください。 danielmartynek_0-1788953256888.pngdanielmartynek_0-1788953256888.png BR、ダニエル
查看全文
question regarding electrical motor control job Okay so i got interviewed for a job which seems veeery interesting, in the field of control of electrical motors. Now the problem is that he basically described 2 main job functions very different: one is actually develope of control system for motors: simulations in matlab, implementation in microcontrollers and testing. The second part however is related to PLC: he told me that they write some function that are somehow integrated into the system they build. Now my question is: how do i know if i end up working in the first branch o the second one? And if both, with which percentage? Do some of u work in a similar company and can tell me how the 2 aspects are balanced? Should i just ask it to the interviewer? Note that they are not 2 different positions Re: question regarding electrical motor control job Hi taotomi urushi,   Thanks for reaching out.   I’m not sure I fully understand your question. Could you please clarify what specific information about NXP products or technologies you are looking for? Please provide more details about your inquiry so that we can better assist you.   Here is our NXP website: https://www.nxp.com/   If your intention is to apply for a position at NXP, please visit our careers page and submit your application through the following link:   https://nxp.wd3.myworkdayjobs.com/careers   Hope all the information could help you.   BR Lina 
查看全文
The CSEC and Flash driver in an S32K144 project created with S32DS3.5 cannot coexist. I need to modify an existing S32DS3.5 project to meet the requirements of a new client. Since a Flash driver already exists, I need to add a CSEC driver. When configuring peripherals in the MEX file, I found that adding CSEC results in an error, while deleting CSEC or the Flash driver resolves the issue. How can I resolve this problem? IDE: S32DS3.5 SDK: S32 SDK RTM 4.0.1 err.jpgerr.jpg     Re: S32DS3.5创建的S32K144工程CSEC和Flash驱动不能同时存在 Hello @ZDDL, According to the SDK release notes, it is compatible with S32 Design Studio (S32DS) 3.4. Compatibility with S32DS 3.5 has not been validated, so we cannot guarantee correct functionality. I also strongly recommend installing only one SDK or RTD version within a single IDE installation. If multiple SDK/RTD versions are required, use separate IDE installations for each version. danielmartynek_0-1788953256888.pngdanielmartynek_0-1788953256888.png BR, Daniel 
查看全文
S32DS3.6.6にSW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07をインストールした後、K144プロジェクトを作成できません。 S32DS3.6.6をインストールした後、インストール...新規ソフトウェア方式を使用して、SW32K1_S32DS_Development_Pack_3.6.6_RFP_D2602.zip と SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07_D2606_DesignStudio_updatesite.zip をインストールしました。拡張機能リストには、両方のパッケージが正常にインストールされたと表示されています。しかし、サンプルや新規プロジェクトの作成時に K144 が見つからず、K3 しか利用できません。この問題を解決するにはどうすればよいでしょうか? Ex.jpgEx.jpg exam.jpgexam.jpg     Re: S32DS3.6.6安装SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07后无法创建K144工程 こんにちは、 @ZDDL さん。 QLP07アップデートサイトは、S32K1/S32M24x RTD 3.0.0用のパッチ/拡張機能のみであり、完全なRTDインストールではありません。 まずベース SW32K1_S32M24x_RTD_R21-11_3.0.0_D2503_DesignStudio_updatesite.zipパッケージをインストールし、その上にQLP07をインストールしてください。S32 Design Studioを再起動すると、S32K144デバイスと対応する例が利用可能になるはずです。 QLP07で導入された追加機能、特にS32K142Nデバイスのサポートが必要ない場合は、QLP07パッケージをインストールする必要はありません。   よろしくお願いいたします。 パベル
查看全文
关于电机控制工作的问题 我面试了一份工作,看起来非常有趣,是关于电机控制领域的。现在的问题是,他基本上描述了两个截然不同的主要工作职能:一个是电机控制系统的开发:在 matlab 中进行仿真,在微控制器中实现和测试。但第二部分与 PLC 有关:他告诉我,他们编写了一些函数,这些函数以某种方式集成到他们构建的系统中。现在我的问题是:我如何知道我最终会在第一个分支还是第二个分支工作?如果两者都有,比例是多少?你们当中有人在类似的公司工作吗?能否告诉我这两方面是如何平衡的?我应该直接问面试官吗?请注意,它们并非两种不同的立场。 Re: question regarding electrical motor control job 您好,桃金娘漆,   感谢您的联系。   我不太确定我是否完全理解你的问题。请问您想了解恩智浦半导体产品或技术的哪些具体信息?请提供更多关于您咨询的内容,以便我们更好地为您提供帮助。   这是我们的恩智浦网站: https://www.nxp.com/   如果您有意申请恩智浦的职位,请访问我们的招聘页面,并通过以下链接提交您的申请: https://nxp.wd3.myworkdayjobs.com/careers   希望这些信息对您有所帮助。   BR 莉娜
查看全文
S32DS3.6.6安装SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07后无法创建K144工程 新安装S32DS3.6.6后,通过install New Software的方式分别安装了SW32K1_S32DS_Development_Pack_3.6.6_RFP_D2602.zip和SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07_D2606_DesignStudio_updatesite.zip。在Extensions里面也可以看到这2个包安装成功,但是无论是通过example还是新建工程都找不到K144只有K3的。怎么处理? Ex.jpgEx.jpg exam.jpgexam.jpg     Re: S32DS3.6.6安装SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07后无法创建K144工程 你好@ZDDL , QLP07 更新站点只是 S32K1/S32M24x RTD 3.0.0 的一个补丁/扩展程序;它不是一个完整的 RTD 安装。 请先安装基础的SW32K1_S32M24x_RTD_R21-11_3.0.0_D2503_DesignStudio_updatesite.zip软件包,然后再在其上安装 QLP07。重启 S32 Design Studio 后,S32K144 设备和相应的示例应该就可以使用了。 如果您不需要 QLP07 中引入的附加功能,特别是对 S32K142N 设备的支持,则无需安装 QLP07 软件包。   顺祝商祺! 帕维尔
查看全文
Unable to create K144 project after installing SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07 on S32DS3.6.6 After installing S32DS3.6.6, via install...I installed SW32K1_S32DS_Development_Pack_3.6.6_RFP_D2602.zip and SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07_D2606_DesignStudio_updatesite.zip using the New Software method. Both packages are shown as successfully installed in the Extensions list. However, I can't find K144 in the examples or by creating a new project; only K3 is available. How can I fix this? Ex.jpgEx.jpg exam.jpgexam.jpg     Re: S32DS3.6.6安装SW32K1_S32M24x_RTD_R21-11_3.0.0_QLP07后无法创建K144工程 Hello @ZDDL , The QLP07 update site is only a patch/extension for S32K1/S32M24x RTD 3.0.0; it is not a complete RTD installation. Please first install the base SW32K1_S32M24x_RTD_R21-11_3.0.0_D2503_DesignStudio_updatesite.zip package and then install QLP07 on top of it. After restarting S32 Design Studio, the S32K144 device and the corresponding examples should become available. If you do not require the additional functionality introduced in QLP07, specifically support for the S32K142N devices, you do not need to install the QLP07 package.   Best regards, Pavel
查看全文
FreeRTOS_Toggle_Led_Example_S32K312 的 S32K312 FreeRTOS 版本问题 大家好, 我已从NXP网站下载了以下RTD和FreeRTOS软件包: SW32K3_RTD_R23-11_7.0.1_P02_D2603_DesignStudio_updatesite.tar SW32K3_FreeRTOS_11.1.0_0.8.0_CD1_D2603_DesignStudio_updatesite.tar 我使用的是 Windows 系统,并且已成功在S32 Design Studio (V3.6.10)中导入/打开了FreeRTOS_Toggle_Led_Example_S32K312项目。 但是,当我尝试构建应用程序时,遇到了错误#include "FreeRTOSConfig.h 文件未找到",如附件截图 (BE1) 所示。 此外,当我打开项目的.mex文件时文件配置工具显示以下错误(请参考附件Mex文件) “该工具不支持所选处理器。” 请您就以下几点给予指导? 这些RTD和FreeRTOS软件包是否需要特定版本的S32 Design Studio ? S32K312是否需要安装任何其他更新、插件或设备支持包? 构建和运行FreeRTOS_Toggle_Led_Example_S32K312示例应用程序的正确步骤是什么? 我的最终目标是在S32K312 EVB上运行 FreeRTOS。请问能否提供推荐的设置和安装步骤? 我已附上构建错误截图(BE1 和 Mex)供您参考。 感谢您的支持。 此致, 普拉莫德·贾达夫 Re: S32K312 Freertos build issue for the FreeRTOS_Toggle_Led_Example_S32K312 感谢您的快速更新,提供的RTD版本已经解决了我的问题。 Re: S32K312 Freertos build issue for the FreeRTOS_Toggle_Led_Example_S32K312 您好, SW32K3_RTD_R23-11_7.0.1_P02_D2603_DesignStudio_updatesite.zip 仅包含 Crypto 驱动程序。在添加 FreeRTOS 软件包之前,需要先安装基于 RTD 的软件包。 PetrS_0-1788946493548.pngPetrS_0-1788946493548.png 成功安装 RTD 和 FreeRTOS 后,只需从示例创建一个新项目即可。 PetrS_1-1788946542398.pngPetrS_1-1788946542398.png 加载完成后,打开 mex 文件并点击“更新代码”按钮。它应该添加缺失的驱动程序等。 然后您就可以构建演示了。 您也可以在项目资源管理器窗口中右键单击项目,然后选择“更新代码”和“生成项目”。 PetrS_0-1788946711279.pngPetrS_0-1788946711279.png BR,彼得
查看全文
S32DS3.5创建的S32K144工程CSEC和Flash驱动不能同时存在 我需要修改以前的一个S32DS3.5的工程以满足新客户的需求。因为已经有了Flash驱动,现在需要新增CSEC部分驱动,我在mex中进行外设配置时,发现新增CSEC之后就会提示错误,删除CSEC或者Flash就正常。请问应该如何解决该问题? IDE:S32DS3.5 SDK: S32 SDK RTM 4.0.1 err.jpgerr.jpg     Re: S32DS3.5创建的S32K144工程CSEC和Flash驱动不能同时存在 你好@ZDDL , 根据 SDK 发行说明,它与 S32 Design Studio (S32DS) 3.4 兼容。与 S32DS 3.5 的兼容性尚未验证,因此我们无法保证其功能正确。 我也强烈建议在单个 IDE 安装中只安装一个 SDK 或 RTD 版本。如果需要多个 SDK/RTD 版本,请为每个版本单独安装 IDE。 danielmartynek_0-1788953256888.pngdanielmartynek_0-1788953256888.png BR,丹尼尔
查看全文
モータ制御の仕事に関する質問 さて、とても興味深い仕事の面接を受けました。それは電動モーターの制御分野です。問題は、彼が基本的に2つの主要な職務機能を非常に異なって説明していることです。1つはモーターの制御システムの開発で、matlabでのシミュレーション、マイクロコントローラでの実装とテストです。しかし、2つ目の部分はPLC(プログラマブルロジックコントローラー)に関するもので、彼らは自分たちが構築するシステムに何らかの形で組み込まれる関数をいくつか作成している、と彼は私に話しました。さて、私の質問は、自分が最終的に最初の支店で働くことになるのか、それとも2番目の支店で働くことになるのかを、どうすれば知ることができるのかということです。もし両方であれば、どのくらいの割合でしょうか?同じような会社で働いている方がいれば、この2つの側面がどのようにバランスを取っているのか教えてもらえますか?面接官に直接聞いてみるべきでしょうか?ただし、これらは2つの異なるポジションではありません Re: question regarding electrical motor control job こんにちは、タオトミ・ウルシさん、   ご連絡ありがとうございます。   あなたの質問の意味を完全に理解できているか自信がありません。NXP製品やテクノロジについて具体的にどのような情報をお探しですか?より詳しくご相談いただければ、より詳しくご案内いたします。   こちらがNXPのウェブサイトです。 https://www.nxp.com/   NXPの職に応募する予定がある場合は、当社の採用情報ページをご覧いただき、以下のリンクから応募してください。 https://nxp.wd3.myworkdayjobs.com/careers   すべての情報があなたの助けになれば幸いです。   BR リナ
查看全文
IMX95 v4l2h264enc エンコードされたフレームが破損しています 私はIMX95のv4l2h264encエンコーダーを使用して、H264ビデオエンコードをテストしています。テストコマンドラインは以下のとおりです。 gst-launch-1.0-v videotestsrc pattern=ball num-buffers=150 !video/x-raw、format=NV12、width=1280、height=720、framerate=30/1 !v4l2h264enc !filesink location=enc_test.h264 動画ファイルは正常に生成されましたが、ffplayで再生しようとすると失敗し、以下のエラーが表示されます。 ffplay バージョン 4.2.7-0ubuntu0.1著作権 (c) 2003-2022 FFmpeg 開発者 GCC 9(Ubuntu 9.4.0-1UBuntu1~20.04.1)で構築されました。 構成: --prefix =/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjp --enable-libopenmpt --enable-libbops --enable-libpulse --enable-librband --enable-libsnand --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvppx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared264 リバヴティル 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 libavresample 4.0.0 / 4.0.0 libswscale 5.5.100 / 5.5.100 libswresample 3.5.100 / 3.5.100 libpostproc 55.5.100 / 55.5.100 [h264 @ 0x7fbea4002840] VUIを7ビットオーバーリードしました [h264 @ 0x7fbea4002840] sps_id 0 が範囲外です [h264 @ 0x7fbea4002840] 存在しない PPS 0 が参照されました 最後のメッセージが2回繰り返されました [h264 @ 0x7fbea4002840] VUIを8ビットオーバーリード 0KB sq= 0B f=0/0 [h264 @ 0x7fbea4002840] VUIを7ビットオーバーリードしました [h264 @ 0x7fbea4002840] VUIを8ビットオーバーリードしました [h264 @ 0x7fbea4002840] 存在しない PPS 0 が参照されました 最後のメッセージが26回繰り返されました [h264 @ 0x7fbea4002840] VUIを7ビットオーバーリードしました [h264 @ 0x7fbea4002840] sps_id 0 が範囲外です [h264 @ 0x7fbea4002840] 存在しない PPS 0 が参照されました 最後のメッセージが29回繰り返されました [h264 @ 0x7fbea4002840] VUIを7ビットオーバーリードしました [h264 @ 0x7fbea4002840] sps_id 0 が範囲外です [h264 @ 0x7fbea4002840] 存在しない PPS 0 が参照されました 最後のメッセージが29回繰り返されました [h264 @ 0x7fbea4002840] VUIを7ビットオーバーリードしました [h264 @ 0x7fbea4002840] sps_id 0 が範囲外です [h264 @ 0x7fbea4002840] 存在しない PPS 0 が参照されました 最後のメッセージが29回繰り返されました [h264 @ 0x7fbea4002840] VUIを7ビットオーバーリードしました [h264 @ 0x7fbea4002840] sps_id 0 が範囲外です [h264 @ 0x7fbea4002840] 存在しない PPS 0 が参照されました 最後のメッセージが29回繰り返されました 入力#0、h264、'enc_test.h264'より: 再生時間:該当なし、ビットレート:該当なし ストリーム #0:0: ビデオ: h264 (ベースライン)、yuv420p、1280x720、25.17 fps、25 tbr、1200k tbn、50 tbc [h264 @ 0x7fbea4007f00] VUIを8ビットオーバーリードしました ファイル「enc_test.h264」を開けませんでした。またはフィルターグラフを設定する 上記のログから判断すると、ビデオヘッドが破損しているようです。 次に、gstreamerのデバッグ機能を使ってみたところ、以下のログが見つかりました。 0:00:05.727025935 13024 0xffffa0000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: 入力フレームが消えたためメタデータをコピーできません 私のシステム情報:Linux imx95-19x19-lpddr5-evk 6.12.49+ #9 SMP PREEMPT 2026年7月22日(水)11:47:53 UTC aarch64 GNU/Linux Re: IMX95 v4l2h264enc encoded frame corrupted AEチームと話し合っています。 Re: IMX95 v4l2h264enc encoded frame corrupted あなたのヒントに従って、あなたが提供してくれた2つのコマンドラインを実行してみました。しかし、どれも効果がない。エンコードされた動画はまだ再生できません。 コマンドの場合: gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! filesink location=enc_test.h264 エンコードされたビデオファイルを再生しようとすると、以下のエラーが表示されます。 ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared 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 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 [h264 @ 0x557b5dc1e980] Format h264 detected only with low score of 1, misdetection possible! [h264 @ 0x557b5dc20380] sps_id 0 out of range Last message repeated 1 times [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0x557b5dc20380] sps_id 0 out of range Last message repeated 1 times [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced [h264 @ 0x557b5dc20380] decode_slice_header error [h264 @ 0x557b5dc20380] no frame! [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced [h264 @ 0x557b5dc20380] decode_slice_header error ...... Last message repeated 1 times [h264 @ 0x557b5dc20380] decode_slice_header error [h264 @ 0x557b5dc20380] no frame! [h264 @ 0x557b5dc1e980] decoding for stream 0 failed [h264 @ 0x557b5dc1e980] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, h264, from 'enc_test.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264, none, 25.17 fps, 25 tbr, 1200k tbn, 50 tbc デバッグを試みたところ、以下のような警告が表示されました。 0:00:00.129727669 2003 0xffffa8000b70 WARN v4l2bufferpool gstv4l2bufferpool.c:884:gst_v4l2_buffer_pool_start: Uncertain or not enough buffers, enabling copy threshold 0:00:00.152626502 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.153013002 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:435:gst_h264_parse_vui_parameters: failed to read uint8 for 'vui->aspect_ratio_idc', nbits: 8 0:00:00.153052211 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:516:gst_h264_parse_vui_parameters: error parsing "VUI Parameters" 0:00:00.153071752 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2155:gst_h264_parse_sps: error parsing "Sequence parameter set" 0:00:00.153092044 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:993:gst_h264_parse_process_nal: failed to parse SPS: 0:00:00.153120336 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:1529:gst_h264_parse_handle_frame: broken/invalid nal Type: 7 SPS, Size: 9 will be dropped 0:00:00.153205086 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2284:gst_h264_parse_pps: couldn't find associated sequence parameter set with id: 0 0:00:00.153230627 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:1026:gst_h264_parse_process_nal: failed to parse PPS: 0:00:00.153418211 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.153690127 2003 0xffffa8000d00 WARN v4l2bufferpool gstv4l2bufferpool.c:491:gst_v4l2_buffer_pool_alloc_buffer: newly allocated buffer 0 is not free Pipeline is PREROLLED ... Setting pipeline to PLAYING ... Redistribute latency... New clock: GstSystemClock 0:00:00.180972628 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.181182169 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.211927795 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.212148128 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.242748712 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.242969462 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 コマンドの場合: gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! mp4mux ! filesink location=enc_test.mp4 動画ファイルをエンコードできませんでした。以下のようなエラーが表示されます。 root@imx95-19x19-lpddr5-evk:~# GST_DEBUG=3 gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! mp4mux ! filesink location=enc_test.mp4 Setting pipeline to PAUSED ... ====== V4L2ENC: 1.24.7 build on Jan 2 2025 07:23:23. ====== 0:00:00.078378376 2059 0xaaaadecda320 WARN v4l2 gstv4l2object.c:5350:gst_v4l2_object_probe_caps: Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument 0:00:00.079377793 2059 0xffffa8000b70 WARN aggregator gstaggregator.c:2283:gst_aggregator_query_latency_unlocked: Latency query failed Pipeline is PREROLLING ... 0:00:00.079857126 2059 0xffffa8000d00 FIXME default gstutils.c:4089:gst_element_decorate_stream_id_internal: Creating random stream-id, consider implementing a deterministic way of creating a stream-id /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono Redistribute latency... /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 0:00:00.140337252 2059 0xffffa8000d00 WARN v4l2bufferpool gstv4l2bufferpool.c:884:gst_v4l2_buffer_pool_start: Uncertain or not enough buffers, enabling copy threshold 0:00:00.165691544 2059 0xffffa8000e90 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.166079919 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:435:gst_h264_parse_vui_parameters: failed to read uint8 for 'vui->aspect_ratio_idc', nbits: 8 0:00:00.166119002 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:516:gst_h264_parse_vui_parameters: error parsing "VUI Parameters" 0:00:00.166138877 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2155:gst_h264_parse_sps: error parsing "Sequence parameter set" 0:00:00.166159335 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:993:gst_h264_parse_process_nal: failed to parse SPS: 0:00:00.166187127 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:1529:gst_h264_parse_handle_frame: broken/invalid nal Type: 7 SPS, Size: 9 will be dropped 0:00:00.166277252 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2284:gst_h264_parse_pps: couldn't find associated sequence parameter set with id: 0 0:00:00.166301710 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:1026:gst_h264_parse_process_nal: failed to parse PPS: 0:00:00.166486835 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.166826460 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:6357:gst_qt_mux_video_sink_set_caps: no codec_data in h264 caps 0:00:00.166923502 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:6856:gst_qt_mux_video_sink_set_caps: pad video_0 refused caps video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, i/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true nterlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true 0:00:00.166977794 2059 0xffffa8000e90 WARN v4l2bufferpool gstv4l2bufferpool.c:491:gst_v4l2_buffer_pool_alloc_buffer: newly allocated buffer 0 is not free /GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstQTMuxPad:video_0: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true 0:00:00.167488335 2059 0xffffa8000b70 FIXME basesink gstbasesink.c:3399:gst_base_sink_default_event: stream-start event without group-id. Consider implementing group-id handling in the upstream elements /GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstAggregatorPad:src: caps = video/quicktime, variant=(string)iso /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)iso Pipeline is PREROLLED ... Setting pipeline to PLAYING ... 0:00:00.168202544 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:5415:gst_qt_mux_add_buffer: error: format wasn't negotiated before buffer flow on pad video_0 Redistribute latency... ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: GStreamer error: negotiation problem. Additional debug info: /usr/src/debug/gstreamer1.0-plugins-good/1.24.7.imx/gst/isomp4/gstqtmux.c(5415): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: format wasn't negotiated before buffer flow on pad video_0 0:00:00.168413044 2059 0xffffa8000b70 FIXME aggregator gstaggregator.c:1478:gst_aggregator_loop: Subclass should call gst_aggregator_selected_samples() from its aggregate implementation. Execution ended after 0:00:00.000556000 Setting pipeline to NULL ... 0:00:00.174238335 2059 0xaaaadecda320 WARN bufferpool gstbufferpool.c:1429:gst_buffer_pool_set_flushing: can't change flushing state of inactive pool 0:00:00.199404961 2059 0xaaaadecda320 WARN bufferpool gstbufferpool.c:1429:gst_buffer_pool_set_flushing: can't change flushing state of inactive pool Freeing pipeline ... Re: IMX95 v4l2h264enc encoded frame corrupted エンコーダの出力はテストソースからの「ビデオヘッダー破損」ではない可能性が高いです。パイプラインにはNXPの i.MX Linuxガイダンスで期待されるH.264パーサーステージが欠けており、i.MX 8 / i.MX 95 VPUエンコーダパイプラインに期待されています。i.MX 95 v4l2h264encの出力はH.264 stream-format=byte-stream / alignment=auであり、NXPのドキュメントではVPUが i.MX 8および95でバイトストリーム出力のみをサポートするため、h264parse/h265parseを追加すべき i.MX あります。 まずはこちらをお使いください: gst-launch-1.0-e -v \   videotestsrc パターン=ball num-buffers=150 !\   video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 !\   v4l2h264enc !\   h264parse config-interval=-1 !\   filesink location=enc_test.h264 次に、それを生のH.264として明示的に再生します。 ffplay -f h264 enc_test.h264 通常の再生可能なコンテナファイルが必要な場合は、マルチプレクサを使用してください。 gst-launch-1.0-e -v \   videotestsrc パターン=ball num-buffers=150 !\   video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 !\   v4l2h264enc !\ h264parse !\ mp4mux !\   filesink location=enc_test.mp4 または: gst-launch-1.0-e -v \   videotestsrc パターン=ball num-buffers=150 !\   video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 !\   v4l2h264enc !\ h264parse !\   matroskamux !\   filesink location=enc_test.mkv NXPの録画例では、h264parseをエンコーダーとmuxer/filesinkパスの間に配置しています。例:$videoEncoderPlugin ![h264parse] !$MUXER !ファイルシンク... 。MP4の場合、-eオプションが重要で、GStreamerはEOSを送り、マクサがファイルを正しく最終化できるようにします。 GStreamerメッセージ: FIXME videoencoder ...入力フレームが消えたためメタデータをコピーできません それ自体では、H.264ビットストリームヘッダーが破損していることの証明にはなりません。これは、v4l2h264enc パイプラインで確認されている GStreamer ビデオエンコーダーのメタデータコピー警告/FIXME です。ffplayのエラー(Overread VUI、sps_id 0 が範囲外、非存在のPPS 0が参照)は、特にSPS/PPSの処理に関して、ダウンストリームのリーダーが期待どおりに正規化/解析されていないH.264ストリームを見ているという状況とより一致しています。 解析済みの生の.h264ファイルでも失敗する場合は、最初のバイトを確認してください。 xxd -l 64 enc_test.h264 Annex-BバイトストリームH.264の場合、以下のような開始コードが表示されます。 00000001 冒頭付近に続いて、スライスの前にSPS/PPS NALユニットが続きます。 推奨される修正: v4l2h264enc の後に h264parse を挿入します。一般的な再生には、h264parse を推奨します。mp4mux !filesink location=enc_test.mp4エンコーダーの出力を直接生の.h264ファイルに書き込むのではなく。 Re: IMX95 v4l2h264enc encoded frame corrupted gstreamerを使ってh264の動画を再生でき、とても快適に再生できます: gst-launch-1.0filesrc location=enc_test.h264 !decodebin !グルプロード!自動ビデオシンク なので、v4l2h264encの問題ではないと思います。
查看全文
FreeRTOS_Toggle_Led_Example_S32K312 の S32K312 FreeRTOS ビルドに関する問題 チームの皆さん、こんにちは。 NXPのウェブサイトから以下のRTDおよびFreeRTOSパッケージをダウンロードしました: SW32K3_RTD_R23-11_7.0.1_P02_D2603_DesignStudio_updatesite.tar SW32K3_FreeRTOS_11.1.0_0.8.0_CD1_D2603_DesignStudio_updatesite.tar 私はWindowsシステムを使っており、S32 Design Studio(V3.6.10)でFreeRTOS_Toggle_Led_Example_S32K312プロジェクトを正常にインポート・開くことができました。 しかし、アプリケーションをビルドしようとすると、「添付のスクリーンショット(BE1)に示 されているFreeRTOSConfig.hファイルが見つかりません」というエラーが出 #include ます。 さらに、プロジェクトの.mexファイルを開くとファイル、Config Tools に以下のエラーが表示されます (添付のMexファイルを参照) 「このツールは選択したプロセッサをサポートしていません。」 以下の点について教えていただけますか? これらのRTDやFreeRTOSパッケージには、 S32 Design Studio の特定のバージョンが必要ですか? S32K312に追加のアップデートやプラグイン、デバイスサポートパッケージをインストールする必要がありますか? FreeRTOS_Toggle_Led_Example_S32K312サンプルアプリケーションをビルドし実行する正しい手順は何ですか? 私の最終目標は、 S32K312 EVB上でFreeRTOSを動作させることです。推奨されるセットアップとインストールの手順についてアドバイスをいただけますか? 参考までに、ビルドエラーのスクリーンショット(BE1とMex)を添付しました。 再開まで今しばらくお待ちください。 よろしくお願いします、 プラモド・ジャダブ Re: S32K312 Freertos build issue for the FreeRTOS_Toggle_Led_Example_S32K312 迅速なアップデートありがとうございます。提供いただいたRTDバージョンで問題が解決しました。 Re: S32K312 Freertos build issue for the FreeRTOS_Toggle_Led_Example_S32K312 こんにちは、 SW32K3_RTD_R23-11_7.0.1_P02_D2603_DesignStudio_updatesite.zipにはCryptoドライバーのみが含まれています。FreeRTOSを追加する前に、まずRTDベースのパッケージをインストールする必要があります。 PetrS_0-1788946493548.pngPetrS_0-1788946493548.png RTDとFreeRTOSが正常にインストールされたら、サンプルから新しいプロジェクトを作成するだけです。 PetrS_1-1788946542398.pngPetrS_1-1788946542398.png 読み込みが完了したら、mexファイルを開き、「コードの更新」ボタンをクリックしてください。欠落しているドライバなども追加されるはずです。 その後、デモを作ることができます プロジェクトエクスプローラーのウィンドウでプロジェクトを右クリックし、「コード更新」と「プロジェクト構築」を選択することもできます。 PetrS_0-1788946711279.pngPetrS_0-1788946711279.png BR、ペトル
查看全文
IMX95 v4l2h264enc encoded frame corrupted I am using IMX95's v4l2h264enc encoder to test H264 video encoding. Test command line is below: gst-launch-1.0 -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! filesink location=enc_test.h264 The video file is generated successfully, but when I try to play it with ffplay, it fails and shows error below: ffplay version 4.2.7-0ubuntu0.1 Copyright (c) 2003-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared 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 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 [h264 @ 0x7fbea4002840] Overread VUI by 7 bits [h264 @ 0x7fbea4002840] sps_id 0 out of range [h264 @ 0x7fbea4002840] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0x7fbea4002840] Overread VUI by 8 bits0KB sq= 0B f=0/0 [h264 @ 0x7fbea4002840] Overread VUI by 7 bits [h264 @ 0x7fbea4002840] Overread VUI by 8 bits [h264 @ 0x7fbea4002840] non-existing PPS 0 referenced Last message repeated 26 times [h264 @ 0x7fbea4002840] Overread VUI by 7 bits [h264 @ 0x7fbea4002840] sps_id 0 out of range [h264 @ 0x7fbea4002840] non-existing PPS 0 referenced Last message repeated 29 times [h264 @ 0x7fbea4002840] Overread VUI by 7 bits [h264 @ 0x7fbea4002840] sps_id 0 out of range [h264 @ 0x7fbea4002840] non-existing PPS 0 referenced Last message repeated 29 times [h264 @ 0x7fbea4002840] Overread VUI by 7 bits [h264 @ 0x7fbea4002840] sps_id 0 out of range [h264 @ 0x7fbea4002840] non-existing PPS 0 referenced Last message repeated 29 times [h264 @ 0x7fbea4002840] Overread VUI by 7 bits [h264 @ 0x7fbea4002840] sps_id 0 out of range [h264 @ 0x7fbea4002840] non-existing PPS 0 referenced Last message repeated 29 times Input #0, h264, from 'enc_test.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Baseline), yuv420p, 1280x720, 25.17 fps, 25 tbr, 1200k tbn, 50 tbc [h264 @ 0x7fbea4007f00] Overread VUI by 8 bits Failed to open file 'enc_test.h264' or configure filtergraph From the log above, it appears that the video head is corrupted. Then I try to use gstreamer debug, and found logs below: 0:00:05.727025935 13024 0xffffa0000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared My system info: Linux imx95-19x19-lpddr5-evk 6.12.49+ #9 SMP PREEMPT Wed Jul 22 11:47:53 UTC 2026 aarch64 GNU/Linux Re: IMX95 v4l2h264enc encoded frame corrupted Discussing with the AE team. Re: IMX95 v4l2h264enc encoded frame corrupted According to your hints, I try to execute two command line you provide. But none of them work. The encoded video still not playable. For command: gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! filesink location=enc_test.h264 When I try to play the encoded video file, error is shown below: ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared 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 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 [h264 @ 0x557b5dc1e980] Format h264 detected only with low score of 1, misdetection possible! [h264 @ 0x557b5dc20380] sps_id 0 out of range Last message repeated 1 times [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced Last message repeated 2 times [h264 @ 0x557b5dc20380] sps_id 0 out of range Last message repeated 1 times [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced [h264 @ 0x557b5dc20380] decode_slice_header error [h264 @ 0x557b5dc20380] no frame! [h264 @ 0x557b5dc20380] non-existing PPS 0 referenced [h264 @ 0x557b5dc20380] decode_slice_header error ...... Last message repeated 1 times [h264 @ 0x557b5dc20380] decode_slice_header error [h264 @ 0x557b5dc20380] no frame! [h264 @ 0x557b5dc1e980] decoding for stream 0 failed [h264 @ 0x557b5dc1e980] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, h264, from 'enc_test.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264, none, 25.17 fps, 25 tbr, 1200k tbn, 50 tbc I try to debug it, and it shows warning like below: 0:00:00.129727669 2003 0xffffa8000b70 WARN v4l2bufferpool gstv4l2bufferpool.c:884:gst_v4l2_buffer_pool_start: Uncertain or not enough buffers, enabling copy threshold 0:00:00.152626502 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.153013002 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:435:gst_h264_parse_vui_parameters: failed to read uint8 for 'vui->aspect_ratio_idc', nbits: 8 0:00:00.153052211 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:516:gst_h264_parse_vui_parameters: error parsing "VUI Parameters" 0:00:00.153071752 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2155:gst_h264_parse_sps: error parsing "Sequence parameter set" 0:00:00.153092044 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:993:gst_h264_parse_process_nal: failed to parse SPS: 0:00:00.153120336 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:1529:gst_h264_parse_handle_frame: broken/invalid nal Type: 7 SPS, Size: 9 will be dropped 0:00:00.153205086 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2284:gst_h264_parse_pps: couldn't find associated sequence parameter set with id: 0 0:00:00.153230627 2003 0xffffa8000d00 WARN h264parse gsth264parse.c:1026:gst_h264_parse_process_nal: failed to parse PPS: 0:00:00.153418211 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.153690127 2003 0xffffa8000d00 WARN v4l2bufferpool gstv4l2bufferpool.c:491:gst_v4l2_buffer_pool_alloc_buffer: newly allocated buffer 0 is not free Pipeline is PREROLLED ... Setting pipeline to PLAYING ... Redistribute latency... New clock: GstSystemClock 0:00:00.180972628 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.181182169 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.211927795 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.212148128 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.242748712 2003 0xffffa8000d00 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.242969462 2003 0xffffa8000d00 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 For command: gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! mp4mux ! filesink location=enc_test.mp4 It couldn't encode a video file, it shows error like below: root@imx95-19x19-lpddr5-evk:~# GST_DEBUG=3 gst-launch-1.0 -e -v videotestsrc pattern=ball num-buffers=150 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! v4l2h264enc ! h264parse config-interval=-1 ! mp4mux ! filesink location=enc_test.mp4 Setting pipeline to PAUSED ... ====== V4L2ENC: 1.24.7 build on Jan 2 2025 07:23:23. ====== 0:00:00.078378376 2059 0xaaaadecda320 WARN v4l2 gstv4l2object.c:5350:gst_v4l2_object_probe_caps: Failed to probe pixel aspect ratio with VIDIOC_CROPCAP: Invalid argument 0:00:00.079377793 2059 0xffffa8000b70 WARN aggregator gstaggregator.c:2283:gst_aggregator_query_latency_unlocked: Latency query failed Pipeline is PREROLLING ... 0:00:00.079857126 2059 0xffffa8000d00 FIXME default gstutils.c:4089:gst_element_decorate_stream_id_internal: Creating random stream-id, consider implementing a deterministic way of creating a stream-id /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono /GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono Redistribute latency... /GstPipeline:pipeline0/v4l2h264enc:v4l2h264enc0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1, multiview-mode=(string)mono, interlace-mode=(string)progressive, colorimetry=(string)bt601, pixel-aspect-ratio=(fraction)1/1 0:00:00.140337252 2059 0xffffa8000d00 WARN v4l2bufferpool gstv4l2bufferpool.c:884:gst_v4l2_buffer_pool_start: Uncertain or not enough buffers, enabling copy threshold 0:00:00.165691544 2059 0xffffa8000e90 FIXME videoencoder gstvideoencoder.c:2408:gst_video_encoder_transform_meta_unlocked: Can't copy metadata because input frame disappeared 0:00:00.166079919 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:435:gst_h264_parse_vui_parameters: failed to read uint8 for 'vui->aspect_ratio_idc', nbits: 8 0:00:00.166119002 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:516:gst_h264_parse_vui_parameters: error parsing "VUI Parameters" 0:00:00.166138877 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2155:gst_h264_parse_sps: error parsing "Sequence parameter set" 0:00:00.166159335 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:993:gst_h264_parse_process_nal: failed to parse SPS: 0:00:00.166187127 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:1529:gst_h264_parse_handle_frame: broken/invalid nal Type: 7 SPS, Size: 9 will be dropped 0:00:00.166277252 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2284:gst_h264_parse_pps: couldn't find associated sequence parameter set with id: 0 0:00:00.166301710 2059 0xffffa8000e90 WARN h264parse gsth264parse.c:1026:gst_h264_parse_process_nal: failed to parse PPS: 0:00:00.166486835 2059 0xffffa8000e90 WARN codecparsers_h264 gsth264parser.c:2473:gst_h264_parser_parse_slice_hdr: couldn't find associated picture parameter set with id: 0 0:00:00.166826460 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:6357:gst_qt_mux_video_sink_set_caps: no codec_data in h264 caps 0:00:00.166923502 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:6856:gst_qt_mux_video_sink_set_caps: pad video_0 refused caps video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, i/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true nterlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true 0:00:00.166977794 2059 0xffffa8000e90 WARN v4l2bufferpool gstv4l2bufferpool.c:491:gst_v4l2_buffer_pool_alloc_buffer: newly allocated buffer 0 is not free /GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstQTMuxPad:video_0: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)1, profile=(string)baseline, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt601, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono, parsed=(boolean)true 0:00:00.167488335 2059 0xffffa8000b70 FIXME basesink gstbasesink.c:3399:gst_base_sink_default_event: stream-start event without group-id. Consider implementing group-id handling in the upstream elements /GstPipeline:pipeline0/GstMP4Mux:mp4mux0.GstAggregatorPad:src: caps = video/quicktime, variant=(string)iso /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)iso Pipeline is PREROLLED ... Setting pipeline to PLAYING ... 0:00:00.168202544 2059 0xffffa8000b70 WARN qtmux gstqtmux.c:5415:gst_qt_mux_add_buffer: error: format wasn't negotiated before buffer flow on pad video_0 Redistribute latency... ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: GStreamer error: negotiation problem. Additional debug info: /usr/src/debug/gstreamer1.0-plugins-good/1.24.7.imx/gst/isomp4/gstqtmux.c(5415): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: format wasn't negotiated before buffer flow on pad video_0 0:00:00.168413044 2059 0xffffa8000b70 FIXME aggregator gstaggregator.c:1478:gst_aggregator_loop: Subclass should call gst_aggregator_selected_samples() from its aggregate implementation. Execution ended after 0:00:00.000556000 Setting pipeline to NULL ... 0:00:00.174238335 2059 0xaaaadecda320 WARN bufferpool gstbufferpool.c:1429:gst_buffer_pool_set_flushing: can't change flushing state of inactive pool 0:00:00.199404961 2059 0xaaaadecda320 WARN bufferpool gstbufferpool.c:1429:gst_buffer_pool_set_flushing: can't change flushing state of inactive pool Freeing pipeline ... Re: IMX95 v4l2h264enc encoded frame corrupted The encoder output is probably not “video header corruption” from your test source; the pipeline is missing the H.264 parser stage that NXP’s i.MX Linux guidance expects for i.MX 8 / i.MX 95 VPU encoder pipelines. The i.MX 95 v4l2h264enc output is H.264 stream-format=byte-stream / alignment=au , and NXP documentation says h264parse/h265parse should be added because the VPU supports only byte-stream output on i.MX 8 and i.MX 95 . Use this first: gst-launch-1.0 -e -v \   videotestsrc pattern=ball num-buffers=150 ! \   video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! \   v4l2h264enc ! \   h264parse config-interval=-1 ! \   filesink location=enc_test.h264 Then play it explicitly as raw H.264: ffplay -f h264 enc_test.h264 If you want a normal playable container file, use a muxer: gst-launch-1.0 -e -v \   videotestsrc pattern=ball num-buffers=150 ! \   video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! \   v4l2h264enc ! \   h264parse ! \   mp4mux ! \   filesink location=enc_test.mp4 or: gst-launch-1.0 -e -v \   videotestsrc pattern=ball num-buffers=150 ! \   video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! \   v4l2h264enc ! \   h264parse ! \   matroskamux ! \   filesink location=enc_test.mkv NXP’s recording examples place h264parse between the encoder and muxer/filesink path, e.g. $videoEncoderPlugin ! [h264parse] ! $MUXER ! filesink ... . For MP4, the -e option is important so GStreamer sends EOS and lets the muxer finalize the file correctly. The GStreamer message: FIXME videoencoder ... Can't copy metadata because input frame disappeared is not, by itself, proof that the H.264 bitstream header is corrupted. It is a GStreamer videoencoder metadata-copy warning/FIXME that has been seen in v4l2h264enc pipelines . The ffplay errors — Overread VUI , sps_id 0 out of range , non-existing PPS 0 referenced — are more consistent with the downstream reader seeing an H.264 stream that has not been normalized/parsed as expected, especially around SPS/PPS handling. If the parsed raw .h264 still fails, check the first bytes: xxd -l 64 enc_test.h264 For Annex-B byte-stream H.264, you should see start codes such as: 00 00 00 01 near the beginning, followed by SPS/PPS NAL units before slices. Recommended fix: insert h264parse after v4l2h264enc ; for general playback, prefer h264parse ! mp4mux ! filesink location=enc_test.mp4 rather than writing the encoder output directly to a raw .h264 file. Re: IMX95 v4l2h264enc encoded frame corrupted We can use the gstreamer to play the h264 video, and it plays well: gst-launch-1.0 filesrc location=enc_test.h264 ! decodebin ! glupload ! autovideosink so I don't think it's the v4l2h264enc issue.
查看全文
Use NPU with yolov5 on iMX8MP I am trying to run yolov5 on Verdin iMX8M Plus SOM. I have connected a USB webcam to the Yavia Development Board. It is running only on the CPU I have the NPU enabled and I am running on 5.15 The yolov5 logs output is # python3 detect.py --source 2 detect: weights=yolov5s.pt, source=2, data=data/coco128.yaml, imgsz=[640, 640], conf_thres=0.25, iou_thres=0.45, max_det=1000, device=, view_img=False, save_txt=False, save_csv=False, save_conf=False, save_crop=False, nosave=False, classes=None, agnostic_nms=False, augment=False, visualize=False, update=False, project=runs/detect, name=exp, exist_ok=False, line_thickness=3, hide_labels=False, hide_conf=False, half=False, dnn=False, vid_stride=1 YOLOv5 🚀 v7.0-295-gac6c4383 Python-3.10.13 torch-2.2.2 CPU Fusing layers... YOLOv5s summary: 213 layers, 7225885 parameters, 0 gradients, 16.4 GFLOPs [ WARN:[email protected]] global /usr/src/debug/opencv/4.6.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (1405) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1 1/1: 2... Success (inf frames 640x480 at 30.00 FPS) [ WARN:[email protected]] global /usr/src/debug/opencv/4.6.0.imx-r0/git/modules/videoio/src/cap_gstreamer.cpp (2180) open OpenCV | GStreamer warning: cannot link elements 0: 480x640 1 person, 2571.6ms 0: 480x640 2 persons, 1 cell phone, 2471.2ms 0: 480x640 1 person, 2592.1ms 0: 480x640 1 person, 2523.1ms 0: 480x640 1 person, 2413.3ms 0: 480x640 1 person, 2483.8ms 0: 480x640 1 person, 2499.5ms Any pointers on how can I get the NPU detected. Thanks and Regards i.MX 8 Family | i.MX 8QuadMax (8QM) | 8QuadPlus Re: Use NPU with yolov5 on iMX8MP Hello! @Kianou  Sure, please take a look to the updated link: https://www.nxp.com/docs/en/user-guide/UG10166.pdf Best regards, Salas. Re: Use NPU with yolov5 on iMX8MP Hi, Manuel_Salas I found  IMX-MACHINE-LEARNING-UG  is not foud now.  Is it still availble? Best Regards, kian Re: Use NPU with yolov5 on iMX8MP Hi! Sorry for the delay in response. I checked the hardware acceleration section of iMX machine learning users guide. I looked at the examples in /usr/bin/tensorflow-lite-2.10.0/examples/ and is working on the NPU. How can I get yolov5 to detect the NPU? Also are there any examples which use realtime camera feed or how can I edit the existing ones to use a camera? Re: Use NPU with yolov5 on iMX8MP Hello @kanakshilledar  You can check the IMX-MACHINE-LEARNING-UG in section 7.1 Hardware acceleration on i.MX 8 Series. Best regards. Salas.
查看全文