This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var aws = require('aws-sdk'); | |
var elastictranscoder = new aws.ElasticTranscoder(); | |
function basename(path) { | |
return path.split('/').reverse()[0].split('.')[0]; | |
} | |
exports.handler = (event, context) => { | |
console.log('Received event:', JSON.stringify(event, null, 2)); | |
var key = event.Records[0].s3.object.key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request'); | |
const DATA_API = 'https://data.example.com/api'; | |
const DATA_API_KEY = process.env.API_KEY; | |
exports.search = function(event, context, callback) { | |
const targets = [ 'ID1', 'ID2', 'ID3' ]; | |
callback(null, targets); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<video style="width: 640px; height: 360px; border: solid 1px;"></video> | |
<script> | |
var queue = []; | |
// Check that browser has support for media codec | |
var mimeCodec = 'video/mp4; codecs="avc1.4D401F"'; | |
console.log(MediaSource.isTypeSupported(mimeCodec)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://player.eyevinn.technology/v0.2.4/build/eyevinn-html-player.css"> | |
<style> | |
body { background-color: black; } | |
#status { | |
font-size: 20pt; | |
font-family: Verdana; | |
height: 40px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This NodeJS gist creates a virtual linear channel (VOD2Live) with one ad break (105 sec) and a trailer, | |
* both on loop. | |
* | |
* npm install --save eyevinn-channel-engine | |
* node server.js | |
* | |
* Then play the HLS from: | |
* http://localhost:8000/live/master.m3u8?channel=1 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This gist shows an example of an ingest application based on Eyevinn Ingest Application Framework [1] plugins | |
// to watch a folder for a new MP4-file and upload and transcode on AWS using AWS MediaConvert. | |
// Copyright 2021 Jonas Birmé | |
// | |
// [1] https://eyevinn.github.io/ingest-application-framework/ | |
const { AwsUploadModule } = require("@eyevinn/iaf-plugin-aws"); | |
const { watch } = require("chokidar"); | |
const { createReadStream } = require("fs"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ node hls-repeat.js | |
// Example (2 reps): http://localhost:8000/slate-consuo2.mp4/master.m3u8?r=2 | |
// where r is how many times the VOD to be repeated | |
const { HLSProxy } = require("@eyevinn/hls-proxy"); | |
const HLSRepeatVod = require("@eyevinn/hls-repeat"); | |
const proxy = new HLSProxy({ | |
originHandler: async () => { | |
// Origin where the VOD is found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* gcc -Wall gst-tsdemux.c -o gst-tsdemux $(pkg-config --cflags --libs gstreamer-1.0) | |
*/ | |
#include <gst/gst.h> | |
#include "utils.h" | |
typedef struct _CustomData { | |
GstElement *pipeline; | |
GstElement *source; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@exampledev/[email protected]/new.min.css"> | |
</head> | |
<body> | |
<video autoplay muted playsinline controls></video> | |
<script type="text/javascript"> | |
const url = "https://<whpp-url>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://maitv-vod.lab.eyevinn.technology/UNHINGED_Trailer_2020.mp4/master.m3u8 |
OlderNewer