Last active
January 10, 2024 12:56
-
-
Save t00/50816d82e4734036ad53cc222a48fb3c to your computer and use it in GitHub Desktop.
gource hardware accelerated vaapi linux amdgpu
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 | |
| # ffmpeg reference: https://trac.ffmpeg.org/wiki/Hardware/VAAPI | |
| # vaapi reference: https://wiki.archlinux.org/title/Hardware_video_acceleration | |
| gource \ | |
| -s .01 \ | |
| -1920x1080 \ | |
| --auto-skip-seconds .1 \ | |
| --multi-sampling \ | |
| --stop-at-end \ | |
| --key \ | |
| --highlight-users \ | |
| --date-format "%d/%m/%y" \ | |
| --hide mouse,filenames \ | |
| --file-idle-time 0 \ | |
| --max-files 0 \ | |
| --background-colour 000000 \ | |
| --font-size 25 \ | |
| --output-ppm-stream - \ | |
| --output-framerate 30 \ | |
| | ffmpeg \ | |
| -vaapi_device /dev/dri/renderD128 \ | |
| -y -r 30 -f image2pipe -vcodec ppm -i - \ | |
| -vf 'format=nv12,hwupload' -b 65536K -c:v h264_vaapi -pix_fmt yuv420p \ | |
| output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment