我想摄取一个m3u8流到运动视频(MKV格式)。我编译了kvssink插件,但是gstreamer失败了,错误未知。
也许我需要在发送到kvssink之前以某种方式转换流?有人能对这一点发表意见吗?
命令:
gst-launch-1.0 souphttpsrc location=http://devimages.apple.com/iphone/samples/bipbop/gear4/prog_index.m3u8 ! hlsdemux ! video/x-h264, format=avc,alignment=au ! h264parse ! kvssink stream-name="my-stream" storage-size=128 access-key="<key>" secret-key="<secret>"错误
Stream is ready
Pipeline is live and does not need PREROLL ...
Got context from element 'souphttpsrc0': gst.soup.session=context, session=(SoupSession)NULL, force=(boolean)false;
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstHLSDemux:hlsdemux0: Internal data stream error.
Additional debug info:
gstadaptivedemux.c(2531): _src_chain (): /GstPipeline:pipeline0/GstHLSDemux:hlsdemux0:
streaming stopped, reason not-negotiated (-4)
[INFO ] [05-04-2020 10:44:30:735.727 GMT] stopKinesisVideoStreamSync(): Synchronously stopping Kinesis Video Stream 000055d1f527ef50.更新
在进行了小的更改之后,它现在可以用于fakesink,但是仍然会得到kvssink的一个错误。
gst-launch-1.0 souphttpsrc location=http://devimages.apple.com/iphone/samples/bipbop/gear4/prog_index.m3u8 ! hlsdemux ! tsdemux ! queue ! video/x-h264 ! h264parse ! kvssink stream-name="my-stream" storage-size=128 access-key="<key>" secret-key="<secret>"错误
[ERROR] [05-04-2020 18:33:57:145.773 GMT] Failed to get the size of the buffer for hex decoding the codec private data with: 3
ERROR: from element /GstPipeline:pipeline0/GstKvsSink:kvssink0: GStreamer encountered a general stream error.
Additional debug info:
/home/ubuntu/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-gstreamer-plugin/src/gstkvssink.cpp(947): gst_kvs_sink_handle_sink_event (): /GstPipeline:pipeline0/GstKvsSink:kvssink0:发布于 2020-04-05 18:25:53
故障发生在HLS demux元素中。您可以尝试让您的GStreamer管道与fakesink一起工作,一旦工作正常,您可以尝试链接KVS插件。
与KVS插件相关的问题可以在GitHub问题中发布:https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues。
发布于 2020-04-05 17:59:58
video/x-h264, format=avc,alignment=au,我认为你不能就这样口授帽子。它只会阻碍汽车谈判的上限。
另外,你似乎没有H.264解码器。
发布于 2020-04-05 21:34:52
问题解决了,似乎是当前kvssink版本中的一个问题,随着旧版本的提交,它可以工作。
请参阅https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp/issues/396
https://stackoverflow.com/questions/61046778
复制相似问题