Created
December 30, 2024 17:22
-
-
Save mortalis13/d83aeab3c2bbd04a799b0f7ce79b99ec to your computer and use it in GitHub Desktop.
ffmpeg video recording info
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
Hardware acceleration methods: | |
cuda | |
dxva2 | |
qsv | |
d3d11va | |
opencl | |
vulkan | |
ffmpeg -h encoder=h264_amf | |
ffmpeg -h encoder=hevc_amf | |
ffmpeg -h encoder=libx264rgb | |
ffmpeg -h encoder=libx265 | |
-- record.bat | |
@echo off | |
FOR /F "tokens=*" %%g IN ('d:\msys64\usr\bin\date.exe +"%%Y-%%m-%%d_%%H-%%M-%%S"') do (SET date_str=%%g) | |
@echo on | |
ffmpeg -hwaccel d3d11va -f gdigrab -framerate 60 -i desktop -f dshow -i audio="virtual-audio-capturer" -c:v libx264rgb -crf 26 -preset ultrafast -color_range 2 -strftime 1 rec1-%date_str%.mkv" | |
-- record options | |
ffmpeg -hwaccel d3d11va -f gdigrab -framerate 60 -i desktop -f dshow -i audio="virtual-audio-capturer" -c:v libx264rgb -crf 26 -preset ultrafast -color_range 2 -strftime 1 rec1-%date_str%.mkv" | |
ffmpeg -hwaccel d3d11va -f gdigrab -framerate 60 -thread_queue_size 32 -i desktop -f dshow -thread_queue_size 32 -i audio="virtual-audio-capturer" -c:v h264_amf -rc cbr -b:v 30M -filler_data 1 rec2-%date_str%.mp4 | |
[ issue with audio not synchronized with video ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment