The Traders' Den  

  The Traders' Den > Where we go to learn ..... > Technobabble
 

Notices

Technobabble Post your general Need for Help questions here.
Lossy or Lossless?
Moderators

Reply
 
Thread Tools
  #16  
Old 2007-10-12, 06:08 PM
ffooky ffooky is offline
14.55 GB/14.69 GB/1.01
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

If you're trying to replace a VTS_* in a VIDEO_TS folder that has other VTS sets like a menu etc then you'll have to rename at least the VOBs created by ffmpegX to match the originals, maybe the VTS_0*_*.BUP/IFOs as well and try just dropping them into your original VIDEO_TS folder (saving the original VTS beforehand of course). I imagine that'll only work as long as the times/codecs of the replacements match the originals. If not then you'll have to try reconstructing the whole shebang with something like MovieGate.
__________________
Two tracks for a desert island:

Black Keys - I Got Mine
Tintern Abbey - Vacuum Cleaner
Reply With Quote Reply with Nested Quotes
  #17  
Old 2007-10-12, 06:09 PM
ffooky ffooky is offline
14.55 GB/14.69 GB/1.01
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Quote:
Originally Posted by cleantone
Hopefully we can pick this up tomorrow or another day. Thanks.
Yeah, no worries.
__________________
Two tracks for a desert island:

Black Keys - I Got Mine
Tintern Abbey - Vacuum Cleaner
Reply With Quote Reply with Nested Quotes
  #18  
Old 2007-10-13, 04:03 PM
cleantone cleantone is offline
248.10 GB/154.50 GB/0.62
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Thanks. The thing I am trying to do right now has no menu at all. It was from A VHS tape that I transfered. I since got rid of the VHS but noticed a flaw on the audio. I can fix it, and have done so. I just want to mux the new footage onto the footage without re-encoding the footage. I don't want to muck up the image quality doing this.
Reply With Quote Reply with Nested Quotes
  #19  
Old 2007-10-14, 10:46 AM
cleantone cleantone is offline
248.10 GB/154.50 GB/0.62
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Hey! Hope your around today a bit. I have been trying to work this out again. In the "tools"/"mux" what do I need to be selecting in the video field? A "VOB"? The VIDEO_TS folder?
Reply With Quote Reply with Nested Quotes
  #20  
Old 2007-10-14, 11:29 AM
U2Lynne's Avatar
U2Lynne U2Lynne is offline
TTD Staff
471.57 GB/2.01 TB/4.37
 
Join Date: Oct 2004
Location: California
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

I'm not ffooky, and I could be way wrong, but after you demuxed, didn't you end up with an audio file (I think you are replacing this with wav or mp3, right?) and a video file (m2v)? So, when you want to mux the files back together, I would think you would pick the audio and video files.
__________________
Five's Checksums Demystified - everything and anything you want to know about checksums
On a Mac? Get XLD to rip your CDs. Please see this guide - X Lossless Decoder (XLD): How to create flawless CD rips on Mac OS X

TTD GoFundMe Campaign

Reply With Quote Reply with Nested Quotes
  #21  
Old 2007-10-14, 12:09 PM
cleantone cleantone is offline
248.10 GB/154.50 GB/0.62
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

I am pretty sure there was no M2V file. I have something else processing right now for a little bit. I'll have to redo it to remember for sure.
Reply With Quote Reply with Nested Quotes
  #22  
Old 2007-10-14, 12:17 PM
ffooky ffooky is offline
14.55 GB/14.69 GB/1.01
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Hey cleantone, sorry, been away from my post for a bit. Yep, the luscious and pouting Lynne is bang on. You want to select the M2V file that you demuxed with MPEG Streamclip as the video and your fixed audio as the...errrr...audio. Let ffmpegX mux those suckers as a DVD (VIDEO_TS folder) and check that it plays OK with DVD Player or VLC before burning.

It's occurred to me that we didn't ask which audio codec was used for the original DVD. Open one of the original VOBs with Streamclip and select the get info option. The audio will be one of LPCM (basically the same as WAV/AIFF and, therefore, losslessly editable), MP2 or Dolby Digital/AC3. If it's either of the latter you'll have had to introduce a lossy stage when you decoded to WAV/AIFF and then re-encoded when muxing. There is an application called Fission which can edit MP3 files wihout re-encoding but I don't think it can handle MP2 and certainly not AC3/DD.

