Log in

View Full Version : Encoding AC3 DD 5.1 to existing .TS with DD 2.0


jmogl
22nd September 2004, 18:44
Hi,

This is my first post, so I am very much a noob. I have searched the forums and checked out the guides and did not find reference to what I am trying to do, so I want to ask if it is even possible.

I recorded a HD PBS Soundstage concert on my Motorola 6208 DVR. I transfered the file successfully to my PC via firewire and CapDVHS.

Unfortunately my local PBS down mixes AC3 DD 5.1 to DD 2.0. There are also two momentary audio drop outs with no impact to the video. My wife really liked the concert so I purchased the DVD.

What I want to do is demux the 5.1 audio track from the DVD and add it to the 1080i HD .TS file without re-encoding the video. I know I will have challenges with sound sync and editing. The DVD has a couple of extra songs.

Is this possible without re-encoding the video? I want to avoid any loss of video quality.

If so, I would really appreciate just a list of required programs to use and I will go from there.

Thanks for helping a noob out!

Jeff

unixfs
23rd September 2004, 09:18
I never tried it, but in theory should work:

mencoder -o file.avi -oac copy -ovc copy -audiofile dvd:// file.ts
(maybe add -sid <TRACK_ID> or -slang <LANGUAGE>)

should give you a (very likely totally out of sync) avi with
mpeg2video and ac3 audio.
Mplayer and vlc will be able to play it; virtualdub + ffdshow/ffvfw
should permit you to resync the stream.

If that doesn't work you can demux the streams:

mplayer -dumpfile video.m2v -dumpvideo file.ts
mplayer -dumpfile audio.ac3 -dumpaudio dvd://

then remux the two together with

mplex -f 8 -o file.mpg audio.ac3 video.m2v