How i can use vulkan hw accel and vulkan filters for streaming my desktop. Is KMS grab working with audio recording?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How i can use vulkan hw accel and vulkan filters for streaming my desktop. Is KMS grab working with audio recording?

KoreanFanOfficial
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
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How i can use vulkan hw accel and vulkan filters for streaming my desktop. Is KMS grab working with audio recording?

Stephan Monecke
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
<[hidden email]>:

>
> 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
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How i can use vulkan hw accel and vulkan filters for streaming my desktop. Is KMS grab working with audio recording?

andrei ka
  ffmpeg -video_size "$resolution"\

>   ¦ ¦ -loglevel warning           \
>   ¦ ¦ -probesize 100M             \
>   ¦ ....
>   ¦ ¦ -f x11grab -i ":0.0+$xpos,$ypos" \
>   ¦ ¦ ..
>   ¦ ¦ -level:v 5.1                \
>
> Where resolution is in the format e.g. 1920x1080; xpos, ypos are
> integers -- possibly zero, if you take the complete screen.
>
>
> Cheers,
>
> Stephan
>

hi, out of curiosity, why one would need to probe (with crazy 100M
probesize) x11 capture and why to use 5.1 on 1080p@24 when 4.2 would be
enough ?
&rei
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How i can use vulkan hw accel and vulkan filters for streaming my desktop. Is KMS grab working with audio recording?

Stephan Monecke
> hi, out of curiosity, why one would need to probe (with crazy 100M
probesize) x11 capture and why to use 5.1 on 1080p@24 when 4.2 would be
enough ?

Because this is a generic script not limited to 1080p. That way I can
use it for 4k as well what is not possible with level 4.2.
Furthermore, with x11grab you get raw-image input what is remarkably
big at 4k. But actually I don't really care about the size as long
it's sufficiently large.

Cheers,
Stephan

Am Di., 17. Nov. 2020 um 12:02 Uhr schrieb andrei ka <[hidden email]>:

>
>   ffmpeg -video_size "$resolution"\
>
> >   ¦ ¦ -loglevel warning           \
> >   ¦ ¦ -probesize 100M             \
> >   ¦ ....
> >   ¦ ¦ -f x11grab -i ":0.0+$xpos,$ypos" \
> >   ¦ ¦ ..
> >   ¦ ¦ -level:v 5.1                \
> >
> > Where resolution is in the format e.g. 1920x1080; xpos, ypos are
> > integers -- possibly zero, if you take the complete screen.
> >
> >
> > Cheers,
> >
> > Stephan
> >
>
> hi, out of curiosity, why one would need to probe (with crazy 100M
> probesize) x11 capture and why to use 5.1 on 1080p@24 when 4.2 would be
> enough ?
> &rei
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How i can use vulkan hw accel and vulkan filters for streaming my desktop. Is KMS grab working with audio recording?

andrei ka
oki, cool. i dont know how ffmpeg deals x11 capture,  i thought probing is
used only on mpeg streams.
ak
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How i can use vulkan hw accel and vulkan filters for streaming my desktop. Is KMS grab working with audio recording?

KoreanFanOfficial
Sry but i cant use your code Stephan, i have amd cpu and amd video card

вт, 17 нояб. 2020 г. в 07:05, andrei ka <[hidden email]>:

> oki, cool. i dont know how ffmpeg deals x11 capture,  i thought probing is
> used only on mpeg streams.
> ak
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".