$ raspivid -t 0 -w 1280 -h 720 -fps 25 --codec H264 --intra 75 --inline --flush -o - | ffmpeg -i pipe:0 -codec copy -f v4l2 /dev/video1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright 2023 moritzmhmk. | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files (the “Software”), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
* and/or sell copies of the Software, and to permit persons to whom the | |
* Software is furnished to do so, subject to the following conditions: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const noble = require('@abandonware/noble'); | |
noble.on('stateChange', async (state) => { | |
if (state === 'poweredOn') { | |
await noble.startScanningAsync([], false); | |
} | |
}); | |
noble.on('discover', async (peripheral) => { | |
if (peripheral.address !== "d5:c4:31:13:41:98") return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- source: https://thoughtbot.com/blog/debugging-dom-event-handlers-in-elm | |
loggingDecoder : Decoder a -> Decoder a | |
loggingDecoder realDecoder = | |
Decode.value | |
|> Decode.andThen | |
(\event -> | |
case Decode.decodeValue realDecoder event of | |
Ok decoded -> | |
Decode.succeed decoded |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Cover for the HiFiBerry Case when used with the HiFiBerry Digi+.
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
run.sh
#!/bin/bash
xset s off &
xset -dpms &
xset s noblank &
unclutter &
chromium-browser\
--window-position=0,0\
--window-size=$(cat /sys/class/graphics/fb0/virtual_size)\
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Set up loopback cameras | |
[Service] | |
ExecStartPre=/sbin/modprobe v4l2loopback devices=3 | |
ExecStart=/usr/bin/ffmpeg -f video4linux2 -input_format yuv420p -video_size 1280x720 -i /dev/video0 -codec copy -f v4l2 /dev/video1 -codec copy -f v4l2 /dev/video2 -codec copy -f v4l2 /dev/video3 | |
Restart=always | |
RestartSec=2 | |
[Install] |
Find the latest LTS release. Currently the LTS version is 10.x
and the latest release can be found here
(choose the file ending with -linux-armv6l.tar.xz
).
Download that file: wget https://nodejs.org/dist/latest-v10.x/node-v10.16.0-linux-armv6l.tar.xz
Unpack the file: tar -xvf node-v10.16.0-linux-armv6l.tar.xz
Copy the content over to /usr/local
: sudo cp -r node-v10.16.0-linux-armv6l/* /usr/local/
NewerOlder