Last active
October 3, 2022 09:18
-
-
Save siagung/b56faa2d9574af632ac7c515c9a3334b to your computer and use it in GitHub Desktop.
FFMPEG CHEAT CODE
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
https://solusi.cyou/read-https-qastack.id/ubuntu/365163/how-to-minimize-usage-of-cpu-memory-by-ffmpeg-when-recording-video | |
https://gist.github.com/44213/f1e1a04646bf909ba07e9f6a888db11c | |
https://www.rickmakes.com/running-ffmpeg-as-a-background-process/ | |
ffmpeg -i source.dav -s 1280X720 -c:v libx265 -crf 23 -preset fast -threads 1 dest.mp4 | |
ffmpeg -i B.source.dav -s 1280X720 -c:v libx264 -crf 26 -preset faster -vf format=yuv420p -threads 2 dest.mp4 | |
BEST NVDIA GFORCE (200mb to 29mb) -> ffmpeg -i input.dav -c:v h264_nvenc -cq:v 29 -y -vf scale=1280:720 output.mp4 | |
ffmpeg -nostdin -hide_banner -nostats -loglevel panic -hwaccel cuda -hwaccel_output_format cuda -i input.dav -vf scale_cuda=1280:720 -c:v h264_nvenc -cq:v 29 output.mp4 | |
2 tb = 20 hari = 16 ch | |
4 tb = 40 hari | |
6 tb = 60 hari | |
8 tb = 80 hari | |
10 tb = 100 hari | |
12 tb = 120 hari | |
get file code -> ffprobe -v error -select_streams 'v:0' -show_entries stream=codec_name -of default=nokey=1:noprint_wrappers=1 destAb.mp4 | |
*) note: | |
1. https://en.wikipedia.org/wiki/Nvidia_NVDEC | |
2. https://www.videoproc.com/resource/ffmpeg-commands.htm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nvidia NVDEC / NVCUVID