Saturday, 28 January 2012

Multi-Channel LPCM on a DVD-ROM

(Or how to store 4.0 / 5.1 at 96khz 24-bit on a DVD-R, in a way that plays back properly over HDMI from a Sony BDP-S370)
Yes, another exciting audio howto :-) but if I don’t record it, I won’t be remember (or be willing to rediscover) how.
If starting from one-track-per-file, use foobar2000 to create a single wav file and a cue sheet. The key here is to multi-select the files, and do a convert to wav with the destination type set to “Generate multi-track files”. This will produce the cue sheet.
Next find the duration of the combined wav file, and use ffmpeg from the command prompt to create a still video file:
ffmpeg.exe -loop 1 –i somepicture.png -c:v libx264 -s hd720 -t hh:mm:ss.mmm video.mkv
Then use multiavchd, add video.mkv and click on the entry under “compilation”. Add the audio, then edit the chapters and fill in the values from the cue sheet. On the Author tab I also changed TV system to PAL.
Hit Start, and choose AVCHD (Strict) under the Optical Media section.
From the command prompt multiavchd folder, Use oscdimg to create a UDF disc image of the AVCHD folder
oscdimg -u2 AVCHD myaudiodisc.iso
Burn myaudiodisc.iso to DVD-R. If I let the disc play automatically on loading, the receiver claimed it was being sent 88.2Khz sound. I had to select “AVCHD disc” from the blu-ray player menus to get 96khz.