A pretty neat server status monitoring

Created this simple encoder script while trying out daala


  • Select file
  • Number of frames to skip
  • Number of frames to encode
  • Uncompressed y4m output file
  • Lossless png file from daala encode (uses y4m file from dump_video)
  • Lossless png file from source
  • Linux Bash Version
  • and by unpopular demand a Batch Version for Windows


  • encoder expects y4m, so you need to ffmpeg -pix_fmt yuv420p -i any-source-video.webm output.y4m
  • ffmpeg needed for png frame extracting

Install Linux

cd daala/examples/

wget https://raw.githubusercontent.com/nwgat/scripts/master/nwgatdaalaenc.sh

chmod +x nwgatdaalaenc.sh


Install windows

Download https://raw.githubusercontent.com/nwgat/scripts/master/nwgatdaalaenc-win.bat

copy to daala folder

Run it


  • Need to figure out why echo says its off on windows
  • Inputing nothing into frames/encodeframes on windows fails, need to figure that out
  • Perhaps more options to say yes or no, but this works for me

pretty simple with tc command
login to router with ssh/telnet

where wl0.1 is the ssid of your guest network.
will vary if you have configured more than one

to limit to 5mbit until you reboot

tc qdisc add dev wl0.1 handle 1: root htb default 11

tc class add dev wl0.1 parent 1: classid 1:1 htb rate 5mbit

tc class add dev wl0.1 parent 1:1 classid 1:11 htb rate 5mbit

to remove the settings use
tc qdisc del dev wl0.1 root

to limit to 5mbit permanently

echo tc qdisc add dev wl0.1 handle 1: root htb default 11 >> /jffs/scripts/wan-start

echo tc class add dev wl0.1 parent 1: classid 1:1 htb rate 5mbit >> /jffs/scripts/wan-start

echo tc class add dev wl0.1 parent 1:1 classid 1:11 htb rate 5mbit >> /jffs/scripts/wan-start


