OS: Ubuntu 18.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is 192.168.0.111
Your local IP network is 192.168.0.0/24
Install aria2 package:
Build FFmpeg with Intel's QSV enablement on an Intel-based validation test-bed:
Build platform: Ubuntu 18.04LTS
Ensure the platform is up to date:
sudo apt update && sudo apt -y upgrade && sudo apt -y dist-upgrade
Install baseline dependencies first (inclusive of OpenCL headers+)
| #!/bin/sh | |
| sleep 5 | |
| ffmpeg -re -f mjpeg -r 10 -i "http://localhost/?action=stream" -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -acodec aac -ab 1k -strict experimental -s 640x360 -vcodec h264 -pix_fmt yuv420p -g 20 -vb 500k -preset ultrafast -crf 31 -r 10 -f flv "rtmp://a.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx" 2> /home/pi/ffmpeg.log |
This tutorial will work you through steps of configuring an FFmpeg build tailored for RTMP streaming on macOS. At first I think of making it support general live streaming, with additional protocols like HLS, but to keep things simple let's stick with RTMP for now. (Anyway, I do include HLS in the protocol list as well as some related bitstream filters but it's untested.)
The built FFmpeg executable should
| """ | |
| 12 hour colab session buat lab komputer | |
| """ | |
| import webbrowser | |
| import string | |
| import time | |
| import random | |
| import fire | |
| import pyautogui | |
| import sys |
| #!/bin/bash | |
| echo $'\n' | |
| echo '===Step 1 of 3: Asking for Storage Permission===' | |
| sleep 2; | |
| termux-setup-storage | |
| sleep 2; | |
| #!/bin/bash | |
| sudo apt -y install build-essential autoconf automake cmake libtool git checkinstall | |
| mkdir ffmpegtemp | |
| cd ffmpegtemp | |
| mkdir aom | |
| cd aom | |
| git clone https://aomedia.googlesource.com/aom |
| #!/usr/bin/env bash | |
| function get_headphones_index() { | |
| echo $(pacmd list-cards | grep bluez_card -B1 | grep index | awk '{print $2}') | |
| } | |
| function get_headphones_mac_address() { | |
| local temp=$(pacmd list-cards | grep bluez_card -C20 | grep 'device.string' | cut -d' ' -f 3) | |
| temp="${temp%\"}" | |
| temp="${temp#\"}" |
| REM Download ffmpeg from https://www.ffmpeg.org/download.html. | |
| REM Place ffmpeg.exe in the folder with the vob files | |
| REM Merge all vob files into one | |
| REM VTS_01_0.VOB is usually the menu which you may not want | |
| if exist VTS_01_7.VOB ( | |
| copy /b VTS_01_1.VOB+VTS_01_2.VOB+VTS_01_3.VOB+VTS_01_4.VOB+VTS_01_5.VOB+VTS_01_6.VOB+VTS_01_7.VOB ConCat.vob | |
| ) else if exist VTS_01_6.VOB ( | |
| copy /b VTS_01_1.VOB+VTS_01_2.VOB+VTS_01_3.VOB+VTS_01_4.VOB+VTS_01_5.VOB+VTS_01_6.VOB ConCat.vob | |
| ) else if exist VTS_01_5.VOB ( |
| import click | |
| from pathlib import Path | |
| from subprocess import call, check_output | |
| from tqdm import tqdm | |
| @click.command() | |
| @click.argument('directory', type=click.Path(exists=True)) | |
| @click.option('--recursive', is_flag=True, help='Recursive') | |
| @click.option('--file-ext', help='File format to process') | |
| def main(directory, file_ext='mp4', recursive=False): |