Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Kevin Godell kevinGodell

🎯
Focusing
View GitHub Profile
@kevinGodell
kevinGodell / ffmpeg.sh
Created Aug 2, 2020
testing ffmpeg mp4 encryption
View ffmpeg.sh
#!/bin/bash
# convert, encrypt, decrypt, probe
echo "Hello ffmpeg mp4 encryption!"
echo -e "\n---------- convert wav to mp4 ----------\n"
ffmpeg -y -i long_input_44100.wav long_input_44100.mp4
echo -e "\n---------- encrypt mp4 ----------\n"
@kevinGodell
kevinGodell / memdjpeg.c
Created Apr 8, 2018 — forked from PhirePhly/memdjpeg.c
A bare-bones example of how to use jpeglib to decompress a jpg in memory.
View memdjpeg.c
// memdjpeg - A super simple example of how to decode a jpeg in memory
// Kenneth Finnegan, 2012
// blog.thelifeofkenneth.com
//
// After installing jpeglib, compile with:
// cc memdjpeg.c -ljpeg -o memdjpeg
//
// Run with:
// ./memdjpeg filename.jpg
//
@kevinGodell
kevinGodell / appveyor.yml
Created Feb 13, 2018
Appveyor deployment install ffmpeg
View appveyor.yml
image: Visual Studio 2017
environment:
ffmpeg_download: https://ffmpeg.zeranoe.com/builds/
matrix:
- platform: x64
nodejs_version: LTS
ffmpeg_version: 3.4.1
ffmpeg_platform: win64
@kevinGodell
kevinGodell / .travis.yml
Created Feb 13, 2018
Travis delpoyment install ffmpeg
View .travis.yml
language: node_js
node_js: node
os:
- linux
- osx
sudo: required
dist: trusty
before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:mc3man/trusty-media; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
@kevinGodell
kevinGodell / ffmpegToWeb.js
Created Oct 29, 2017 — forked from moeiscool/ffmpegToWeb.js
FFMPEG to Web Browser with Express, Socket.IO and JSMPEG
View ffmpegToWeb.js
// Shinobi (http://shinobi.video) - FFMPEG H.264 over HTTP Test
// How to Use raw H.264 (Simulated RTSP)
// 1. Start with `node ffmpegToWeb.js`
// 2. Get the IP address of the computer where you did step 1. Example : 127.0.0.1
// 3. Open VLC and "Open Network Stream".
// 4. Input the following without quotes : `http://127.0.0.1:8001/h264` and start.
var child = require('child_process');
var io = require('socket.io');
var events = require('events');
@kevinGodell
kevinGodell / manifest.mpd
Created Oct 4, 2017
sample mpeg dash manifest
View manifest.mpd
<?xml version="1.0" encoding="utf-8"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:mpeg:dash:schema:mpd:2011"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd"
profiles="urn:mpeg:dash:profile:isoff-live:2011"
type="dynamic"
minimumUpdatePeriod="PT3S"
suggestedPresentationDelay="PT3S"
availabilityStartTime="2017-10-04T03:31:48"
@kevinGodell
kevinGodell / mpeg-dash-ffmpeg-dashjs.md
Created Sep 20, 2017
Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.
View mpeg-dash-ffmpeg-dashjs.md

Live streaming mpeg-dash video using ffmpeg and dash.js

Use ffmpeg to connect to an ip cctv camera and create video files on the fly that can be viewed in an mpeg-dash compatible browser using dash.js and an html5 video element.

Prerequisites

A linux server, such as Ubuntu

Apache web server installed, running, and reachable via its ip address
You can’t perform that action at this time.