PDA

View Full Version : Muxing LPCM for DVD


DarkFoon
22nd August 2005, 02:28
I have an m2v and a WAV file that I need to mux together for DVD, but Mplex and every other program I have tried says that it cannot mux the WAV file.

I know that DVD's can have LPCM audio, so is there a way to convert WAV to LPCM or a muxer out there that will multiplex these two files?

Dimmer
22nd August 2005, 09:09
Sure you should be able to mux a WAV file for DVD with probably any authoring program. For example, IfoEdit is one of the simplest. For your purposes, WAV and LPCM is the same thing. Important part is the WAV file parameters: it must be encoded at 16 bit with 48kHz sampling rate, otherwise it might be rejected, which is most likely what's happening in your case. For example, if your source is a CD track, it would have 44.1kHz sampling rate. Almost any sound editor including the one that comes with Windows can convert a WAV file to match the DVD specifications mentioned above.

DarkFoon
22nd August 2005, 10:12
Actually the audio is 48Khz, 16bit, 2 channel. It's the original audio for the movie, but it had to be decoded for some reason or another (I haven't worked on this project for such a long time) and I've tried re-encoding it, but the nuances of the audio are lost, even at high bitrates(using both AC3 and MP2), and so I would perfer to use this manner.

I tried using Mplex to multiplex these together, and it wouldn't recognize the WAV file. I hope ifoEdit will.
My authoring app is dvdauthorgui the aug 11th release.

Thanks for your help!

DarkFoon
23rd August 2005, 04:21
An update:
I tried both VobEdit and IfoEdit, and neither of them will mux these two files.
I don't think you understand that these files are not ripped from a DVD, but are actually files that I captured and re-encoded. There is no option in either of the two apps I just mentioned that allows me to multiplex two files, the closest option is to remux an .m2v, but that doesn't put the audio with it.
Any other options that I have?

fccHandler
23rd August 2005, 12:34
IfoEdit will mux them, using the "DVD Author" option. (But FWIW, I once tried this with IfoEdit v0.94 and the result was unplayable on my system.)

Trahald
23rd August 2005, 15:59
You may want to try muxman. it can accept lpcm and i presume it can in a wav wrapper.

DarkFoon
23rd August 2005, 20:51
@fcchandler
I never saw a "DVDAuthor" option, but I will look for it.

@Trahald
This is just hilarious, muxman accepts the WAV file, but it doesn't accept the .M2V. Any guesses as to why? (It's DVD compliant, as far as I remember)

+++EDIT+++
I have found the problem with my M2V: apparently, its been IVTC'd to 23.976, but I've been told that (some) DVD players will accept that.
So, is there a workaround for muxman or another app that will mux this?

Full stats:
Video:
720x480
23.976
??kbps (I'm pretty sure its DVD compliant)

Audio
WAV(LPCM)
48KHz
16bit
2 Channels (stereo)

Trahald
23rd August 2005, 21:43
the mpeg reading 23.976 isnt legal for dvd.. it would have to read 29.97.. you should use pulldown.exe or restream to fix the headers to 29.97 and make sure rffs are applied to bring decoding fps to 29.97. the muxman.log tells you the code for why an asset failed the readme explains the codes

DarkFoon
24th August 2005, 02:23
I looked at the logfile, and it confirms that the error is the framrate of 23.976.
So, using pulldown, would I just run it default without any options for it to do what I need it to do?
I'm sorry, I have never worked with anything that was 23.976 and destined for DVD. So, if you could point me to a guide, or give me a little help, it'd be very appreciated.

fccHandler
24th August 2005, 04:31
This will do what you want:

PULLDOWN "inputfilename" "outputfilename" -drop_frame true

DarkFoon
24th August 2005, 17:54
Thanks Fcchandler.

Well, now that I got all my ducks in a row, this is what my muxman log reports:
MuxMan version 0.14g
Accepted video D:\frankenstein\target.m2v size = 3122921472
Accepted audio E:\frankenstein\fraudio.wav
01:39:41 Begin multiplex.
Maximum audio duration 300634 fields.
Starting scene Segment_1_scn1 at 00:00:00:00
P-STD buffer underflow by 16320 bytes at 193460, sector 1235.
P-STD buffer underflow by 3887 bytes at 200967, sector 1286.
P-STD buffer underflow by 6381 bytes at 205472, sector 1317.
P-STD buffer underflow by 11370 bytes at 208475, sector 1337.
P-STD buffer underflow by 14200 bytes at 215982, sector 1390.
P-STD buffer underflow by 305 bytes at 220487, sector 1419.
P-STD buffer underflow by 9687 bytes at 223490, sector 1440.
P-STD buffer underflow by 18301 bytes at 227994, sector 1471.
P-STD buffer underflow by 17116 bytes at 230997, sector 1491.
P-STD buffer underflow by 4859 bytes at 235502, sector 1522.
P-STD buffer underflow by 29212 bytes at 238505, sector 1543.
P-STD buffer underflow by 28351 bytes at 250517, sector 1626.
P-STD buffer underflow by 17912 bytes at 253520, sector 1645.
P-STD buffer underflow by 31584 bytes at 261027, sector 1697.
P-STD buffer underflow by 6845 bytes at 265532, sector 1727.
P-STD buffer underflow by 44166 bytes at 318084, sector 2096.
P-STD buffer underflow by 27659 bytes at 321087, sector 2107.
And what it says in the error box is: "Excessive bitrate"
now what?

Thanks so much to all of you for all the help you have provided.

fccHandler
24th August 2005, 18:22
DVDs have a maximum total bitrate somewhere around 10080 kbps. The muxing together of your .m2v and .wav is exceeding that maximum. You'll either have to reencode the .m2v with a lower bitrate (say, 8000 kbps max) or compress the .wav to AC-3 or MPEG Layer II. I don't think you have any alternative. :(

DarkFoon
24th August 2005, 20:03
well heck, I finally remember what the project was, and my folly at the render time.
I was an idiot, and I rendered my movie using constant quant-2, which (using bitrate viewer) I discovered spikes up to 13080 in the video stream alone!
So, thank you all for your help, and curse my stupidity from the past! (All your help, however, will come in handy in the future)
Thanks all, again!
bye