Skip to content

ATRAC3 crash with longer songs #75

@OmskInfo

Description

@OmskInfo

Problem Description
When attempting to write songs to a Hi-MD disc in any of the ATRAC3 modes, the process will throw an error before the writing of the first song begins.

Error: Failed to transcode audio!
    at RemoteAtracExportService.encodeATRAC3 (https://web.minidisc.wiki/assets/index-BLuhu7Bt.js:716:15463)
    at async RemoteAtracExportService.encodeATRAC3Plus (https://web.minidisc.wiki/assets/index-BLuhu7Bt.js:716:15536)
    at async RemoteAtracExportService.export (https://web.minidisc.wiki/assets/index-BLuhu7Bt.js:716:10562)
    at async https://web.minidisc.wiki/assets/index-BLuhu7Bt.js:730:2451

Indeed, it does look like it's trying to convert the first track to ATRAC3+ but it just never happens on longer files. What I cannot determine is:

  1. Does the ATRAC3 encoder fail once a certain file size is reached? In my experience, things start to get unreliable when passing the 10-minute mark or more than 100MB of input WAV file. Perhaps the encoder has an overflow somewhere when dealing with files greater than a certain size?
  2. Does the web app simply timeout waiting for the ATRAC3 encoder which is taking longer than usual since it's chewing on a really big/long file? Perhaps everything is working smoothly, but we don't know because the error message above shows up and then the app stops listening to the encoder?

If I get the files small enough, it will write them.

There are no problems with writing those same files in MP3 format or PCM format (as disc space allows).

Steps to Reproduce

  1. Insert MD into recorder (in my case, Sony MD-NH700) so that it spins up and reads the disk.
  2. Open Chrome and launch the WebMiniDisc Pro site.
  3. Connect recorder to computer via USB cable—connection shown on recorder's display.
  4. Select to "Connect" in the main app—choose the Net Hi-MD device.
  5. One the TOC reads, open the dot-menu and select the switch to Hi-MD mode from the Homebrew Shortcuts.
  6. When the message appears, eject the MD and insert a Hi-MD. Click OK on the message.
  7. In WMDPro, now choose to Connect HiMD (Full). Choose the device that appears. Sometimes, this needs to be done a second time after the TOC reads but the device name somehow changes.
  8. With the disc TOC now loaded, drag a WAV file of 200MB in size into WMD Pro.
  9. The load screen will appear. Choose the A3+ option and begin recording.

Observed Results
On the next screen, two progress bars appear: one for conversion status and the other for upload status. It's at this point that everything pauses while the song is converted from WAV to ATRAC3+—this is exactly what happens when recording short songs (5 minutes, for example). After a while, a red error screen will appear. The error info is:

Error: Failed to transcode audio!
    at RemoteAtracExportService.encodeATRAC3 (https://web.minidisc.wiki/assets/index-BLuhu7Bt.js:716:15463)
    at async RemoteAtracExportService.encodeATRAC3Plus (https://web.minidisc.wiki/assets/index-BLuhu7Bt.js:716:15536)
    at async RemoteAtracExportService.export (https://web.minidisc.wiki/assets/index-BLuhu7Bt.js:716:10562)
    at async https://web.minidisc.wiki/assets/index-BLuhu7Bt.js:730:2451

I can Ignore and Continue and nothing happens, or I can restart the app. In no case does any audio actually get recorded to the disk.

Expected Results
The song would have converted from WAV to ATRAC3+ and then been uploaded and recorded on disk, just like happens with shorter songs. There would be no limit on the length of the song (I have some CDs that are just one single track!) that could be converted to ATRAC3+.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions