I have an RMVB file. I wish to end up with an m2v file and an ac3 file.
Step one, create avs file with the following:
Step two, play avs file in MPC. Works fine.DirectShowSource("linktofile.rmvb", fps=29.97, convertfps=true)
Step three, open avs file in TMPGEnc, cut off the first few seconds, check the rest of it. Works fine.
Step four, set encode settings.
Step five, preview output. Works fine.
Step five, put m2v and ac3 files into Encore, burn disc. Play disc. Audio is one second ahead of video.
Step six, repeat steps three, four and five, encoding to mpg instead of m2v/ac3 to see if the audio is in sync. Audio is still in sync when previewing output in TMPGEnc. Encode.
Step seven, open MPG file. Audio is one second ahead of video.
Step eight, throw hands in air, head to VideoHelp.
It's cutting off the first second or so of audio for some reason, and then lining up the start of the actual sound with the start of the video instead of leaving a second or so of silence. But again, it works fine when playing the avs in MPC, and when previewing the output in TMPGEnc, so it makes absolutely no sense.
+ Reply to Thread
Results 1 to 8 of 8
-
-
Try cutting in the script instead of TMPGEnc
DirectShowSource("linktofile.rmvb", fps=29.97, convertfps=true)
Trim(90,0)
"90" would be ~3 seconds because fps is 29.97 , so adjust it to wherever you want to make the cut, preview the script, etc...
Another method would be to multiplex with a +/- delay if the sync is constant -
Another possiblity (just a guess, since we don't have a MediaInfo report about your .RMVB): Variable Bitrate Audio (RealAAC). Give a try to EnsureVBRMP3Sync()
According to the documentation:
EnsureVBRMP3Sync (clip)
EnsureVBRMP3Sync will ensure synchronization of video with variable bitrate audio (MP3-AVI's for example) during seeking or trimming. It does so by buffering the audio. The name of the filter is a bit misleading, since it is useful for every stream with variable bitrate audio and not just for MP3.
It will slow seeking down considerably, but is very useful when using Trim for instance. Always use it before trimming.
Code:# Ensures that soundtrack is in sync after trimming AviSource("movie.avi") EnsureVBRMP3Sync() Trim(250,2500)
-
Just added the trim, as per the first suggestion, and it works fine.
-
What I want to know is who the hell is still making these stupid RMVB files?
Scott -
^ According to a FFmpeg deviloper (roozhou), RealMedia is alive and well in the Far East countries.
And WMV, sadly, still is largely used for pornography.
Anyway, here is a list of some "officially-dead"
codecs and containers:
ogg
asf
rm(vb)
ms-mpeg4, wmv1, wmv2
wma (all flavors of it)
vorbis
atrac3
musepack
theora
vp3, vp4, vp5, vp6, vp7, vp8Last edited by El Heggunte; 13th Aug 2011 at 18:55. Reason: typo
-
I don't know where you got that "official" list, El Heggunte, but there's nothing official about it.
vp8 = WebM and it's expanding, and usually that means support for the older vp's as well.
asf = wmv container. I don't have a problem with the container on a technical level (it's more full-featured than AVI), it's just the MS-centric-ness that bothers me. But as long as MS is around, wmv (aka asf) will be too, in one form or another. that includes wma. not going away anytime soon.
atrac-3: lots of sony hardware still supports this (like ps3).
IMO, ogg was never ready for prime time, and I couldn't care less about musepak & theora.
I'd much prefer what seems to be happening now: the trend to consolidate and streamline into a few major, well-designed, robust, full-featured, low- to no-cost/license mass codecs (whether they be proprietary or FOSS though that's preferable). Then everybody can share and interact much better with less hassle.
Me, I stopped outputting to RM around 2002.
OP, if you have further troubles, try doing it in 3 stages: Decode RMVB to Intermediate I-frame video format with LPCM/CBR audio, then Edit, then Encode to M2v/Ac3. Takes extra time and HD space, but I bet your sync problems go away for good.
Scott -
Excuse me, but for me it's difficult to believe you DID NOT notice that I was just kidding.
Anyway, ...
vp8 = WebM and it's expanding, and usually that means support for the older vp's as well.vpxenc is slow as hell, not to mention the infamous VfW-port of VP8. I am not aware of any plans for future support of older VPs indide WebM files.
asf = wmv container. I don't have a problem with the container on a technical level (it's more full-featured than AVI), it's just the MS-centric-ness that bothers me. But as long as MS is around, wmv (aka asf) will be too, in one form or another. that includes wma. not going away anytime soon.
atrac-3: lots of sony hardware still supports this (like ps3).Years ago, RealNetworks licensed and implemented a high-bitrate version of ATRAC3 (up to 352kbps). But today, unless you have a functional RealProducer 8.5, you cannot create those "archival quality" RealAudio files. And yes, the codec is locked at the sampling frequency of 44.1kHz
(there IS a hack/workaround for that limitation, but it's not worth the effort, IMHO).
Last edited by El Heggunte; 13th Aug 2011 at 18:56. Reason: yet another typo
Similar Threads
-
.m2v + .ac3 + .sub/.sub to .mpg
By stevie99 in forum Video ConversionReplies: 2Last Post: 9th Apr 2012, 03:01 -
How do you insert an audio clip between audio clips in AVS Video Editor
By johnharlin in forum EditingReplies: 1Last Post: 19th Apr 2011, 01:17 -
Please help me with the AUDIO in AVS Video Editor 4.2
By scissorhands in forum Newbie / General discussionsReplies: 0Last Post: 5th Sep 2010, 02:59 -
Super Slow AVS to M2V
By Subblue586 in forum Video ConversionReplies: 4Last Post: 15th Jan 2010, 19:52 -
Need help converting SCM files to mpg or avi or rmvb or wmv
By US Guy in forum Video ConversionReplies: 3Last Post: 6th Aug 2007, 01:01