[FFmpeg-user] How i can use vulkan hw accel and vulkan filters for streaming my desktop. Is KMS grab working with audio recording?
Stephan Monecke
stephanmonecke at gmail.com
Tue Nov 17 11:04:54 EET 2020
I don't have vulkan here but that's what I use with QSV. Maybe it is
an inspiration to you:
ffmpeg -video_size "$resolution"\
¦ ¦ -loglevel warning \
¦ ¦ -probesize 100M \
¦ ¦ -framerate 25 \
¦ ¦ -thread_queue_size 1024 \
¦ ¦ -init_hw_device qsv=hw -filter_hw_device hw \
¦ ¦ -f x11grab -i ":0.0+$xpos,$ypos" \
¦ ¦ -thread_queue_size 4096 \
¦ ¦ -use_wallclock_as_timestamps 1 -fflags +genpts \
¦ ¦ -f pulse -i "${audio_input}"\
¦ ¦ -c:a aac \
¦ ¦ -b:a 128k \
¦ ¦ -vf "format=yuv420p,hwupload=extra_hw_frames=64,format=qsv,vpp_qsv=detail=50:framerate=25,scale_qsv=w=-1:h=720:mode=2:extra_hw_frames=64"
\
¦ ¦ -global_quality:v 30 \
¦ ¦ -look_ahead 1 \
¦ ¦ -look_ahead_depth 25 \
¦ ¦ -c:v h264_qsv \
¦ ¦ -profile:v high \
¦ ¦ -level:v 5.1 \
¦ ¦ -preset veryslow \
¦ ¦ -bf 16 \
¦ ¦ -trellis 2 \
¦ ¦ -f flv \
¦ ¦ rtmp://url
Where resolution is in the format e.g. 1920x1080; xpos, ypos are
integers -- possibly zero, if you take the complete screen.
Cheers,
Stephan
Am Di., 17. Nov. 2020 um 08:27 Uhr schrieb KoreanFanOfficial
<koreanfanofficial at gmail.com>:
>
> I have fx-8300 and rx560. I want to stream my desktop to any streaming rtmp
> platform with vulkan hw accel and vulkan filters but i can't find any code
> for amd video card. I want to stream video and audio with 30 fps frame
> rate, scaled output video 720p. Can someone share code for this with
> x11grab and kmsgrab? My ffmpeg shows that vulkan hw accel and vulkan
> filters are available.
> _______________________________________________
> 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