Skip to content

Instantly share code, notes, and snippets.

View lyarinet's full-sized avatar

Asif Agaria lyarinet

View GitHub Profile
@lyarinet
lyarinet / create-vod-hls.sh
Created September 28, 2021 18:59 — forked from maitrungduc1410/create-vod-hls.sh
Bash scripts to create VOD HLS stream with ffmpeg (Extended version)
#!/usr/bin/env bash
START_TIME=$SECONDS
set -e
echo "-----START GENERATING HLS STREAM-----"
# Usage create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]
[[ ! "${1}" ]] && echo "Usage: create-vod-hls.sh SOURCE_FILE [OUTPUT_NAME]" && exit 1
# comment/add lines here to control which renditions would be created
renditions=(
@lyarinet
lyarinet / README.md
Created August 29, 2021 08:43 — forked from mikoim/README.md
[Updated! Aug 14 2020] YouTube recommended encoding settings on ffmpeg (+ libx264)

Parameters

Container: MP4

Parameter YouTube recommends setting
-movflags faststart moov atom at the front of the file (Fast Start)

Video codec: H.264

@lyarinet
lyarinet / fcm.php
Created March 1, 2021 19:54 — forked from sab99r/fcm.php
PHP Function to Send FCM Message to Android
<?php
/*
Parameter Example
$data = array('post_id'=>'12345','post_title'=>'A Blog post');
$target = 'single tocken id or topic name';
or
$target = array('token1','token2','...'); // up to 1000 in one request
*/
public function sendMessage($data,$target){
//FCM api URL
@lyarinet
lyarinet / Firebase_push.php
Created March 1, 2021 19:42 — forked from nitinegoro/Firebase_push.php
Codeigniter Firebase Push Notification
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Single Sender FIrebase Push To Android
*
* @package Codeigniter
* @author Vicky Saputra <http://vicky.work
**/
class Firebase_push
{
@lyarinet
lyarinet / ubuntu_18_mail_server.md
Created June 27, 2020 08:01 — forked from emotality/ubuntu_18_mail_server.md
Ubuntu 18.04 Postfix with Dovecot mail server

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

@lyarinet
lyarinet / script.sh
Created May 23, 2019 09:22 — forked from phpcodertop/script.sh
install ipvtl trial and hack its trial
#!/bin/bash
echo "Downloading ipvtl Software \n"
cd /home
wget http://www.ipvideotrans.com/download/ipvtl_trial-x64.tar.xz
@lyarinet
lyarinet / tvh.sh
Created November 30, 2018 07:10 — forked from DaVukovic/tvh.sh
Installs tvheadend on Ubuntu machines
#!/bin/sh
# This script installs TVHeadend on your Ubuntu 16.04.x machine
#
# Exit-codes:
# exit 1 = no root rights
# exit 2 = not using Ubuntu 16.04
# exit 3 = TVHeadend already installed (exit in install-function)
# exit 4 = TVHeadend is not installed (exit in deinstall-function)
# exit 5 = TVHeadend repo already exists
@lyarinet
lyarinet / gist:d2a13d029ca9b5a18fe0d289d3c95d6d
Created September 8, 2018 12:55 — forked from oscarrenalias/gist:5504943
Retroarch.cfg configuration file for Retroarch in OpenELEC. Modifications to the default one: joystick settings, video and audio.
## Skeleton config file for RetroArch
# Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ...
# This will be overridden by explicit command line options.
savefile_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/
# Save all save states (*.state) to this directory.
# This will be overridden by explicit command line options.
savestate_directory =/storage/.xbmc/userdata/addon_data/emulators.retroarch/save/
@lyarinet
lyarinet / tetris_attack_netplay.md
Created September 7, 2018 04:08 — forked from nderscore/tetris_attack_netplay.md
Guide for configuring Retroarch with Snes9x Core for Tetris Attack netplay.

Tetris Attack

Tetris Attack Netplay Guide

Guide for configuring Retroarch with Snes9x Core for Tetris Attack netplay.

Last updated: 2017.08.13 by _nderscore