Skip to content

Instantly share code, notes, and snippets.

@rrymm
rrymm / nginx.conf
Created August 8, 2018 01:30
Nginx transcode example using ffmpeg and two applications
#user nobody;
worker_processes 1;
error_log logs/rtmp_error.log debug;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
@rrymm
rrymm / README.md
Created August 13, 2018 02:38 — forked from mrbar42/README.md
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
@rrymm
rrymm / README.md
Created August 14, 2018 03:21 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links

@rrymm
rrymm / firewall.sh
Created October 25, 2018 02:31 — forked from mshroyer/firewall.sh
iptables firewall script for buildserv
#!/bin/sh
### BEGIN INIT INFO
# Provides: firewall
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: iptables firewall
# Description: Custom iptables firewall
@rrymm
rrymm / LOGIN ANDROID
Created November 26, 2018 00:26 — forked from chukitow/LOGIN ANDROID
this is a login in android using HTTP,POST,JSON
package com.example.situc;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.Header;
import org.apache.http.HttpEntity;

Mirth Server Setup

First create ec2 Ubuntu instance. This can be 14.04 now on MirthConnect 3.2 and above. Hurray!

Great thanks for the original guide: https://gist.github.com/jgautsch/9157402

# Update Ubuntu
sudo aptitude update

# Safe upgrade of Ubuntu
sudo aptitude safe-upgrade
@rrymm
rrymm / ExoPlayerDemoFragment.java
Created February 5, 2019 09:49 — forked from bapspatil/ExoPlayerDemoFragment.java
Generic code to set up ExoPlayer in a Fragment
/*
** Created by bapspatil
*/
public class ExoPlayerDemoFragment extends Fragment {
@BindView(R.id.video_exoplayer_view) SimpleExoPlayerView mPlayerView;
private SimpleExoPlayer mPlayer;
private Unbinder unbinder;
public ExoPlayerDemoFragment() {
@rrymm
rrymm / irEmitterApp
Created April 15, 2019 21:29 — forked from francis2110/irEmitterApp
application for send infrared codes to LG tv with arduino
#include <IRremote.h>
IRsend irsend;
#define onOffReceived 10
#define energyRcv 11
#define avMode 12
#define input 13
#define tvRad 14
#define list 15
#define quickView 16
#define volumeUp 17
@rrymm
rrymm / LG infrared codes
Created April 15, 2019 21:32 — forked from francis2110/LG infrared codes
Lg infrared codes for making your own remote
on-off->20DF10EF
energy->20DFA956
av. mode->20DF0CF3
input->20DFD02F
tv/rad->20DF0FF0
1->20DF8877
2->20DF48B7
3->20DFC837
4->20DF28D7
5->20DFA857