This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SK-AM62A-LP:无法在记录的文件中获得适当的 fps

Guru**** 2480055 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1437965/sk-am62a-lp-not-able-to-get-proper-fps-in-recorded-files

器件型号:SK-AM62A-LP

工具与软件:

团队成员、您好!

我正在使用 AM62A34 EVM、并在其中尝试执行 gstreamer 命令、以以30fps 和60fps 的速率录制视频。
我成功捕获了 MJPEG 视频、但无法获得适当的 fps。
我在 VLC 和 ffplay 命令中检查了 fps 值、但在该显示器中仅显示25 fps、即使我录制了30fps 和20fps 的视频。

Comamnd:
gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import! video/x-bayer、width=1920、height=1200、帧速率=30/1、format=rggb10! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 dcc-isp-file=/opt/imaging/ar0235/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a.bin format-msb=9 sink_0:ae-mode=2! video/x-raw、格式=NV12、宽度=1920、高度=1200、帧速率=30/1! v4l2jpegenc output-io-mode=dmabuf-import! filesink location=evm6_data.mJPEG  



您能对此提供帮助吗?

谢谢!
Jaimin

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jaimin:

    在 v4l2jpegenc 之前添加队列元素是否有帮助?

    此致、

    Suren

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Suren:

    我已经在 v4l2jpegenc 之前添加了队列元素、但获得相同的行为仅获得25fps、即使我设置了30fps。  

    gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import! video/x-bayer、width=1920、height=1200、帧速率=30/1、format=rggb! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 dcc-isp-file=/opt/imaging/ar0235/dcc_viss_8bit_1920x1200.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a_8bit_1920x1200.bin format-msb=9 sink_0:ae-mode=2! video/x-raw、格式=NV12、宽度=1920、高度=1200、帧速率=30/1! 队列! v4l2jpegenc extra-controls=c、compression_quality=75 '!' filesink location="data_temp_2.mJPEG"


    如果我添加 队列 和  output-io-mode=dmabuf-import 在2秒的管道停滞且无法获取数据后出现了问题
     
    具有队列和 output-io-mode=dmabuf-import 的管道:

    gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import! video/x-bayer、width=1920、height=1200、帧速率=30/1、format=rggb10! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 dcc-isp-file=/opt/imaging/ar0235/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a.bin format-msb=9 sink_0:ae-mode=2! video/x-raw、格式=NV12、宽度=1920、高度=1200、帧速率=30/1! 队列 ! v4l2jpegenc output-io-mode=dmabuf-import ! filesink location=evm6_data.mJPEG  

    谢谢!
    Jaimin

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jaimin:

    我今天将尝试在设置中重现此问题。

    此致、

    Suren

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jaimin:

    我在 v4l2jpegenc 上运行了以下 gstreamer 流水线(具有队列和输出 io-mode)、但没有看到任何问题:

    gst-launch-1.0 v4l2src device=/dev/video-imx219-cam0 io-mode=dmabuf-import! \

    video/x-bayer、宽度=1920、高度=1080、帧速率=30/1、格式=rggb10! \

    tiovxisp sink_0::device=/dev/v4l-imx219-subdev0 sensor-name="sensor_Sony_IMX219_RPI"\

    dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_1920x1080.bin sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_1920x1080.bin format-msb=9 ! \ video/x-raw , format=NV12, width=1920, height=1080, frameerate=30/1 ! \

    队列! v4l2jpegenc extra-controls=c,compression_quality=75 output-io-mode=dmabuf-import! filesink location=temp.mJPEG

    此致、

    Suren

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    在我的案例中、当我第二次运行命令时、命令会卡住  
    附加的日志:


    root@sick:~# gst-launch-1.0 -v v4l2src device=/dev/video-rpi-cam0 io-mode=dmabuf-import ! video/x-bayer、width=1920、height=1200、帧速率=30/1、format=rggb10! tiovxisp sink_0::device=/dev/v4l-rpi-subdev0 dcc-isp-file=/opt/imaging/ar0235/dcc_viss_10bit_1920x1200.bin sink_0::dcc-2a-file=/opt/imaging/ar0235/dcc_2a_10bit_1920x1200.bin format-msb=9 sink_0:ae-mode=2! video/x-raw、格式=NV12、宽度=1920、高度=1200、帧速率=30/1! 队列! v4l2jpegenc extra-controls=c,compression_quality=75 output-io-mode=dmabuf-import! filesink location=evm6_data.mJPEG
    应用程序:初始化...!!!
    内存:初始化...!!!
    MEM:已初始化的 DMA 堆(FD=6)!!!
    内存:初始化...完成!!!
    IPC:初始化...!!!
    IPC:初始化...完成!!!
    remote_servic: init…!!
    Remote_servic:初始化...完成!!!
    19674.311755s:GTC 频率= 200 MHz
    应用程序:初始化...完成!!!
    19674.311854 s:vx_zone_init:Enabled
    19674.311870 s:vx_zone_error:Enabled (已启用)
    19674.311880 s:vx_zone_warning:Enabled
    19674.312855 s:vx_zone_init:[tivxInitLocal:130]初始化已完成!!!
    19674.313029 s:vx_zone_init:[tivxHostInitLocal:101]主机初始化已完成!!!
    正在将管道设置为暂停...
    管道处于活动状态、不需要 PREROLL ...
    管道是 PREROLLED ...
    正在将管道设置为播放...
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src:cap = video/x-bayer、width=(int) 1920、height=(int) 1200、frameerate=(fractional) 30/1、format=(string) rggb10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src:cps = video/x-bayer、width=(int) 1920、height=(int) 1200、framerate=(fractional) 30/1、format=(string) rggb10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXIspPad:sink_0:caps = VIDEO/x-Bayer、width=(int) 1920、height=(int) 1200、framerate=(fractional) 30/1、format=(string) rggb10、 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink:caps = video/x-bayer、width=(int) 1920、height=(int) 1200、frameate=(fractional) 30/1、format=(string) rggb10 interlace-mode=(string)progressive, colorimetry=(string)2:4:7:1
    新时钟:GstSystemClock
    /GstPipeline:pipeline0/GstTIOVXISP:tiovxisp0.GstTIOVXMisoPad:src:cap = VIDEO/x-RAW、format=(string) NV12、width=(int) 1920、height=(int) 1200、framerate=(fractional) 30/1、 interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src:caps = video/x-raw、format=(string) NV12、width=(int) 1920、height=(int) 1200、framerate=(fractional) 30/1、 interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
    /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink:caps = video/x-raw、format=(string) NV12、width=(int) 1920、height=(int) 1200、framerate=(fractional) 30/1、 interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
    /GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink:caps = video/x-raw、format=(string) NV12、width=(int) 1920、height=(int) 1200、framerate=(fractional) 30/1、 interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink:caps = video/x-raw、format=(string) NV12、width=(int) 1920、height=(int) 1200、framerate=(fractional) 30/1、 interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
    /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:src:caps = image/jpeg、width=(int) 1920、height=(int) 1200、pixel-Aspect-ratio=(fractional) 1/1、framerate=(fractional) 30/1、 interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
    /GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink:caps = image/jpeg、width=(int) 1920、height=(int) 1200、pixel-Aspect-ratio=(fractional) 1/1、framerate=(fractional) 30/1、 interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
    重新分配延迟...
    /GstPipeline:pipeline0/v4l2jpegenc:v4l2jpegenc0.GstPad:sink:cap = video/x-raw、format=(string) NV12、width=(int) 1920、height=(int) 1200、framerate=(fractional) 30/1、 interlace-mode=(string)progressive, colorimetry=(string)1:4:7:1
    重新分配延迟...
    0:00:00.3/99:99:99。

    ==========================================================================
    在 0:00:00.3/99:99:99之后。 如果我删除队列元素、则无法增加值、然后它会正常工作。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jaimin:

    您是否使用最新的 SDK 发布的软件来测试这些内容? 您是否也发现 IMX219摄像头传感器出现问题?

    此致、

    Suren

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Suren:

    我们使用的是 SDK 版本9.0。 我已经通过队列元素验证了命令、并且 IMX219正在工作。 但在这方面、也无法获得我们设置的 fps。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Jaimin:

    是否可以关闭? 您是否尝试过并检查 fpsdisplaysink 显示正确的 FPS。

    此致、

    Suren