Only downstream, i have to figure out upstream :(
You might need to enable jffs and add them to /jffs/scripts/init-start to be presistent

more info about tc

Crop Real 4K to UltraHD 4096>3840

ffmpeg -i A001_C014_01217G.4k.y4m -vf "crop=3840:2160:128:0" outputgirl.2160p.y4m

Resize to 1080p

ffmpeg -i outputgirl.2160p.y4m -vf scale=1920:-1 outputgirl.1080p.y4m

Resize to 720p

ffmpeg -i outputgirl.2160p.y4m -vf scale=1280:-1 outputgirl.720p.y4m

Convert source to YUU4MPEG2

ffmpeg -pix_fmt yuv420p -i any-source-video.webm output.y4m

Convert a sequence of images to YUU4MPEG

ffmpeg -f image2 -i "A004_C001_0122K7.00%05d.png" -pix_fmt yuv420p ouput.y4m

extract a single frame

ffmpeg -i input.avi -f image2 -ss 14.342 -vframes 1 frame.png

extract a single frame (altenative method)

ffmpeg -i input.y4m -f image2 -vf select="gte(n\, 1)" -vframes 1 frame.png

extract 1 frame after frame 100

ffmpeg -i input.y4m -f image2 -vf select="gte(n\, 100)" -vframes 1 frame.png

Asmedia Windows 10 Drivers for x64/x86

Asmedia ASM1040 ASM1041 ASM1042 ASM1142
USB 3.0 & USB 3.1

%ASMEDIA_Product_1%=ASMEDIA_Product1_Install,PCI\VEN_1B21&DEV_1040&REV_00 %ASMEDIA_Product_2%=ASMEDIA_Product2_Install,PCI\VEN_1B21&DEV_1040&REV_01 %ASMEDIA_Product_3%=ASMEDIA_Product3_Install,PCI\VEN_1B21&DEV_1040&REV_02 %ASMEDIA_Product_4%=ASMEDIA_Product4_Install,PCI\VEN_1B21&DEV_1041&REV_00 %ASMEDIA_Product_5%=ASMEDIA_Product5_Install,PCI\VEN_1B21&DEV_1041&REV_01 %ASMEDIA_Product_6%=ASMEDIA_Product6_Install,PCI\VEN_1B21&DEV_1041&REV_02 %ASMEDIA_Product_7%=ASMEDIA_Product7_Install,PCI\VEN_1B21&DEV_1042&REV_00 %ASMEDIA_Product_8%=ASMEDIA_Product8_Install,PCI\VEN_1B21&DEV_1042&REV_01 %ASMEDIA_Product_9%=ASMEDIA_Product9_Install,PCI\VEN_1B21&DEV_1042&REV_02 %ASMEDIA_Product_10%=ASMEDIA_Product10_Install,PCI\VEN_1B21&DEV_1142&REV_00 %ASMEDIA_Product_11%=ASMEDIA_Product11_Install,PCI\VEN_1B21&DEV_1240&REV_00 %ASMEDIA_Product_12%=ASMEDIA_Product12_Install,PCI\VEN_1B21&DEV_1241&REV_00 %ASMEDIA_Product_13%=ASMEDIA_Product13_Install,PCI\VEN_1B21&DEV_1242&REV_00 %ASMEDIA_Product_14%=ASMEDIA_Product14_Install,PCI\VEN_1B21&DEV_1042&SUBSYS_84881043&REV_00 %ASMEDIA_Product_15%=ASMEDIA_Product15_Install,PCI\VEN_1B21&DEV_1042&SUBSYS_84881043&REV_01 %ASMEDIA_Product_16%=ASMEDIA_Product16_Install,PCI\VEN_1B21&DEV_1042&SUBSYS_84881043&REV_02 %ASMEDIA_Product_17%=ASMEDIA_Product17_Install,PCI\VEN_1B21&DEV_1142&SUB

The NetVC has a new altenative video codec

"The Thor video codec is a block-based hybrid video codec similar in structure to widespread standards."

Encoder: ./Thorenc -cf config.txt

Decoder: ./Thordec str.bit out.yuv

Source Code


Windows x64 Builds

a new installment in the quick & easy series!

Tinc VPN 1.1 on ASUSWRT-Merlin
with windows client (repeat client step to add more clients)

setup tinc and open firewall

echo #!/bin/sh >> /jffs/scripts/init-start

echo modprobe tun >> /jffs/scripts/init-start

echo /jffs/sbin/tincd -n vpn >> /jffs/scripts/init-start

echo iptables -I INPUT -p tcp --destination-port 655 -j ACCEPT >> /jffs/scripts/firewall-start

chmod a+rx /jffs/scripts/*

Go to Administration - System in Router Admin Page
and set Enable JFFS custom scripts and configs to Yes

Load tun module temporarily

modprobe tun

Install Tinc VPN

wget http://files.lancethepants.com/Binaries/tinc/arm/tinc%201.1pre11/tinc -O /jffs/sbin/tinc

wget http://files.lancethepants.com/Binaries/tinc/arm/tinc%201.1pre11/tincd -O /jffs/sbin/tincd

chmod +x /jffs/sbin/tinc*

Configure master node (router)

/jffs/sbin/tinc -n vpn init router

/jffs/sbin/tinc -n vpn add subnet

/jffs/sbin/tinc -n vpn add address=myrouter.domain.ninja-or-ip

echo ifconfig $INTERFACE netmask > /jffs/etc/tinc/vpn/tinc-up

Configure client node (on windows computer)

if you want to add more clients, change name and ip

Download & Install Tinc

Navigate to C:\Program Files (x86)\tinc
Click on File > Open Command Prompt > As Administrator

tinc -n vpn init client1

tinc -n vpn add connectto router

tinc -n vpn add subnet

setup ethernet interface

cd tap-win64


cd ..

go to Control Panel\Network and Internet\Network Connections
(note the name of the tap adapter)

netsh interface set interface name = "insert name of tap adapter" newname = "tinc"

netsh interface ip set address "tinc" static

Exchange Keys to the kingdom

Install winscp on client1 and run it

login with these settings
File Protocol: SCP
login with ssh user/password

Open Syncronize with CTRL + S
Local: C:\Program Files (x86)\tinc\vpn\hosts\
Remote: //jffs/etc/tinc/vpn/hosts
Direction/Target to Both
Click OK and OK

test it with


/jffs/sbin/tincd -n vpn -D -d3


tincd -n vpn -D -d3

Run as daemon (on both router and client)

./jffs/sbin/tincd -n vpn

“C:\Program Files (x86)\tinc\tincd -n vpn”

thanks to lancethepants for binaries, tinc for vpn
asus for awesome hardware and merlin for his firmware

amd is furius again ;)


got more? comment!

Here is a very short long list of fury X reviews










found more? post them in the comment and i will update the list

Like my Content? Try out DigitalOCean SSD VPS for 2 Months free :)
Proudly published with Ghost | Theme based on Draugur
Creative Commons Licence