Skip to content

Crackling/skipping audio #1

@alucryd

Description

@alucryd

Hi, I don't think it's an issue with your binary as the official THPConv.exe from the Wii SDK produces the same result, but I'm hoping you may have some insight. I'm undubing some ISOs and adding subs to THP videos, the resulting videos play fine on real hardware, but the audio is crackling/skipping quite a bit.

The Linux binary just segfaults here (address boundary error, both yours and the one I compiled) so I've been using the Windows binary via wine. I tried mixing and matching the official Wii THPConv.exe binary and yours with the dsptool.dll from both the GameCube and Wii SDK, all combinations produce that crackling audio. Interestingly they all play with no audio issue via mpv, but not in dolphin or on real hardware.

Here are the steps I'm doing:

ffmpeg -i $argv.thp -vcodec libx264 -vf 'bwdif=mode=send_frame' -qp 0 $argv.mkv # deinterlace and convert to lossless x264
ffmpeg -i $argv.thp -vn $argv.wav # extract audio as raw PCM
ffmpeg -i $argv.mkv -vcodec libx264 -preset ultrafast -g 10000 -sc_threshold 40 -pass 1 -passlogfile $argv -f null /dev/null # compute scene changes for subtitles
ffmpeg -i $argv.mkv -vf subtitles=$argv.ass -q:v 3 -an "$argv-%04d.jpg" # burn subtitles and save as jpg images
wine THPConv.exe -j '*.jpg' -s $argv.wav -d {$argv}_new.thp # create the thp file

Do you have any idea what the problem could be? I have yet to try the whole process on Windows, but I'll probably do that soon.

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