IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
AC3 audio editor, What is the best way to crop an AC3 audio track?
jeffdgr8
post Aug 27 2008, 10:20
Post #1





Group: Members
Posts: 2
Joined: 27-August 08
Member No.: 57566



I want to combine an HDTV video recording and an AC3 DVD audio track, but the audio track doesn't quite fit with the video. I need to crop off the beginning and end (MGM lion roaring) and add the proper amount of silence to make the track the correct length to fit the video before muxing them together. I've extracted the audio from the DVD and saved it as a .ac3 file. The only program I've gotten to open the AC3 file for editing is Nero Wave Editor (latest v4.3.4.0) and for some reason, it only opens the first 15:30 of the track. I've tried Sound Forge, Audacity, Audition, and Soundbooth and none of these programs will edit AC3 audio. Maybe some of these programs require a plugin to unlock this capability. Does anyone have any suggestions? I don't really need to do a lot of editing to the track. I'm not adding anything except for silence, just removing is all. So if it were possible to do this without having to decode and reencode the whole track, that would be best.
Go to the top of the page
+Quote Post
j7n
post Aug 27 2008, 17:47
Post #2





Group: Members
Posts: 813
Joined: 26-April 04
Member No.: 13720



AC-3 streams can be cut without re-encoding with the help of a hex editor. It's a long and tedious process.

Always cut whole AC-3 frames. Each frame starts with header 0B 77. This header occurs at regular intervals in a CBR file.

To see how many bytes you should remove use this formula:

bytes = bitrate[kBit/s] * 1000 * time[s] / 8.

So, a lion lasting 4.6 seconds ends at byte 258048 in a 448 kBit/s stream.

It is likely that your DVD has already defined a cell (chapter) for the lion clip. If this is so, just demultiplex the MPEG-2 Program Stream by cells, and you'll have the lion separated. Your DVD ripper migth allow to select chapters before ripping. If it does, this is the easiest way to get rid of chapter 0.

After this is done you'll have to determine the remaining video-audio delay, which is beyond the scope of this discussion.

If one of your video sources runs at 25 fps and the other at 23.976 fps, you will have to resample and re-encode the audio. One transcoded HDTV capture is not worth all this work IMO.
Go to the top of the page
+Quote Post
smok3
post Aug 28 2008, 23:09
Post #3


A/V Moderator


Group: Moderator
Posts: 1728
Joined: 30-April 02
From: Slovenia
Member No.: 1922



if you look for a mpeg2 cutters they usually have the ability to cut the ac3 as well, like for example:

chopperXP
http://www.google.com/url?sa=t&source=...N3Na3uB0qZxN01A

Cuttermaran
http://www.videohelp.com/tools/Cuttermaran

mpeg2schnitt
http://www.videohelp.com/tools/Mpeg2Schnitt

womble
http://www.womble.com/products/vcr.html
(free trial)

videoredo
http://www.videoredo.com/en/index.htm
(free trial)

no, i don't remember which exactly has this ability.

edit: maybe you can do something with virtualdub as well and its 'audio direct stream copy' option.

This post has been edited by smok3: Aug 28 2008, 23:12


--------------------
PANIC: CPU 1: Cache Error (unrecoverable - dcache data) Eframe = 0x90000000208cf3b8
NOTICE - cpu 0 didn't dump TLB, may be hung
Go to the top of the page
+Quote Post
jeffdgr8
post Oct 14 2008, 21:38
Post #4





Group: Members
Posts: 2
Joined: 27-August 08
Member No.: 57566



I was able to do what I needed with a program from Womble. I didn't use VCR, as suggested. But I used their newer MPEG Video Wizard DVD. Strangely though, I was unable to get the program to rip the AC3 data from the VOB files correctly. It was cutting off the very beginning of the files and resulted in errors in the track where the VOB files transitioned. I used the .ac3 audio file that I had previously extracted using a program called DVD Audio Extractor. MPEG Video Wizard DVD was able to cut the track where needed and add silence as well. Once I saved the AC3 file to the correct length for the HDTV video, I used mkvtoolnix to mux the video and audio tracks together. I did have to figure out the video-audio delay, which took some trial and error. But all I needed to do was shift the track in MPEG Video Wizard DVD and export it again. I could have also used the delay settings in mkvtoolnix. The frame rate wasn't an issue even though the DVD was NTSC and the HDTV video was 23.976 FPS. Both had the same timing with the audio. I just had to make sure to specify the correct frame rate for the video in mkvtoolnix. Thanks for your help!
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st August 2014 - 09:52