vhs-decode icon indicating copy to clipboard operation
vhs-decode copied to clipboard

hifi-decode fails between after about 7 to 8 minutes of processing time when reading FLAC source file

Open danifunker opened this issue 6 months ago • 0 comments

Checklist

  • [✅] I have searched the issues page for any duplicate issues open or closed and confirmed that this bug has not been reported before.
  • [✅] I have tested the issue with the current build.
  • [✅] I have attached log files, uploaded sample data, and commands used so that the issue can be easily reproduced by the developers.

Bug Description

When using hifi-decode on an 8mm tape on a FLAC compressed file, the application will stop processing. In addition, there is no progress bar that populates.

The same RF file, decompressed is able to process the file.

This specifically was an 8mm tape captured via a regular clock cxadc capture card, but I believe this issue may exist for other captures. I have ran into this bug on multiple captures (all from 8mm sources) and don't believe it is related to my RF captures at all.

Steps to Reproduce

  1. Capture the rf signal
  2. Convert the rf signal to flac (for reference, I used the following command: flac --best --sample-rate=28636 --sign=unsigned --channels=1 --endian=little --bps=8 myCapture.u8
  3. hifi-decode -t 16 --8mm --cxadc --ntsc --auto_fine_tune off --gain .7 --NR_sidechain_gain 80 --audio_mode l --overwrite --audio_rate 192000 myCapture.flac myCapture.wav

Expected Behaviour

hifi-decode should complete or at least throw some errors.

Actual Behaviour

Some time between 7 and 8 minutes the hifi-decode process will hang. Notes: If running the UI, no inputs will be allowed to be clicked. Be aware, prior to the hang the inputs on the UI still work, including pause/start. If running on the console, it just stays there indefinitely until a CTRL+C is pressed.

It's important to note, when processing FLAC files, no progress bar appears, and the wav file is written. Here are some example log outputs.

16 Thread output:

-  Decoding speed: 54355 kFrames/s (0.95x)
- Audio position: 0:07:18.617
- Wall time     : 0:07:42.159

1 Thread Output:

- Decoding speed: 27304 kFrames/s (0.48x)
- Audio position: 0:03:34.634
- Wall time     : 0:07:30.218

Environment

  • Decode version: 0.2.7, as well as the latest commit 8b9a53b592d36cdc1908ce17046ba750942dc90e
  • Operating System: [e.g., Windows 10, macOS Big Sur, Linux Ubuntu] Tried both (wsl2 Linux Ubuntu 24.04) and Linux Ubuntu 24.04.04
  • Hardware Used: i7 12700K, 32GB DDR4 RAM, SSD NVME Gen 4 (Samsung 990 PRO), nvidia 3060 graphics card

Additional Information

Additional reports are coming in on the discord regarding this issue as well

Is it related to tbc-video-export?

No.

danifunker avatar Jul 31 '24 18:07 danifunker