[FFmpeg-user] FFMPEG opencl hwaccel, opencl tonemap, vulcan hw accel for record desktop/streaming

KoreanFanOfficial koreanfanofficial at gmail.com
Wed May 4 17:58:34 EEST 2022


ffmpeg -y -r 25 -framerate 25 -video_size 1920x1080 -window_id 0x5e00003 \
-init_hw_device opencl=gpu:0.0 -filter_hw_device gpu -f x11grab -i :0 -f \
alsa -i pulse -vf \
"format=nv12,hwupload,tonemap_opencl=t=bt709:tonemap=linear:format=nv12,hwdownload,format=nv12,scale=1280:720"
\
-c:v h264 -profile:v baseline -preset veryfast -sws_flags fast_bilinear \
-b:v 2500k -maxrate 2628k -minrate 2628k -bufsize 2628k -c:a mp3 -b:a 128k \
-f flv video.flv

output:
[AVHWDeviceContext @ 0x55e902e5b440] QSV to OpenCL mapping not usable.
[x11grab @ 0x55e902edd500] Stream #0: not enough frames to estimate rate;
consider increasing probesize
Input #0, x11grab, from ':0':
  Duration: N/A, start: 1651676129.706988, bitrate: 1500672 kb/s
  Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x977, 1500672
kb/s, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'pulse':
  Duration: N/A, start: 1651676131.790687, bitrate: 1536 kb/s
  Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
[AVHWDeviceContext @ 0x55e902e5b440] No image support in OpenCL driver
(zero supported image formats).
[Parsed_hwupload_1 @ 0x55e902f9b140] Query format failed for
'Parsed_hwupload_1': Invalid argument
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
[alsa @ 0x55e902f67d00] Thread message queue blocking; consider raising the
thread_queue_size option (current value: 8)
Conversion failed!

ср, 4 мая 2022 г. в 09:04, Def Etienne <shaker.doc at gmail.com>:

>
>
> Sent from my iPhone
>
> > On 4 May 2022, at 11:35, KoreanFanOfficial <koreanfanofficial at gmail.com>
> wrote:
> >
> > ffmpeg -y -r 25 -framerate 25 -video_size 1920x1080 -window_id 0x5a0002e
> > -init_hw_device opencl=gpu:0.0 -filter_hw_device gpu -f x11grab -i :0 -f
> > alsa -i pulse -vf
> >
> "format=nv12,hwupload,tonemap_opencl=t=bt709:tonemap=linear:format=nv12,hwdownload,format=nv12,scale=1280:720"
> > -c:v h264 -profile:v baseline -preset veryfast -sws_flags fast_bilinear
> > -b:v 2500k -maxrate 2628k -minrate 2628k -bufsize 2628k -c:a mp3 -b:a
> 128k
> > -f flv video.flv
>
> Now add the complete uncut console output.
>
>
> > didnt work, didnt work any opencl filer.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list