{"id":8393,"date":"2018-12-29T18:50:01","date_gmt":"2018-12-30T01:50:01","guid":{"rendered":"https:\/\/www.apolonio.com\/blog\/?p=8393"},"modified":"2018-12-29T18:50:01","modified_gmt":"2018-12-30T01:50:01","slug":"little-optiplex-won","status":"publish","type":"post","link":"https:\/\/www.apolonio.com\/blog\/?p=8393","title":{"rendered":"Little Optiplex Won"},"content":{"rendered":"\n<p>I got NVidia NVENC encoding working, and an optiplex with a lower end Quadro video card beat an 4 core Xeon.<\/p>\n\n\n\n<p>Trick is you need to compile your own<\/p>\n\n\n\n<p>Here are the details<\/p>\n\n\n\n<p>Here are the results of different versions&nbsp; of ffmpeg transcoding from a 10 minute 26\nsecond video from a recent football game.&nbsp;\nThe file is 1.2GB large and has a frame of 1920&#215;1080 with a rate of\n29.97FPS<\/p>\n\n\n\n<p>The parameters used in ffmpeg are as follows<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">AUDIO\u00a0 |\u00a0 -acodec libmp3lame -ab 160k<br>VIDEO\u00a0 |\u00a0 -vcodec libx264 -vprofile high -preset slow -b:v 2500000 -vf scale=-1:720 -threads 0 -f mp4<\/pre>\n\n\n\n<p>For the most part they did not change, when I used the\nhardware encoding I did have to change the video slightly to<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">VIDEO&nbsp; |&nbsp; -vcodec <strong>h264_nvenc<\/strong>\n-vprofile high -preset slow -b:v 2500000 -vf scale=-1:720 -threads 0 -f mp4<\/pre>\n\n\n\n<p>To use the hardware encoding<\/p>\n\n\n\n<p>After transcoding files were down to 1280&#215;720 using an h.264\ncodec and were 210MB in size.<\/p>\n\n\n\n<p>The computer was a much older Dell Optiplex 760, Intel Core2\nDuo CPU E8400 @ 3.00GHz, 8GB of RAM and a NVIDIA Corporation GK107 [NVS 510]\n(rev a1) video card which is based on NVidia Kepler technology which does\nhardware h.264 encoding and decoding<strong><br>\n<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Precompiled RPMS<\/h1>\n\n\n\n<p>I have been using these binaries for a while now, downloaded\nfrom <a href=\"http:\/\/li.nux.ro\/repos.html\">http:\/\/li.nux.ro\/repos.html<\/a> &nbsp;and they were the slowest.<\/p>\n\n\n\n<p><strong>Time: 31min\n55sec<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Precompiled Binaries<\/h1>\n\n\n\n<p>Was recently introduced to this, a simple statically compiled\nbinary from <a href=\"https:\/\/johnvansickle.com\/ffmpeg\/\">https:\/\/johnvansickle.com\/ffmpeg\/<\/a><\/p>\n\n\n\n<p>Extremely easy to install and use<\/p>\n\n\n\n<p><strong>Time: 26min\n42sec<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Compiled from source<\/h1>\n\n\n\n<p>Here are stats from when I compiled from source the latest\nversion.&nbsp; Kind of tricky and there were\nspeed bumps.&nbsp; This run was based on software\nencoding, statistically the times are similar to the precompiled binaries<\/p>\n\n\n\n<p><strong>Time: 27min\n07 seconds<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Compiled using hardware encoding<\/h1>\n\n\n\n<p>This is the best performance \u00a0of all, using nvenc encoding, it took a 5<sup>th<\/sup> of the time WOW<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>Time: 5min 24sec<\/strong><\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Precompiled RPMs on workstation<\/h1>\n\n\n\n<p>For yucks, I tried this on a workstation class HP Z series\ncomputer.&nbsp; <\/p>\n\n\n\n<p>CPU is Intel(R) Xeon(R) CPU E31230 @ 3.20GHz and 12GB of RAM<\/p>\n\n\n\n<p><strong>Time: 11min 59sec<\/strong><\/p>\n\n\n\n<p>I was so impressed with what this tiny Quadro card could do I went out and got a beefier Quadro K4000 which could only go on the workstation.  But the same file was done under 3 minutes (2 min 55 sec)<\/p>\n\n\n\n<p>Now I am going to give a large 24GB file a try, which on a system I had up last year took nearly 10 hours (9 hours 50 minutes 52 secs) which took on the Optiplex under 2 hours (1 hour 58 minutes 15 secs).<\/p>\n\n\n\n<p>Maybe this will be done before the night is over and I can post an update.<\/p>\n\n\n\n<p>Weight: 279.8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got NVidia NVENC encoding working, and an optiplex with a lower end Quadro video card beat an 4 core Xeon. Trick is you need to compile your own Here are the details Here are the results of different versions&nbsp; &hellip; <a href=\"https:\/\/www.apolonio.com\/blog\/?p=8393\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,11,3,9],"tags":[],"class_list":["post-8393","post","type-post","status-publish","format-standard","hentry","category-new-toys","category-technical","category-training","category-weighin"],"_links":{"self":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8393"}],"version-history":[{"count":1,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8393\/revisions"}],"predecessor-version":[{"id":8394,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/8393\/revisions\/8394"}],"wp:attachment":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}