<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 21 Aug 2020 at 15:29, David Watkins <<a href="mailto:watkinshome@gmail.com">watkinshome@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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 20 Aug 2020 at 21:29, Roland Ernst <<a href="mailto:rcrernst@gmail.com" target="_blank">rcrernst@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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 20, 2020 at 4:24 PM David Watkins <<a href="mailto:watkinshome@gmail.com" target="_blank">watkinshome@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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 20 Aug 2020 at 13:26, Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz" target="_blank">stephen_agent@jsw.gen.nz</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">On Thu, 20 Aug 2020 11:23:39 +0100, you wrote:<br>
<br>
>Dear All,<br>
><br>
>After a hard disk failure I'm trying to rebuild a frontend/backend on an<br>
>old Zotac Ion motherboard.<br>
><br>
>It had been running Mythtv V25 and Fedora 16 on 2GB RAM with no problem,<br>
>making multiple HD recordings from DVB-T while playing HD at the same time.<br>
><br>
>I installed lubuntu 20.04 over the weekend and Mythtv 31 from the repo<br>
>which instantly revealed that 2GB RAM no longer cut the mustard.  (100% of<br>
>CPU dedicated to kswapd)<br>
><br>
>I scrounged 2x2GB of RAM and with 4GB I no longer see any swapping with<br>
>reasonable CPU and Memory loadings shown by 'top' .<br>
><br>
>In fact after a couple of hours things were looking good.  I  had<br>
>recording and nice smooth HD video playback -  albeit without sound<br>
>because I hadn't configured that yet.<br>
><br>
>I ran the frontend setup wizard, got sound working and both video test<br>
>samples (SD and HD) played fine with sound and picture.<br>
><br>
>However, after exiting the setup wizard my recordings don't play anymore.<br>
>They play with sound but a black screen.<br>
><br>
>Interestingly, cancelling the playback and immediately starting it again<br>
>sometimes produced the video, which then played perfectly with the sound.<br>
>(CPU at about 70%)<br>
><br>
>Playback log from a failed startup is attached.  Lines of interest appear<br>
>to be:<br>
><br>
>*...*<br>
><br>
>*E CoreContext decoders/mythvdpauhelper.cpp:381 (CreateOutputSurface)<br>
>VDPAUHelp: Error at decoders/mythvdpauhelper.cpp:381 (#25, A catch-all<br>
>error, used when no other error code applies.)*<br>
>.....<br>
><br>
>*E CoreContext opengl/mythvdpauinterop.cpp:196 (InitVDPAU) VDPAUInterop:<br>
>Failed to register VdpOutputSurface. Will retry.*<br>
><br>
>*E CoreContext decoders/mythvdpauhelper.cpp:474 (MixerRender) VDPAUHelp:<br>
>Error at decoders/mythvdpauhelper.cpp:474 (#3, An invalid handle value was<br>
>provided.)*<br>
>...<br>
><br>
>zotac ion with 4GB Ram<br>
>LUbuntu 20.04<br>
>MythTV v31 from repo<br>
>nVidia driver 340.108<br>
>Playback profile vdpau with both deinterlacers at basic.<br>
><br>
>I've since tried LUBUNTU 18.04 with Mythtv v29 (compiled by me) which<br>
>suffers from the same problem in the log although this time the video<br>
>either plays with sound and video or it just immediately bounces back to<br>
>the frontend.  (Note the success:fail ratio is about 1:40)<br>
><br>
>I've attached the playback log and if anyone can see anything useful in<br>
>there I'd be grateful.<br>
><br>
>Also, if anyone is successfully running a frontend on similar hardware<br>
>please can you tell me your configuration  (OS version, Myth version,<br>
>nVidia driver, setup tweaks etc...)<br>
><br>
>I realise I can't assume 10 year old hardware will work but this doesn't<br>
>quite feel like a hardware issue - and I don't want to throw the board away<br>
>unless I have to.  It's tantalising that occasionally it does work!<br>
><br>
>I'm running out of ideas though.  I'm thinking to try:<br>
> - a different distro<br>
> - a 32 bit OS (I think I was running 32-bits before)<br>
> - a different nVidia driver version.<br>
><br>
>I do have a suspicion that the sound setup might be causing the problem.<br>
>As I said, while I was setting up my tuner cards and channels I hadn't<br>
>configured a sound device, and I didn't notice any playback issues then.<br>
>It was only when I got audio playback working that the problems appeared<br>
>(The ion sound driver is nVidia too). This could all be coincidence of<br>
>course and I don't know how to investigate further anyway.<br>
><br>
>Any help very welcome<br>
><br>
>Regards,<br>
><br>
>D<br>
<br>
MythTV v31 has new rendering code, so you may need to adjust your<br>
settings for that to work well.  Take a look at the release notes.<br>
<br>
I am still on v30, so I am not familiar with what the log output for<br>
playing a v31 recording looks like.  But the thing that struck me in<br>
your log was that it did not seem to be using VDPAU to render the<br>
recordings.  Instead it seems to be using opengl-hw.  Maybe it would<br>
work better if VDPAU was doing the rendering also, so it was offloaded<br>
onto the GPU.<br></blockquote><div><br></div><div>Thanks for the reply Stephen,</div><div><br></div><div>I did read the v31 release notes and my interpretation was that opengl is now always involved, even when using VDPAU?</div><div><br></div><div>To be honest I think I tried all the playback settings and I can't remember which one that log is from but I'm pretty sure that whenever VDPAU was available as an option that's what I selected.  The problem is that whenever VDPAU is selected I only seem to have a 1/40 chance of the playback starting, whatever settings I use.  If the video does start then I can see the settings make a difference, but they don't seem to affect the chances of it starting in the first place.</div><div><br></div><div>The changes in v31 were what made me try v29, but I had the same issue with that one.  I'm tending to think it's a lubuntu issue or maybe an nVidia one.</div><div> </div></div></div><br></blockquote><div> </div><div>I have a frontend v29 running on ATOM 330 and Nvidia ION 1st gen:</div><div>Works perfect on h.264 HD recordings ( 720p and 1080i with mpeg h264 transport stream )<br></div><div><br></div><div>Below, some notes I did during installation:</div><div><br></div><div>General Note:<br>For ATOM CPUs, it is important that the 2 memory sticks run in "Dual Channel Mode":<br>Check boot messages for correct size and mode of the RAM modules<br><br>Some notes I did during installation of Ubuntu 18.04 LXDE installation:<br>See <a href="https://wiki.ubuntuusers.de/Minimalinstallation/" target="_blank">https://wiki.ubuntuusers.de/Minimalinstallation/</a><br><br>On tasksel, select minimal lubuntu<br><br>Install nvidia drivers 340<br>From Menu, run "Preferences" -> "Additional Drivers"<br>Select "Additional Drivers" from Lubuntu Menu and select nvidia 340 <br>(it takes some time to react and finish)<br><br>reboot<br>- install nvidia-settings vdpauinfo<br><br>Setup mythbuntu ppa:<br>$ sudo add-apt-repository ppa:mythbuntu/0.29 <br>$ sudo apt-get update<br>$ sudo apt-get install mythtv-frontend<br><br><br>MythTV Frontend Configuration:<br>Tab Playback settings:<br>  Select 'vdpau normal' as profile<br>  Within that profile:<br>     Enable 4 CPUs (Max CPUs) for ATOM 330: 2 + 2 HT Cores<br>Tab General Playback:<br>  Deselect Big Audio Buffer, otherwise playback is very jittery<br>  <br>  <br>Check the frontend logs after start of a playback and follow the instructions<br>to raise the audio buffer.<br>See log message:<br>ALSA: Try to manually increase audio buffer with: echo 192 | sudo tee /proc/asound/card0/pcm0p/sub0/prealloc </div><div>  <br></div></div></div></blockquote><div><br></div><div>Thanks,</div><div><br></div><div>That gives me some hope, and some help.</div><div><br></div><div>I'll see how I get on.</div><div><br></div><div>D </div></div></div></blockquote><div><br></div><div>So one of the causes of the frontend playback error:</div><div><br></div><div>  ... E CoreContext decoders/mythvdpauhelper.cpp:381 (CreateOutputSurface) VDPAUHelp: Error at decoders/mythvdpauhelper.cpp:381 (#25, A catch-all error, used when no other error code applies.)*</div><div><br></div><div>is not having enough memory allocated to your onboard nvidia graphics.  At some point when I was having intermittent playback problems I did a factory reset on my motherboard, which left it with 64MB assigned to Graphics</div><div><br></div><div>Setting it to 256MB and all looks good.  I'm not sure what it was at when it was working intermittently - possibly 128MB?</div><div><br></div><div>Anyway - I'm over that hurdle now.</div><div><br></div><div>Thanks for the help</div><div><br></div><div>D</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div><br></div><div><br></div><div> </div></div></div>
</blockquote></div></div>