You can forget the original VIDEO_TS once you've demuxed it. All ffmpegX wants is the demuxed M2V and your fixed audio stream.

Depending on the size of the finished DVD you can keep the edited audio as a WAV/LPCM if you mux to DVD with Toast 7/8. For some stupid reason you achieve this by selecting Dolby Digital as the audio option (and rencode never as the video one) in the custom setting of the Video Tab. Obviously the audio stream of the DVD will be much larger than either MP2 or AC3 if they were used originally. If the source material used LPCM then this is obviously the preferable route to preserve audio quality. If the orig. used a lossy codec then the added size of the audio might mean you'll need to compress the video in order to fit on a DVD which is something you obviously want to avoid.

If your original DVD did use LPCM but you don't have/can't afford Toast then you might want to investigate MovieGate which I believe can produce DVDs with LPCM. I can't check as I'm on a Linux box at the moment (look at me Ma ) but I'll check later tonight if you're around.

Cheers, ff
__________________
Two tracks for a desert island:

Black Keys - I Got Mine
Tintern Abbey - Vacuum Cleaner
Reply With Quote Reply with Nested Quotes
  #23  
Old 2007-10-14, 12:25 PM
cleantone cleantone is offline
248.10 GB/154.50 GB/0.62
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

The origional DVD was made with Toast a couple of years ago. The audio is LPCM. I am about 40% done on some processing of something else. I'll redo the demux and try to get that right. Thanks a ton!
Reply With Quote Reply with Nested Quotes
  #24  
Old 2007-10-14, 01:10 PM
ffooky ffooky is offline
14.55 GB/14.69 GB/1.01
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

No worries but make sure you set the custom settings right afore ye start Toast a creatin'. You need to make sure the M2V and fixed WAV are in the same folder and identically named other than extension. Choose the custom settings option, set re-encoding to Never and PCM for audio. It's PCM that acts as passthrough, not DD, my bad If you see Toast say "encoding" rather than "mutliplexing" it probably means that you've gone wrong. Check in your Home folder/Documents/Roxio Encoded Items folder while it's running and check the extensions of any files being created in there.
__________________
Two tracks for a desert island:

Black Keys - I Got Mine
Tintern Abbey - Vacuum Cleaner
Reply With Quote Reply with Nested Quotes
  #25  
Old 2007-10-14, 01:11 PM
U2Lynne's Avatar
U2Lynne U2Lynne is offline
TTD Staff
471.57 GB/2.01 TB/4.37
 
Join Date: Oct 2004
Location: California
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Quote:
Originally Posted by ffooky
Hey cleantone, sorry, been away from my post for a bit. Yep, the luscious and pouting Lynne is bang on.
I always knew there was a reason I liked you.
__________________
Five's Checksums Demystified - everything and anything you want to know about checksums
On a Mac? Get XLD to rip your CDs. Please see this guide - X Lossless Decoder (XLD): How to create flawless CD rips on Mac OS X

TTD GoFundMe Campaign

Reply With Quote Reply with Nested Quotes
  #26  
Old 2007-10-14, 02:14 PM
cleantone cleantone is offline
248.10 GB/154.50 GB/0.62
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Oh okay. I had originally only done "demux to AIFF" now I see the "demux to M2V and AIFF" option. Should be able to take it from here! Thanks.
Reply With Quote Reply with Nested Quotes
  #27  
Old 2007-10-14, 03:42 PM
cleantone cleantone is offline
248.10 GB/154.50 GB/0.62
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

So I did a new mux. I used mpeg streamclip to demux a M2V. I then used ffmegx, tools, mux, selected the m2v in the video field, the fixed wav in the audio field. I selected "author as dvd", mux as dvd Sync 0.

The footage seems fine. The file size went from 3.09gb (original) to 2.58gb (new)

Mac DVD Bitrate Paranoia states the origional was 9.32mbps the new one is 7.96mbps

I also lost 10 chapter marks.

I would REALLY love to figure out how to do this with absolutely no loss in image quality. What do you think?

