0

I am trying to use the amazon cli to get media from an active kinesis stream.

the command I am trying is:

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

but I get:

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

according to the docu, StartSelectorType is the only flag I really need?

Thanks

KillerSnail
  • 3,321
  • 11
  • 46
  • 64

1 Answers1

0

The get-media Command Reference says that you also need to provide an outfile:

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

See also: Boto3 kinesis video stream: Error when calling the GetMedia operation

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470