aws cli get media命令

时间:2018-08-17 08:26:55

标签: aws-cli amazon-kinesis

我正在尝试使用Amazon cli从活跃的运动学流中获取媒体。

我正在尝试的命令是:

 aws kinesis-video-media get-media --stream-name testStream --start-selector '{ "StartSelectorType":"NOW" }' --endpoint-url 'https://<code>.kinesisvideo.ap-northeast-1.amazonaws.com' 

但是我得到了

usage: aws [options] <command> <subcommand> [<subcommand> ...] 
[parameters]
To see help text, you can run:

  aws help
  aws <command> help
  aws <command> <subcommand> help
aws: error: too few arguments

根据文档,StartSelectorType是我真正需要的唯一标志吗?

谢谢

1 个答案:

答案 0 :(得分:0)

get-media Command Reference说,您还需要提供一个outfile

get-media
[--stream-name <value>]
[--stream-arn <value>]
--start-selector <value>
outfile <value>

另请参阅:Boto3 kinesis video stream: Error when calling the GetMedia operation