<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">@Spitsyn.andrey: concerning your previous message as provided below the asterisks (***).  A change to the Shell Commands has been checked into GIT that I believe should get you what you can use when you use the "Add" option after going to: Settings->Preferences->Interface->Shell Commands.  I have not documented how to use it yet but I am pretty sure you will understand how to use it as I barely do.  Be sure when doing the Add to check the box "run /path/script.sh + argv" to run that script.  I believe this is all you have to do to get this working:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">1) put your script as you described earlier below anywhere on your system that will not be deleted</div><div class="gmail_default" style="font-size:small">2) set up you Shell Command as described in the CinelerraGG_manual.pdf <br></div><div class="gmail_default" style="font-size:small">  basically do an Add, type in the line /{your directory path}/your_script_file.sh and check the "run" box</div><div class="gmail_default" style="font-size:small">3) click all OKs to get back to Cinelerra</div><div class="gmail_default" style="font-size:small">4) NOW to execute your script from inside Cinelerra, assuming you have loaded your video files/assets, highlight the 1 file in the Resources Window that you want to proxy using your script, then use the Shell Cmds icon to find the Add that you did and click on it.  I would suggest you look at the output on the window from where you started up Cinelerra to make sure it is working or your script could include an output log file.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You can also use $1, $2, ... more args  in your script and then highlight multiple files.</div><div class="gmail_default" style="font-size:small">Let me know if this works for you or what the problem is if it does not.  Thank you as this was a good addition for us.  gg/Phyllis<br></div></div><div style="font-size:small" class="gmail_default">*************************************************************************************************</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 15, 2019 at 1:22 AM Спицын Андрей <<a href="mailto:spitsyn.andrey@gmail.com">spitsyn.andrey@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">>@GG  My hardware is little bit outdated so I already using script for a<br>
>proxy files creation. I've spend some time to find appropriate options for<br>
>ffmpeg to use fully hardware encoding/filtering. It has very good results<br>
>compared to cinelerra proxy routine (about 30x faster) and cinelerra using<br>
>ffmpeg's hardware filter and vaapi encoder (around 10x faster).<br>
>So I thought that cinelerra can use this script to speed up the proxy files<br>
>creation.<br>
<br>
Here the script file:<br>
<br>
#!/bin/bash<br>
<br>
filename="$1"<br>
fileout="${filename%.*}"<br>
proxy="6"<br>
# Hardware encode AMD<br>
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<br>
<br>
</blockquote></div></div>