Here is the info... See anything odd?

ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX static build for ffmpegX
configuration: --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 --enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable-amr_wb --enable-pthreads --enable-x264
built on Dec 1 2005 03:50:24, gcc: 3.3 20030304 (Apple Computer, Inc. build 1666)
Input #0, wav, from '/Users/*ommited*/Desktop/*ommited*/VTS_01_1.wav':
Duration: 00:45:14.2, start: 0.000000, bitrate: 1535 kb/s
Stream #0.0: Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s
Output #0, mp2, to '/Users/*ommited*/Desktop/*ommited*/VTS_01_1.wav.mp2':
Stream #0.0: Audio: mp2, 48000 Hz, stereo, 224 kb/s
Stream mapping:
Stream #0.0 -> #0.0
video:0kB audio:74217kB global headers:0kB muxing overhead 0.000000%
INFO: [mplex] mplex version 2.2.2 ($Date: 2003/05/13 20:27:15 $)
INFO: [mplex] File /Users/*ommited*/Desktop/*ommited*/VTS_01_1.m2v looks like an MPEG Video stream.
INFO: [mplex] File /Users/*ommited*/Desktop/*ommited*/VTS_01_1.wav.mp2 looks like an MPEG Audio stream.
INFO: [mplex] Video stream 0: profile 8 selected - ignoring non-standard options!
INFO: [mplex] Found 1 audio streams and 1 video streams
INFO: [mplex] Selecting dvdauthor DVD output profile
INFO: [mplex] Multiplexing video program stream!
INFO: [mplex] Scanning for header info: Video stream e0 (/Users/*ommited*/Desktop/*ommited*/VTS_01_1.m2v)
INFO: [mplex] VIDEO STREAM: e0
INFO: [mplex] Frame width : 720
INFO: [mplex] Frame height : 480
INFO: [mplex] Aspect ratio : 4:3 display
INFO: [mplex] Picture rate : 29.970 frames/sec
INFO: [mplex] Bit rate : 8000000 bits/sec
INFO: [mplex] Vbv buffer size : 229376 bytes
INFO: [mplex] CSPF : 0
INFO: [mplex] Scanning for header info: Audio stream c0 (/Users/*ommited*/Desktop/*ommited*/VTS_01_1.wav.mp2)
INFO: [mplex] MPEG AUDIO STREAM: c0
INFO: [mplex] Audio version : 1.0
INFO: [mplex] Layer : 2
INFO: [mplex] CRC checksums : no
INFO: [mplex] Bit rate : 28672 bytes/sec (224 kbit/sec)
INFO: [mplex] Frequency : 48000 Hz
INFO: [mplex] Mode : 0 stereo
INFO: [mplex] Mode extension : 0
INFO: [mplex] Copyright bit : 0 no copyright
INFO: [mplex] Original/Copy : 1 original
INFO: [mplex] Emphasis : 0 none
INFO: [mplex] SYSTEMS/PROGRAM stream:
INFO: [mplex] rough-guess multiplexed stream data rate : 8354048
INFO: [mplex] target data-rate specified : 10080000
INFO: [mplex] Setting specified specified data rate: 10080000
INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 16022
INFO: [mplex] New sequence commences...
INFO: [mplex] Video e0: buf= 237568 frame=000000 sector=00000000
INFO: [mplex] Audio c0: buf= 4096 frame=000000 sector=00000000
++ WARN: [mplex] Discarding incomplete final frame MPEG audio stream c0!
INFO: [mplex] Scanned to end AU 81345
INFO: [mplex] STREAM e0 completed @ frame 81345.
INFO: [mplex] STREAM c0 completed @ frame 113091.
INFO: [mplex] Multiplex completion at SCR=244281929.
INFO: [mplex] Video e0: buf= 55112 frame=081345 sector=01339544
INFO: [mplex] Audio c0: buf= 736 frame=113091 sector=00037623
INFO: [mplex] VIDEO_STATISTICS: e0
INFO: [mplex] Video Stream length: 2708182004 bytes
INFO: [mplex] Sequence headers: 5424
INFO: [mplex] Sequence ends : 1
INFO: [mplex] No. Pictures : 81345
INFO: [mplex] No. Groups : 5424
INFO: [mplex] No. I Frames : 5424 avg. size 72939 bytes
INFO: [mplex] No. P Frames : 21694 avg. size 33967 bytes
INFO: [mplex] No. B Frames : 54228 avg. size 29056 bytes
INFO: [mplex] Average bit-rate : 7982000 bits/sec
INFO: [mplex] Peak bit-rate : 7844800 bits/sec
INFO: [mplex] BUFFERING min 15 Buf max 134306
INFO: [mplex] AUDIO_STATISTICS: c0
INFO: [mplex] Audio stream length 75997828 bytes.
INFO: [mplex] Syncwords : 113093
INFO: [mplex] Frames : 113093 padded
INFO: [mplex] Frames : 0 unpadded
INFO: [mplex] BUFFERING min 15 Buf max 683
INFO: [mplex] MUX STATUS: no under-runs detected.
STAT: Picking VTS 01
STAT: Processing /Users/*ommited*/Desktop/*ommited*/VTS_01_1.mpg...
STAT: VOBU 16 at 7MB, 1 PGCS

