In VLC it takes not more than 4-5 seconds
Strange, from log_scanning.zip logs it seems that opening stream takes 4.86 seconds (so, only 140 milliseconds to timeout). This successful opening was the second, first one failed (timeout). To be clear, remote server responded immediately, but first data comes after 4.86 seconds. As I look on your times, I'm not sure if there is problem with timeout or with something else (e.g. firewall or antivirus SW - Microsoft Security Essentials is such example, sometimes it blocks filter, sometimes not). Try to change timeout on this url (http://127.0.0.1:1239) to 10000 milliseconds, try to scan/watch (if channel is already in DB) and attach logs.With my my script scanning take less.
Plus 1 second to put the line into DBMay 29 00:47:16: INFO: Starting Astra 4.4.182
May 29 00:47:17: INFO: Bitrate: 0 Kbit/s
May 29 00:47:18: INFO: PAT: tsid: 1
May 29 00:47:18: INFO: PAT: pid: 7777 PMT pnr: 6666
May 29 00:47:18: INFO: PAT: crc32: 0xCDADFF85
May 29 00:47:18: INFO: PMT: pnr: 6666
May 29 00:47:18: INFO: PMT: pid: 256 PCR
May 29 00:47:18: INFO: VIDEO: pid: 256 type: 0x02
May 29 00:47:18: INFO: AUDIO: pid: 257 type: 0x03
May 29 00:47:18: INFO: PMT: crc32: 0xE87C7D6D
May 29 00:47:18: INFO: SDT: tsid: 1
May 29 00:47:18: INFO: SDT: sid: 6666
You're wrong. This filter is only input part, it's same like hardware DVB-S, DVB-C or DVB-T card. DVB-S, DVB-C or DVB-T cards also don't change DB, don't parse *.m3u or anything else.Just one thought more.
You are always talking about scanning and some timeouts.
As I said, I'll never use MP scanning and using timeouts when putting a link into DB for me is a wrong concept.
What your SW should do from my point of view:
- parse *.m3u (static or downloaded from http source automatically once per time X) automatically,
- substitute in db http-links, pmt pid, etc, if changed, for existing idTuning or add new ones, if a user changed status in intermediate db from e.g. "not insert" to "insert",
- wait until the process of parsing http-links, pmt pid, etc,from *.m3u is finished (1 second, 1 minute, 1 momth, etc) or loop scanning