sudo yum install -y gcc-c++ make curl
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -
sudo yum list available nodejs
sudo yum install -y nodejs
node -v
npm -vWSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow this guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.
- A Device with any version and Edition of Windows 11 installed.
- Internet Connection.
- Hyper-V enabled.
| #!/bin/bash | |
| # Automatically compile and install FFMPEG with NVIDIA hardware acceleration on Debian | |
| # Based on https://www.tal.org/tutorials/ffmpeg_nvidia_encode | |
| # Verified working on Debian 10 and 11 | |
| # Abort on error | |
| set -e | |
| suite=stable |
| ffmpeg version 2020-11-29-git-f194cedfe6-full_build-www.gyan.dev Copyright (c) 2000-2020 the FFmpeg developers | |
| built with gcc 10.2.0 (Rev5, Built by MSYS2 project) | |
| configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable |
| #!/usr/bin/env bash | |
| START_TIME=$SECONDS | |
| set -e | |
| echo "-----START GENERATING HLS STREAM-----" | |
| # Usage create-vod-hls-gpu.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=( |
| #!/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=( |
| ffmpeg -i "c:/videos/sample.mp4 | |
| -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 | |
| -c:v libx264 -crf 22 -c:a aac -ar 48000 | |
| -filter:v:0 scale=w=480:h=360 -maxrate:v:0 600k -b:a:0 64k | |
| -filter:v:1 scale=w=640:h=480 -maxrate:v:1 900k -b:a:1 128k | |
| -filter:v:2 scale=w=1280:h=720 -maxrate:v:2 900k -b:a:2 128k | |
| -var_stream_map "v:0,a:0,name:360p v:1,a:1,name:480p v:2,a:2,name:720p" | |
| -preset slow -hls_list_size 0 -threads 0 -f hls -hls_playlist_type event -hls_time 3 | |
| -hls_flags independent_segments -master_pl_name "name-pl.m3u8" | |
| "c:/videos/encoded/name-%v.m3u8" |
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
| cd\Program Files\Microsoft Office\Office16 | |
| cd\Program Files (x86)\Microsoft Office\Office16 | |
| cscript OSPP.VBS /sethst:kms.digiboy.ir | |
| cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
| slmgr.vbs /ckms |
Original guide with a standard build is here.
With this guide, I'm adding more instructions to enable support for NVIDIA CUVID and NVIDIA NPP for enhanced encode and decode performance.
First, prepare for the build and create the work space directory:
cd ~/