26 Jul 2024 |
apoorv569 | ![2024-07-26_21-22.png](https://matrix.org/_matrix/media/r0/thumbnail/matrix.org/IfAEqRQKhhCTGnGTjFSNZWqY?height=360&method=scale&width=360) Download 2024-07-26_21-22.png | 15:52:29 |
apoorv569 | not sure what I can show so I blurred whatever I think should not been shown | 15:52:41 |
apoorv569 | tube.homeserver.lan is a local DNS entry from my PiHole server. | 15:53:06 |
apoorv569 | yea not much is happening.. its still using the CPU and my GPU is idle | 15:53:59 |
lautre | I don't know how ffmpeg can use GPU | 15:54:37 |
lautre | But, now, the transcoding is on your fast PC, isn't it? A good step, isn't it? | 15:55:25 |
apoorv569 | CPU on the VM I mean not on the remote runner | 15:55:30 |
apoorv569 | my desktop is not that fast either.. similar performance to the proxmox server that is running the peertube VM | 15:56:31 |
apoorv569 | just added GPU | 15:56:35 |
apoorv569 | I switched to local CPU transcode, increased the thread and concurrency though | 16:02:16 |
apoorv569 | ![2024-07-26_21-32.png](https://matrix.org/_matrix/media/r0/thumbnail/matrix.org/YPqpdJMOVKpvrLcJSXfGlPpS?height=360&method=scale&width=360) Download 2024-07-26_21-32.png | 16:02:25 |
apoorv569 | If I can use remote runner such that it can use GPU then I'll use it again | 17:14:22 |
apoorv569 | I just realised, a channel with 800+ videos, I only just published 6 videos, transcoding like this on the CPU is going to take weeks event months.. | 22:43:22 |
apoorv569 | this is not feasible.. | 22:43:37 |
apoorv569 | * I just realised, a channel with 800+ videos, I only just published 6 videos, transcoding like this on the CPU is going to take weeks even months.. | 22:44:22 |
lautre | You can install Remote Runner locally too, this will divide by two the time.
Like weeks, even months, but half | 22:51:54 |
lautre | You really should see how to use GPU in your case | 22:52:24 |
apoorv569 | remote runner can't use GPU? | 22:52:30 |
lautre | As I understood, it's depending of what ffmpeg can use | 22:53:12 |
apoorv569 | I found this issue, https://github.com/Chocobozzz/PeerTube/issues/6042 | 22:54:07 |
lautre | May be you should select few resolution for transcoding | 22:54:13 |
lautre | But yes, transcoding need a lot of CPU | 22:54:58 |
apoorv569 | ![2024-07-27_04-25.png](https://matrix.org/_matrix/media/r0/thumbnail/matrix.org/mxUSPKSBkmtBxEXomqrBHVSf?height=360&method=scale&width=360) Download 2024-07-27_04-25.png | 22:55:53 |
apoorv569 | I only have the original one selected | 22:55:57 |
apoorv569 | ffmpeg -encoders | grep nvenc
ffmpeg version n7.0.1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 14.1.1 (GCC) 20240522
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-frei0r --enable-gmp --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libdvdnav --enable-libdvdread --enable-libfreetype
--enable-libfribidi --enable-libgsm --enable-libharfbuzz --enable-libiec61883 --enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librsvg --enable-librubberband --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-mbedtls --enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-shared --enable-vapoursynth --enable-version3 --enable-vulkan
libavutil 59. 8.100 / 59. 8.100
libavcodec 61. 3.100 / 61. 3.100
libavformat 61. 1.100 / 61. 1.100
libavdevice 61. 1.100 / 61. 1.100
libavfilter 10. 1.100 / 10. 1.100
libswscale 8. 1.100 / 8. 1.100
libswresample 5. 1.100 / 5. 1.100
libpostproc 58. 1.100 / 58. 1.100
V....D av1_nvenc NVIDIA NVENC av1 encoder (codec av1)
V....D h264_nvenc NVIDIA NVENC H.264 encoder (codec h264)
V....D hevc_nvenc NVIDIA NVENC hevc encoder (codec hevc)
| 22:56:33 |
apoorv569 | it does look like it can use nvenc | 22:56:43 |
lautre | May be. Good night
Thanks for the link | 23:04:10 |
27 Jul 2024 |
apoorv569 | I moved the entire docker container to my desktop it still won't use GPU | 00:16:22 |
apoorv569 | I have added,
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities:
- gpu
| 00:16:31 |
apoorv569 | to the peertube container as well | 00:16:37 |