Skip to content

Instantly share code, notes, and snippets.

View rmtuckerphx's full-sized avatar

Mark Tucker rmtuckerphx

View GitHub Profile
@rmtuckerphx
rmtuckerphx / aws-kinesis-stream.js
Created January 26, 2023 20:30 — forked from roccomuso/aws-kinesis-stream.js
Aws Kinesis stream upload example in JS - get rtsp stream with ffmpeg and use putMedia to upload it on Amazon Kinesis
const ffmpeg = require('fluent-ffmpeg')
const parseUrl = require('url').parse
// Polyfill, modifying the global Object
require('es6-object-assign').polyfill()
global.Promise = require('es6-promise').Promise
const aws4 = require('aws4')
const axios = require('axios')
const CancelToken = axios.CancelToken
const fs = require('fs')
const PipeViewer = require('pv')