*ommited*

STAT: VOBU 5424 at 2700MB, 1 PGCS
INFO: Video pts = 0.178 .. 2714.422
INFO: Audio[8] pts = 0.178 .. 2714.410
STAT: VOBU 5424 at 2700MB, 1 PGCS
INFO: Generating VTS with the following video attributes:
INFO: MPEG version: mpeg2
INFO: TV standard: ntsc
INFO: Aspect ratio: 4:3
INFO: Resolution: 720x480
INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps
STAT: fixing VOBU at 7MB (17/5424, 0%)

*ommited*

STAT: fixing VOBU at 2700MB (5425/5424, 100%)
STAT: fixed 5424 VOBUS
INFO: Scanning /Users/*ommited*/Desktop/*ommited*/VTS_01_1.mpg.DVD/VIDEO_TS/VTS_01_0.IFO
Reply With Quote Reply with Nested Quotes
  #28  
Old 2007-10-14, 04:41 PM
ffooky ffooky is offline
14.55 GB/14.69 GB/1.01
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Well, the simple answer is that you used ffmpegX rather than Toast and it has compressed the audio. The drop in file size is explained by the change from LPCM->MP2 which also explains the drop in bitrate. It doesn't look like the video stream was re-encoded.

The chapter breaks are stored in the IFO/BUP files of the original VIDEO_TS. If you take my advice and mux with Toast, you may well find that you can simply change the new IFO/BUP files for the old ones or slot your new VOBs into the positions of the originals. I've never done this and you should work with copies of the originals and be prepared to experiment with changing just the VTS_IFO/BUPs or the VIDEO_TS ones as well.

If you want an LPCM audio track you cannot use ffmpegX, at least AFAIK.

ff
__________________
Two tracks for a desert island:

Black Keys - I Got Mine
Tintern Abbey - Vacuum Cleaner
Reply With Quote Reply with Nested Quotes
  #29  
Old 2007-10-14, 04:43 PM
ffooky ffooky is offline
14.55 GB/14.69 GB/1.01
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Quote:
Originally Posted by U2Lynne
I always knew there was a reason I liked you.
A Mac user with an encyclopedic knowledge of port forwarding....
you're the stuff of dreams m'dear
__________________
Two tracks for a desert island:

Black Keys - I Got Mine
Tintern Abbey - Vacuum Cleaner
Reply With Quote Reply with Nested Quotes
  #30  
Old 2007-10-14, 05:08 PM
cleantone cleantone is offline
248.10 GB/154.50 GB/0.62
 
Join Date: Nov 2004
Re: Mac: extracing VIDEO_TS audio; replacing VIDEO_TS audio?

Oh okay. I didn't fully get what you were saying about using Toast in your above post. I'll try that out. I didn't know that Toast could mux a M2V and WAV file for you.
Reply With Quote Reply with Nested Quotes
Reply

The Traders' Den > Where we go to learn ..... > Technobabble

Similar Threads
Thread Forum Replies Last Post
Burning VIDEO_TS on DVD - hebrew assassin Technobabble 3 2007-02-22 06:37 AM
VIDEO_TS---> iPOD ????? - russfuss420 Technobabble 12 2006-06-22 07:37 PM
PLaying Video_ts - wokyft31188 Technobabble 4 2006-03-24 01:22 AM
2 VIDEO_TS files on same DVD? - russfuss420 Technobabble 7 2006-03-08 11:24 AM
video_ts - newfie Technobabble 2 2005-10-06 06:21 PM


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forums


All times are GMT -5. The time now is 06:10 PM.


Powered by: vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2004 - , TheTradersDen.org - All Rights Reserved - Hosted at QuickPacket
no new posts