I try to use the AWS to create an POC that show and record videos via RTSP stream in onvifmode but, the AWS stream doesn’t show the video. The stream is connected with AWS but they give me a ‘time sync’ error.
I just use this case here (perfect for my purpose):
import * as ec2 from "aws-cdk-lib/aws-ec2";
import * as cdk from 'aws-cdk-lib';
import * as iam from 'aws-cdk-lib/aws-iam';
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager';
import * as path from 'path';
import { Asset } from 'aws-cdk-lib/aws-s3-assets';
import { Construct } from 'constructs';
export class Ec2CdkStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const myIpAddressParam = new cdk.CfnParameter(this, 'myIpAddress', { type: 'String', description: 'Your ip address for use in the EC2 instance security group. Can be retrieved by visiting http://checkip.amazonaws.com/'});
const myIpAddress = myIpAddressParam.valueAsString;
console.log(`adding ip address to security group: ${myIpAddress}`)
const keyPairParam = new cdk.CfnParameter(this, 'keyPairName', { type: 'String', description: 'The name of the Amazon EC2 key pair.'});
const keyPairName = keyPairParam.valueAsString;
console.log(`using EC2 instance key pair name: ${keyPairName}`)
This file has been truncated. show original
So, I don’t understand why the video doesn’t work.
That’s the video link. Just for test purposes. This is just a watch.
rtsp://admin:e2m@security@177.62.254.66:4520/onvif/profile1/media.smp
If I remove the onvif protocol, things works fine.
Can anybody help in some way?