oyvindln / vhs-decode

Software defined VHS decoder - Fork (maybe temporary) of the ld-decode Laserdisc rf decoder
GNU General Public License v3.0
1.12k stars 46 forks source link

Long decodes lead to slowdown and huge log files #171

Open davidvankemenade opened 3 weeks ago

davidvankemenade commented 3 weeks ago

Checklist

Bug Description

Steps to Reproduce

  1. Capture 4-hour tape using DdD at 16 bits
  2. Perform lossy compression from 40msps to 28msps 8-bit in line with https://github.com/oyvindln/vhs-decode/wiki/RF-Compression-&-Decompression-Guide#linux-down-sampling-scripts
  3. Run decode.exe vhs --use_saved_levels --ire0_adjust --overwrite --frequency 28 --level_detect_divisor 2 --recheck_phase --pal --threads 4 --tape_format SVHS compressed.flac outputtbc 1>stdoutput.log" 2>&1
  4. Inspect log files - https://drive.google.com/file/d/1k2qST__paiZnL4iat3_FpZMnAmPKw2eo/view?usp=drive_link

Expected Behaviour

Actual Behaviour

Environment

Additional Information

Is there anything in the code that could explain this behaviour?

Is it related to tbc-video-export?

No

davidvankemenade commented 2 weeks ago

I can exclude the lossy flac compression from this. I've repeated the decode with the original .s16 file. The bug occurs earlier this time around:

File Frame 144070: SVHS
[s16le @ 00000219d9f86340] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 230584299520 >= -230584298227