I'm getting error "cannot reshape array" when doing deconvolve process on any data from SAA7131 capture card. I've tried to recover some of my old captures, but no success.
Here is tracelog:
Traceback (most recent call last):
File "/usr/local/bin/teletext", line 11, in
load_entry_point('teletext==3.1.99', 'console_scripts', 'teletext')()
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 829, in call
return self.main(args, kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, ctx.params)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke
return callback(args, kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, *kwargs)
File "/usr/local/lib/python3.6/dist-packages/teletext/clihelpers.py", line 235, in cmd
return f(_args, _kwargs)
File "/usr/local/lib/python3.6/dist-packages/teletext/clihelpers.py", line 62, in wrapper
return f(config=config, *args,**kwargs)
File "/usr/local/lib/python3.6/dist-packages/teletext/clihelpers.py", line 198, in wrapper
for p in packets:
File "/usr/local/lib/python3.6/dist-packages/teletext/pipeline.py", line 81, in to_file
for p in packets:
File "/usr/local/lib/python3.6/dist-packages/teletext/stats.py", line 48, in iter
for p in self._packets:
File "/usr/local/lib/python3.6/dist-packages/teletext/cli.py", line 324, in
packets = (p for p in packets if isinstance(p, Packet))
File "/usr/local/lib/python3.6/dist-packages/teletext/stats.py", line 74, in iter
for l in self._lines:
File "/usr/local/lib/python3.6/dist-packages/teletext/mp.py", line 264, in itermap
yield from pool.apply(iterable)
File "/usr/local/lib/python3.6/dist-packages/teletext/mp.py", line 212, in apply
yield next(self._proc)
File "/usr/local/lib/python3.6/dist-packages/teletext/vbi/line.py", line 291, in process_lines
yield getattr(Line(chunk, number), mode)(mags, rows)
File "/usr/local/lib/python3.6/dist-packages/teletext/vbi/line.py", line 231, in deconvolve
bits_array = normalise(self.chop(0, 368))
File "/usr/local/lib/python3.6/dist-packages/teletext/vbi/line.py", line 126, in chop
return np.mean(self.fchop(start, stop).reshape(-1, 8), 1)
ValueError: cannot reshape array of size 2931 into shape (8)
Here is a short VBI sample where error occures.
polsat_crop.zip
Hi,
I'm getting error "cannot reshape array" when doing deconvolve process on any data from SAA7131 capture card. I've tried to recover some of my old captures, but no success.
Here is tracelog:
Here is a short VBI sample where error occures. polsat_crop.zip
Thanks, Alexander