sobota 14. května 2016

dash cam to timelapse

My dash cam produces AVI video file every 5 minutes. I decided to create timelapse from the videos on linux using ffmpeg. Following the inspiration
I created following script

for f in *.AVI; do echo "file $f" >> files.txt; done 

[a file called "files.txt" is created] 

#create scaled timelapse 
ffmpeg -f concat -i files.txt -an -vcodec libx264 -filter:v 'setpts=0.05*PTS,scale=640:480' dashcam.mov

Happlink (formerly Plug-Up) Security KEY on Fedora 23

After several hours I managd to get Plug-Up SecureKEY U2F token working on Fedora 23. Some Ubuntu ubased advisory recommends to add an udev rule in a form of [not working]:

SUBSYSTEM=="usb", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0", MODE="0660", GROUP="[the right  group user is member of]"  

After many minutes of google-fu I managed to get it working. The magic spell is this:

# Happlink (formerly Plug-Up) Security KEY
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2581", ATTRS{idProduct}=="f1d0", TAG+="uaccess"


and the spell should be written into /etc/udev/rules.d/10-sec-key.rules

then run udevadm trigger


Sources:

http://www.ha-obsession.net/2016/04/fedora-23-kde-using-gpg-yubikey4-pcscd.html

http://askubuntu.com/questions/674064/happlink-plug-up-fido-u2f-security-key-why-it-doesnt-work-immediately-in-ubuntu