Something that happened to me is that the commands mentioned above produced the .mp3 file, but it was pure noise.

This was because the parameter "0" in the command stands for combined stereo (or something like that). Changing that to 1 solved the problem for me.