06:55
I'm trying to do tonemapping (and resizing) of a UHD HDR video stream with ffmpeg. The following command:
ffmpeg -vsync 0 -hwaccel cuda -init_hw_device opencl=ocl -filter_hw_device ocl
-threads 1 -extra_hw_frames 3 -c:v hevc_cuvid -resize 1920x1080 -i "INPUT.hevc"
-vf "hwupload,
tonemap_opencl=tonemap=mobius:param=0.01:desat=0:r=tv:p=bt709:t=bt709:m=bt709:format=nv12,
hwdownload,format=nv12,hwupload_cuda"
-c:v hevc_nvenc -b:v 8M "OUTPUT.hevc"
seems to work (around 200 FPS on an RTX 3080). However, I notice that it still uses one CPU core and (...)
07:26
I am attempting to stream my screen to an RTMP URL using FFMPEG with X11 for screen capture and NVIDIA's hardware acceleration to enhance performance. Despite using NVIDIA acceleration, the stream is still experiencing lags and low-quality output. I've noticed that FFMPEG is utilizing only about 100MB of GPU memory, which seems low. Here's the command I'm currently using:
ffmpeg -hwaccel cuvid -f x11grab -s 1920x1080 -i :1 -f pulse -i VirtualSink.monitor -c:v h264_nvenc -preset:v p1 -b:v 2500k -maxrate 2500k -bufsize 5000k -vf (...)
05:47
I'm trying to capture a simulator's screen using idb & ffmpeg with the command
idb video-stream --fps 15 --format h264 --compression-quality 1.0 --udid | ffmpeg -i pipe:0 -vcodec libx264 -threads 1 -crf 40 -preset ultrafast -f hls -g 30 -hls_list_size 0 -hls_time 5 -r 15 ./index.m3u8
This is taking around 15s to create the index.m3u8 file resulting in the loss of first 15 seconds of video.
I've tried adding
-tune zerolatency
but this too has no effect.
Idb starts video streaming right away on its own. Need help triaging why ffmpeg is (...)