If you use AudioDub(video,audio), Trim() will cut both audio & video. You can use nicaudio.dll to specify the audio. In this case you can cut+append segements right in your avs script. Make sure you use aligned splice (++) or you might get sync issues, and don't forget the audio delay given by DGIndex (it will be written in the demuxed audio name)
e.g. This would return frames 0-100 joined with 200-300 , with audio specified in the script. In this example the delay was 72ms
Another method is to preprocess the vob/mpeg2 source clips (e.g cut & join them as MPEG2 first) eg. using videoredo. So you would have it exactly how you want it in MPEG2 form first, before using DGIndexCode:vid=Mpeg2Source("somevideo.d2v") aud=NicAC3Source("somevideo T01 2_0ch 192Kbps DELAY 72ms.ac3").DelayAudio(0.072) AudioDub(vid,aud) Trim(0,100)++Trim(200,300)
You can also trim directly with DGIndex using the mark in/mark out
You can also make cuts in vdub/vdub mod (e.g. delete sections like commercials or credits)
It all depends on what you're comfortable with, or how many sections you have, or what you find more convenient
If you've opened it up in vdubmod with an .avs script, but didn't specify audio in the script, that might explain your error message. If you use info(), look at the last line for audio information to see if it was served
+ Reply to Thread
Results 31 to 59 of 59
-
-
Using AviSynth is definitely more convenient. Thanks for that code, that's what I was looking for. For some reason though the trim location of the ac3 file I'm using it completely differnet than that of the video. Here's my code:
loadplugin("C:/Program Files/DGMPGDec 1.5.5/DGDecode.dll")
loadplugin("C:/Program Files/AviSynth 2.5/plugins/NicAudio.dll")
import("C:\Program Files\AviSynth 2.5\plugins\TempGaussMC_beta1.avs")
audio = NicAC3Source("I:/FamilyGuyStream/FamilyGuyDisc T80 3_2ch 448Kbps DELAY -315ms.ac3",2,1).DelayAudio(-0.315)
video = MPEG2Source("I:/FamilyGuyStream/FamilyGuyDisc.d2v")
AudioDub(video,audio)
Trim(27882,28781) -
Actually I deleted the DelayAudio altogether and it was pretty much still the same. Right now I'm re-creating a project file with DGIndex, this time honoring pull-down flags. Maybe this was the problem. If it doesn't work, I'll check to see if it's in sync without the trim.
-
Ugh, not working, it's not in sync without the trim either. It seems the audio file is actually shorter than the video by something like 10 minutes.
-
Ok I figured out why, stringing the vob files all together, some of them use different audio tracks than others. Wow this is really getting to be a PITA. I have to figure out what VOBs use the soundtrack that I'm using, assuming it doesn't switch soundtracks within a single VOB.
-
Ok I'm still having issues. Here's the script.
loadplugin("C:/Program Files/DGMPGDec 1.5.5/DGDecode.dll")
loadplugin("C:/Program Files/AviSynth 2.5/plugins/NicAudio.dll")
import("C:\Program Files\AviSynth 2.5\plugins\TempGaussMC_beta1.avs")
audio = NicAC3Source("I:/FamilyGuyStream/FamilyGuyDisc T80 3_2ch 448Kbps DELAY 0ms.ac3",2,1)
video = MPEG2Source("I:/FamilyGuyStream/FamilyGuyDisc.d2v")
AudioDub(video,audio)
Despite having chosen VOBs that use the audio track that I've chosen, I can't get the audio and video to sync. The audio leads the video slightly. -
Can't you just DelayAudio() to delay the audio by a bit? You can also use VirtualDub(mod)'s audio skew function.
Doesn't NicsAc3Source() convert to PCM? -
I think I found the problem, it seems that the audio stays in sync fine until the third episode, at which point it suddenly is out of sync by 2 seconds from the beginning. I could use the audio skew function, but really this is getting to be more work than it's worth. Procoder 3 makes this entire process simple by loading the IFO, then you select which episode you want, how you want to encode the video and audio, add the filters you want, and encode. I believe it also supports native YUV colorspaces. The only reason I wanted to use AviSynth is because the deinterlacers in Procoder are crap, to be honest. I wonder if I can load an avs script into procoder? Could I just cut each episode separately in DGIndex, then run the TempGauss in a script with the episodes individually? Cutting them individually should keep the audio in sync, I just don't get why it's getting out of sync in the first place.
-
Why not just demux by episode, either when using DVD Decrypter set up for IFO Mode, or after the whole thing is on the hard drive by using PGCDemux and either demuxing by PGC, or by PGC and 'Create A PGC VOB'. Just trying to encode VOBs spanning more then one episode (even if trying to trim out what you don't want) isn't very smart at all, for the reason you discovered.
I just don't get why it's getting out of sync in the first place. -
The whole DVDs are on my hard drive already, I'd prefer to use that method. Will PGCDemux allow me to select the episodes individually by following the IFO instructions (not having to select entry and exit frames), allow me to use the m2v file like a d2v file in AviSynth, and let me re-mux the audio/video without sync issues? This would sure save me a lot of time from having to dig through each episode, trying to find a gap here and a delay there. I tried the avs in procoder, works great, if I just had an easy way to get the episodes to an avs, I'd likely be in business, at least for the next 20 minutes, until another issue arises.
-
Originally Posted by jieve
I may have misunderstood this, "allow me to use the m2v file like a d2v file in AviSynth". You'll use the M2V it gives you to make the D2V. Don't forget, under "Options", to check the "Demux Video Stream" box. -
I see. What I meant was to avoid the extra step from converting m2v to d2v. Just seems like there are a bunch of steps that should be able to be avoided here. In procoder there's really only 1 step, load the main ifo and you're golden. You can select everything from there. In PGC Demux I have to find the ifos with the episodes, demux them, then convert from m2v to d2v, just to load them in a script. Would be easier if there was prog that could simply take the main IFO and output me the d2v and audio by episode, without having to think about delays, etc. PGC Demux is a step in the right direction, but I'm wondering if there's not a better way, considering how common it is for people to do this.
-
Ok finally it's working, although with the extra steps, is there a way to adjust the audio gain in avisynth after converting from ac3 to pcm? I know I can do it in VBM, but easier to just add it to the script. Also, is there somewhere I can get a list of the avisynth commands?
-
You have DRC applied in your nicaudio line, you might want to take it out
Normalize() is probably what you want
There's lots of info and links if you dig around:
http://avisynth.org/mediawiki/Main_Page -
Thank you guys, once again. I've found that I can get a volume equivalent to the CD if I raise it 600% in VDM, procoder only allows 2x. Also it only allows up to 30 fps frame rate, interesting. Ok so VDM it is, one more thing, I'm still having a problem saving in VDM when using tempgauss, I still get an error in the bottom corner, about the source format not being acceptable. Here is the code:
loadplugin("C:/Program Files/DGMPGDec 1.5.5/DGDecode.dll")
loadplugin("C:/Program Files/AviSynth 2.5/plugins/NicAudio.dll")
import("C:\Program Files\AviSynth 2.5\plugins\TempGaussMC_beta1.avs")
audio = NicAC3Source("I:/FamilyGuyDemuxed/AudioFile_80.ac3",2,1)
video = MPEG2Source("I:/FamilyGuyDemuxed/VideoFile.d2v")
AudioDub(video,audio)
Trim(0,1000)
AssumeTFF()
TempGaussMC_beta1()
Could it be something with the color space or something? it's working in procoder. -
Originally Posted by jieve
-
So the script previews ok, and you only get that error upon encoding?
What settings are you using for video & audio? It might be something as silly as forgetting the matching sampling rate for audio (e.g. 48Khz vs 44Khz) -
Oh, 60 fps is too fast for Home Theater profile. Use Unconstrained or decimate the video.
-
Video Compression Error: The source image format not acceptable
Checked the audio settings, 48kHz@ 128kbps
DivX 6.8 Home Theater
1500 kBps, 1-pass
progressive source
I keep trying it but it keeps giving me the same error. I can view individual frames fine though. -
I would test a small sample on your target device with "unconstrained" profile before you spend hours on an encode only to find it doesn't play...
-
It stops encoding immediately when I hit save-as to encode and gives me that error message in a pop-up window. Hmmm, under file info it says it's using the DivX 6.8 YV12 decoder as the decompression codec, would possibly have something to do with it, like it doesn't support 60 fps?
-
yea that's what jagabo said above about 60fps (3posts up) using home theatre profile. It's a bit of a waste to do all that bobbing and throw away 1/2 the frames...just add selecteven()
-
works great, and it only took 30 mins to encode 30 seconds of video! I am excessively impressed with it though, will probably be saving that one for some DV projects.
-
Guys, I can't get amplify() to work in avisynth. What am I doing wrong? Here's the code:
loadplugin("C:/Program Files/DGMPGDec 1.5.5/DGDecode.dll")
loadplugin("C:/Program Files/AviSynth 2.5/plugins/NicAudio.dll")
loadplugin("C:/Program Files/AviSynth 2.5/plugins/area.dll")
audio = NicAC3Source("I:/FamilyGuyDemuxed/AudioFile_80.ac3",2,0)
amplify(audio,15)
video = MPEG2Source("I:/FamilyGuyDemuxed/VideoFile.d2v")
AudioDub(video,audio)
Trim(0,1000)
ConvertToRGB32(interlaced=true)
area(deint=40,edge=25,blend=true,show=false) -
Should be
audio = Amplify(audio, 15)
Also, are you sure you don't mean to use AmplifyDB.
Multiplying the audio level by a factor of 15 seems a bit much...
Similar Threads
-
Converting Divx to VOB - having problems.
By martinlest in forum Video ConversionReplies: 9Last Post: 6th Mar 2012, 17:23 -
DVD VOB file to DIVX
By mukeshs in forum Video ConversionReplies: 5Last Post: 5th Apr 2011, 17:51 -
vob/mpeg2 to Divx close to Dr Divx?
By Tiribulus in forum Video ConversionReplies: 8Last Post: 5th Dec 2009, 11:52 -
divx -> vob ?
By webking1 in forum Newbie / General discussionsReplies: 3Last Post: 25th Nov 2008, 12:50 -
Dr. DivX converts large VOB files into tiny unusable divX files
By texas1 in forum Newbie / General discussionsReplies: 2Last Post: 6th Aug 2007, 21:44