<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 10 Jul 2021 at 17:44, John P Poet <<a href="mailto:jppoet@gmail.com">jppoet@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">On Sat, Jul 10, 2021 at 7:30 AM Klaas de Waal <<a href="mailto:klaas.de.waal@gmail.com" target="_blank">klaas.de.waal@gmail.com</a>> wrote:<br></div><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"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 10 Jul 2021 at 10:32, Klaas de Waal <<a href="mailto:klaas.de.waal@gmail.com" target="_blank">klaas.de.waal@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 Fri, 9 Jul 2021 at 22:57, John P Poet <<a href="mailto:jppoet@gmail.com" target="_blank">jppoet@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>Hi Klaas,</div><div><br></div><div>I am setting up a new development machine to do some work. In the process I noticed that when scanning ATSC channels, no default channel number is given and the user must manually choose one for every single channel. This is when the user chooses to manually pick which channels get inserted into the DB.</div><div><br></div><div>For example, the message I am getting is:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>You chose to manually insert channel 7_1 (KOAT-DT). Please enter a unique channel channel number. Default value is</div></blockquote><div><br></div><div>If I just click on OK, it just redraws the same dialog box. Instead I have to select Edit and type in 7_1. I could have sworn this was more automatic the last time I did this. Any chance you can have it pick a good default?</div><div><br></div></div></blockquote><div>Hi John,</div><div><br></div><div>This definitely should be automatic so there is something really wrong.</div><div>The correct behavior is to use the received channel number without asking and when there is a conflict the suggestion channel number is with a letter added.</div><div>There should also be the option in the dialog for "OK for all"  so that it is never asked again.</div><div>It could be a coincidence but there are also threads in the forum about ATSC cable scanning not working at all or crashing once the scan is complete. And that is with v31. I assume you are using master.</div><div>At least you still get the correct channel numbers and names, which the ATSC cable scans do not even do anymore.</div><div>What makes this a puzzle is that I have not changed anything significant in the scanning code for a long time now. </div><div>On the other hand, maybe people do not do channel scans that often....</div><div>The scanning does work correctly with DVB-T2/C/S2 as you might have guessed.</div><div>I will have a look at the code this weekend and possibly try to do a simple ATSC scan with a captured ATSC transport stream. Have done that in the past so I should be able to do that again....</div><div>In the meantime, if you have an idea what is wrong be welcome to explore and fix it!</div><div><br></div></div></div></blockquote><div>Hi John,</div><div><br></div><div>Can you please send me a complete backup of your database after you have done one or more scans?</div><div>Rationale:</div><div>In master the "Scan type"  "Import Existing Scan" allows playing back again a scan previously done. I expect the bug to be in the channel importer where the options such as "Complete scan data required" etc are processed and this can be replayed from an existing scan. Which then hopefully enables me to debug the channel numbering code with your ATSC scan. </div><div><br></div><div>Thanks,</div><div>Klaas.</div></div></div></blockquote><div><br></div><div>Yes, I can do that. I will replicate what I did when I saw the problem, which was to do a scan on an initial setup, i.e. brand new database.</div><div><br></div><div><br></div></div></div></blockquote><div>Hi John,</div><div><br></div><div>I've resurrected the capability to scan from a single transport stream, according to your description in </div><div><a href="https://github.com/MythTV/mythtv/commit/8828cc5e4698f72e25fcfc31782c42fda5079717#diff-09ba904030e3795f57e6332cba578167">https://github.com/MythTV/mythtv/commit/8828cc5e4698f72e25fcfc31782c42fda5079717#diff-09ba904030e3795f57e6332cba578167</a></div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"">"Add the ability to scan for the programs in a MPTS stream from an IPTV <span style="font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",Menlo,monospace;white-space:pre-wrap">source."</span></div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji""><span style="font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",Menlo,monospace;white-space:pre-wrap">I needed a small fix in channelscan_sm.cpp to make this work but that is another story.</span></div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"">The good news is that I should now be able to reproduce and debug the channel importer issue.</div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji""><br></div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46)"><font face="ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace"><span style="white-space:pre-wrap">Question: can you send me a full MPTS that does not scan correctly?</span></font></div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46)"><font face="ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace"><span style="white-space:pre-wrap"><br></span></font></div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji""><span style="font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",Menlo,monospace;white-space:pre-wrap">Thanks,</span></div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji""><span style="font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",Menlo,monospace;white-space:pre-wrap">Klaas.</span></div><div class="gmail-commit-title gmail-markdown-title" style="box-sizing:border-box;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji""><span style="font-family:ui-monospace,SFMono-Regular,"SF Mono",Consolas,"Liberation Mono",Menlo,monospace;white-space:pre-wrap"><br></span></div><div> </div></div></div>