sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
# Set the maximum number of open file descriptors
ulimit -n 20000000
# Set the memory size for TCP with minimum, default and maximum thresholds
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
This file contains hidden or 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
| ##### How to compile ffmpeg + x264 using Visual Studio 2015 ##### | |
| ##### Building this way will make the DLLs compatible with SEH, so there will be no need to use /SAFESEH:NO when compiling your code ##### | |
| ##### SOURCES: | |
| ### https://pracucci.com/compile-ffmpeg-on-windows-with-visual-studio-compiler.html | |
| ### https://gist.github.com/sailfish009/8d6761474f87c074703e187a2bc90bbc | |
| ### http://roxlu.com/2016/057/compiling-x264-on-windows-with-msvc | |
| * Download "MSYS2 x86_64" from "http://msys2.github.io" and install into "C:\workspace\windows\msys64" |
This file contains hidden or 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
| Nomes das Tabelas | |
| SX1 Manutenção de Perguntas de parametrização (movimentações, consultas e relatórios) | |
| SX2 Manutenção dos Arquivos | |
| SX3 Manutenção dos Campos | |
| SX4 Configuração de Agenda de Relatórios e Processos | |
| SX5 Manutenção de Tabelas | |
| SX6 Manutenção de Parâmetros | |
| SX7 Manutenção de Gatilhos de Campos (SX3) | |
| SX9 Manutenção de Relacionamento entre Arquivos (SX2) | |
| SXA Manutenção de Pastas Cadastrais dos Arquivos (SX2) |
This file contains hidden or 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
| ### Problem | |
| On Archlinux | |
| `journalctl -p 3 -xb` | |
| shows | |
| `intel_rapl: no valid rapl domains found in package 0` | |
| ### Slove |
This file contains hidden or 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
| # https://trac.ffmpeg.org/wiki/Capture/Desktop | |
| # https://ffmpeg.org/ffmpeg-devices.html#gdigrab | |
| # https://trac.ffmpeg.org/wiki/Encode/H.264#LosslessH.264 | |
| # WARNING: THE RECORDING WILL STOP WHEN UAC POPUP IS SHOWN | |
| C:\SoftPortable\ffmpeg\bin\ffmpeg ` | |
| -f gdigrab -framerate 30 -draw_mouse 1 -i desktop ` | |
| -c:v libx264 -qp 0 -pix_fmt yuv444p -preset ultrafast ` | |
| "C:\Videos\recording-$(get-date -f yyyy-MM-dd-Hmss).mp4" |
This file contains hidden or 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
| public class RC4 { | |
| public static byte[] Encrypt(byte[] pwd, byte[] data) { | |
| int a, i, j, k, tmp; | |
| int[] key, box; | |
| byte[] cipher; | |
| key = new int[256]; | |
| box = new int[256]; | |
| cipher = new byte[data.Length]; |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| # trap keyboard interrupt (control-c) | |
| trap control_c INT | |
| # Must be run as root | |
| # requires: | |
| # - wget | |
| # - pax |
You can use ffmpeg to directly pull frames off of a dahua 4300s at full resolution. May be a good alternative to pricey dvrs which likely cannot record at full resolution, may not work with the camera, or are prohibitevly expensive
Simple stream to file. Full resolution
ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:[email protected]:554/live" \
-c copy -map 0 foo.mp4
This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.
Documentation links
- FFMpeg, Muxers, Encoders, Protocols
- FFMPEG multiple outputs
- VLC Docu, Advanced Use
This file contains hidden or 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
| /* | |
| * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message | |
| * Digest Algorithm, as defined in RFC 1321. | |
| * Version 2.2 Copyright (C) Paul Johnston 1999 - 2009 | |
| * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet | |
| * Distributed under the BSD License | |
| * See http://pajhome.org.uk/crypt/md5 for more info. | |
| */ | |
| /* |