<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div><div>> I’m trying to get gstreamer-vaapi installed on an Amazon ec2 GPU instance.<br>> When I installed gstreamer on an Ubuntu AMI through apt-get, all gstreamer<br>> decoding and encoding commands gave me an error like 'gstreamer-vaapi<br>> cannot load library’ (I forget the exact error message). vainfo errored<br>> that I didn’t have an x-server running.<br><br>The first thing would be to get working vainfo. What kind of GPU does Amazon<br>provide? VAAPI works well on Intel GPUs and some other GPU using the gallium<br>drivers.<br><br>vainfo should work without an X server running, just it warns about it.<br><br>If vainfo doesn't work, which is the most basic libva tool, gstreamer-vaapi<br>won't work either.</div></div></span></blockquote></div><div><br></div><div>Here is some info about these machines:</div><div><br></div><div><a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/accelerated-computing-instances.html">http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/accelerated-computing-instances.html</a></div><div><br></div><div>I naively thought this would be easy. I am clearly in over my head :(</div><div><br></div><div>Back to Ubuntu: After install 'apt install vainfo', it coredumps when I run it.</div><div><br></div><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">(gdb) run</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Starting program: /usr/bin/vainfo </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">[Thread debugging using libthread_db enabled]</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">error: can't connect to X server!</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">error: failed to initialize display</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Program received signal SIGABRT, Aborted.</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">0x00007ffff6cd2428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">54<span class="Apple-tab-span" style="white-space:pre">    </span>../sysdeps/unix/sysv/linux/raise.c: No such file or directory.</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">(gdb) </span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span>I installed the nvidia drivers successfully FWIW</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26"><b>ubuntu@ip-172-31-9-90</b></span><span style="font-variant-ligatures:no-common-ligatures">:</span><span style="font-variant-ligatures:no-common-ligatures;color:#5230e1"><b>~</b></span><span style="font-variant-ligatures:no-common-ligatures">$ nvidia-smi -q | head</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">==============NVSMI LOG==============</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Timestamp                           : Tue Jan 17 17:36:42 2017</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Driver Version                      : 367.57</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">Attached GPUs                       : 1</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">GPU 0000:00:03.0</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">    Product Name                    : GRID K520</span></p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px">









</p><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="font-variant-ligatures:no-common-ligatures">    Product Brand                   : Grid</span></p></div></body></html>