[Cin] HEVC hw encoding on AMD Polaris cards
Phyllis Smith
phylsmith2017 at gmail.com
Wed May 15 23:42:00 CEST 2019
@spitsyn.andrey:
Thanks for the script file. Give me some time to ask GG if there is a way
to add this to the shell commands to let you do this inside of Cinelerra.
The limitation of *passing the filename is the problem*. When gg added
{cinelerra_path}/doc/RenderMux.sh he saved the variable name used from the
Render menu, but in this case that is not available obviously. Maybe he
can save the last loaded filename and use that. I will see what he
thinks. Phyllis
Here the script file:
>
> #!/bin/bash
>
> filename="$1"
> fileout="${filename%.*}"
> proxy="6"
> # Hardware encode AMD
> ffmpeg -threads 2 -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i
> "$1" -c:v h264_vaapi -vf
> "format=nv12,hwupload,scale_vaapi=iw/'$proxy':ih/'$proxy'" -vcodec
> h264_vaapi -preset fast -c:a copy -bf 0 -profile:v 66
> "$fileout".proxy"$proxy"-mp4.mp4
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20190515/d41cdc5e/attachment.html>
More information about the Cin
mailing list