【问题标题】:Kinesis Video Stream C++ ErrorKinesis Video Stream C++ 错误
【发布时间】:2018-01-24 16:12:22
【问题描述】:

还有其他人在 kinesis video cpp Gstreamer 示例中看到此错误吗?

我尝试了很多不同的途径,但似乎无法找到有效的解决方法!

非常感谢任何帮助!

DEBUG - Stream is ready
Error received from element source-actual-src-avfvide: Internal data stream error.
Debugging information: gstbasesrc.c(2939): void gst_base_src_loop(GstPad *) (): /GstPipeline:test-pipeline/GstAutoVideoSrc:source/GstAVFVideoSrc:source-actual-src-avfvide:
streaming stopped, reason not-negotiated (-4)
INFO - Freeing Kinesis Video Stream test

freeKinesisVideoStream(): Freeing Kinesis Video stream.DEBUG - streamDataAvailableHandler invoked
DEBUG - streamClosedHandler invoked

freeKinesisVideoClient(): Freeing Kinesis Video Client
commonHeapDebugCheckAllocator(): Heap is initialized
commonHeapDebugCheckAllocator(): Heap limit: 
536870912
commonHeapDebugCheckAllocator(): Heap size: 
0
commonHeapDebugCheckAllocator(): Number of allocations: 
0
aivHeapDebugCheckAllocator(): Allocated blocks pointer: 
0x0
aivHeapDebugCheckAllocator(): *******************************************
aivHeapDebugCheckAllocator(): *******************************************
aivHeapDebugCheckAllocator(): Free blocks pointer: 
0x107949000
aivHeapDebugCheckAllocator(): *******************************************
aivHeapDebugCheckAllocator(): Block:
0x107949000 size:
536870872
aivHeapDebugCheckAllocator(): *******************************************
heapRelease(): Freeing native heap.INFO - Curl shutdown

【问题讨论】:

    标签: amazon-kinesis


    【解决方案1】:

    查看源元素,您看起来就像在 Mac 上一样。您可以在开始运行 sdk 之前尝试 export GST_DEBUG=4 并查找包含 creating caps event 的行。在同一行上,您应该会看到类似 width=(int)1280, height=(int)720 的内容,这是管道中正在协商的视频流的分辨率。在调试消息中查找此类宽度和高度信息的第一次出现。它们看起来像:

    avfvideosrc avfvideosrc.m:906:-[GstAVFVideoSrcImpl setCaps:]_block_invoke:<source-actual-src-avfvide> width: 1280 height: 720 format: UYVY
    

    这是相机支持的分辨率。如果此分辨率与下游元素中设置的分辨率不一致,则会出现not-negotiated 错误。在您的情况下,下游元素可能未设置 720p 的分辨率。您可以通过将 kinesis_video_gstreamer_sample_app.cpp 中的第 347、348、367、368 行更改为

    来解决此问题
    "width", GST_TYPE_INT_RANGE, 1280, 1920,
    "height", GST_TYPE_INT_RANGE, 720, 1080,
    

    更改后的值表示解决协商的下限。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-24
      相关资源
      最近更新 更多