cat /foo/bar/file.txt | openssl enc -aes-256-cbc -base64 | nc termbin.com 9999
- Enter password twice (quickly), note
termbin.com
URL
curl -s http://termbin.com/{id} | openssl enc -aes-256-cbc -base64 -d > file.txt
const fs = require('fs'); | |
const axios = require('axios'); | |
const FormData = require('form-data'); | |
// Function to read the image file as a buffer | |
const readImageFile = (filePath) => { | |
return new Promise((resolve, reject) => { | |
fs.readFile(filePath, (err, data) => { | |
if (err) { | |
reject(err); |
// Constants | |
const TOKEN = `<YourTokenHere>`; | |
const BASE_URL = `https://api.telegram.org/bot${TOKEN}`; | |
const CHAT_ID = '<ChatId>'; | |
const DEPLOYED_URL = '<YourScriptDeployedURL>'; | |
const SUM_CELL = 'G2'; | |
const METHODS = { | |
SEND_MESSAGE: 'sendMessage', | |
SET_WEBHOOK: 'setWebhook', |
The full FFmpeg command to copy-paste:
ffmpeg -hide_banner -y -loglevel error -rtsp_transport tcp -use_wallclock_as_timestamps 1 -i rtsp://username:[email protected]:554/stream1 -vcodec copy -acodec copy -f segment -reset_timestamps 1 -segment_time 900 -segment_format mkv -segment_atclocktime 1 -strftime 1 %Y%m%dT%H%M%S.mkv
The input stream URL is for a Tapo C310 camera with the RTSP username and password "username" and "password".
I've put a fair bit of experimentation into the settings in this command. I've included the what and whys below, as well as a camera recommendation for RTSP.