<div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small" class="gmail_default">@spitsyn.andrey</div><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
@GG how can I use custom script for proxy files creation inside<br>
Cinelerra? Or use ffmpeg's scale_vaapi filter if vaapi used.<br>
<br></blockquote><div><span class="gmail_default" style="font-size:small">Proxies can not be run easily by remote control or from a shell script. GG does not understand why you would not just use the Settings->Proxy Settings? However, there is nothing special about the actual proxy files -- you can just create the scaled down size with an ffmpeg command line and give it the name which would have been generated by Cinelerra if you had created them that way. For example, test.mp4 would just be test.proxy2-mp4.mpeg if you chose mpeg as the format file type (with mpeg becoming the extension) at 1/2 scale (the 1/2 scale shows as the 2 in "proxy2" of the new file name). VERY IMPORTANT - you must use the ffmpeg binary in Cinelerra's thirdparty directory. Example using mp4:</span></div><div><span class="gmail_default" style="font-size:small"><br></span></div><div><span class="gmail_default" style="font-size:small">./ffmpeg -i /root/media/tutorial.mp4 -s 720x540 /root/media/tutorial.proxy2-mp4.mp4<br></span></div><div><span class="gmail_default" style="font-size:small"><br></span></div><div><span class="gmail_default" style="font-size:small">Now when you load the tutorial.mp4 video, and then do Settings->Proxy Settings, the proxy file is already created and will load.<br></span></div><div><span class="gmail_default" style="font-size:small">-------------------------------------------------------------------------------------------------------------------------------------------<br></span></div><div><span class="gmail_default" style="font-size:small">We tried a couple of examples </span><span class="gmail_default" style="font-size:small">of using scale_vaapi from the ffmpeg command line and it always failed for us on a Intel laptop with Broadwell graphics board. For example, something like the following:</span></div><div><pre class="gmail-wiki">ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i input.mp4 -vf 'scale_vaapi=1280:720'<span class="gmail_default" style="font-size:small">.. </span>out.mp4<br></pre><pre class="gmail-wiki"><span class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif"><font size="2">and another line from Cinelerra's thirdparty/ffmpeg directory documentation. We also tried using a .opts file<br></font></span></span></pre><pre class="gmail-wiki"><span class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif"><font size="2">for the import. For example, for test.mp4, we created a test.opts file containing:<br></font></span></span></pre><pre class="gmail-wiki"><span class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif"><font size="2"> video_filter=scale_vaapi=1280:720<br></font></span></span></pre><pre class="gmail-wiki"><span class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif"><font size="2">and that gave us more error messages.<br></font></span></span></pre><pre class="gmail-wiki"><span class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif"><font size="2">Question gg has - can you give us a good working ffmpeg command line using scale_vaapi (again you must<br>use the ffmpeg binary in Cinelerra's thirdparty directory) so we can<br></font></span></span></pre><pre class="gmail-wiki"><span class="gmail_default" style="font-size:small"><span style="font-family:arial,sans-serif"><font size="2">see it that works for us? Also, why rescale using vaapi instead of using a plugin? Is it faster?<br></font></span></span></pre><span class="gmail_default" style="font-size:small"></span></div></div></div></div></div>