PDA

View Full Version : Why is it so hard to properly interleave flv videos?


Cococokie
24th June 2007, 19:54
Why is it so hard to properly interleave flv videos with mp3 audio? It almost always go out-of-sync when i convert it with virtualdubmod especially when the flv has variable framerate. No matter how i skew and delay it. What do i do when the flv (after DirectShow()ed), to get a perfect sync with the audio? Has it got to do with flv's timecode?

Extra questions:
1. Which interleaving method is better? Interleaving by ms or by frame? Which is the more popular one?

2. Why can't virtualdubmod or virtualdub use decimals for framerate and frame interleaving?

3. What can i do when virtualdub warn me about subtitles overlapping? Any methods to convert correctly?

4. Xvid has no multi-pass encoding? Not sure about this, as virtualdubmod only encode xvid in single-pass. Is there options to set to get multi-pass for Xvid and Divx 5.x?

5. AutoGK or Gordian Knot is better? As far as i can see Gordian Knot is way more complicated than the autoGK one.

6. Is there any way to use direct stream copy in autoGK like in virtualdubmod?

7. Can i not install any Gordian Knot Codec pack but K-lite Mega codec pack and use it on Gordian Knot Encoding Application.

8. Why some videos no matter how i try to trim off the beginning "Universal Pictures" credits like 5 secs? It just wont get trimmed.

Sorry that i have quite many questions to ask. Please help! Thanks a lot if all my questions are resolved.!

LoRd_MuldeR
24th June 2007, 20:08
VDub requires a constant framerate, always!
If not, it will become out of sync. And of course a simple delay cannot fix that, as the delay is not constant.

Try it this way:
DirectShow("C:\Path to File\Foo.flv", fps=25, convertfps=true)

Blue_MiSfit
24th June 2007, 23:11
4. Xvid has no multi-pass encoding? Not sure about this, as virtualdubmod only encode xvid in single-pass. Is there options to set to get multi-pass for Xvid and Divx 5.x?


Of course Xvid and DivX support multipass encoding. You have to set up each pass individually.


5. AutoGK or Gordian Knot is better? As far as i can see Gordian Knot is way more complicated than the autoGK one.

Better is a subjective opinion. AutoGK is very fast and simple. Gordian Knot is honestly pretty deprecated at this point, as it hasn't been updated in years. It's pretty flexible, but I would really recommend using something newer like MeGUI, StaxRip etc..


6. Is there any way to use direct stream copy in autoGK like in virtualdubmod?

The two are designed for totally different things. AutoGK is an encoding front-end. VirtualDub is an all around AVI utility. It can perform things like capture, processing, encoding, linear editing, and direct stream copy.


7. Can i not install any Gordian Knot Codec pack but K-lite Mega codec pack and use it on Gordian Knot Encoding Application.

Do not use codec packs. They are ill concieved, usually by people who don't understand how billions of codecs interact. You don't need all the crap they come with. The GK Codec pack is a good one, but it's very outdated. Just install a recent version of Xvid or DivX and be done with it.



8. Why some videos no matter how i try to trim off the beginning "Universal Pictures" credits like 5 secs? It just wont get trimmed.

Not sure, you're probably trimming incorrectly. How are you trimming?

~MiSfit

foxyshadis
25th June 2007, 04:04
Interleaving only has anything to do with sync in pathological cases, like no interleaving. The two tracks will always have the same start points and durations, only going out of sync if they ride your hard drive too much. Otherwise, this is definitely a framerate/count issue, not interleaving.

Fractional framerates are allowed. Fractional interleave isn't based on the avi spec.

Subtitle overlap isn't really a problem. It can be, but it generally isn't; textsub is smart enough to push the first sub up to make room for the second.

Better is a subjective opinion. AutoGK is very fast and simple. Gordian Knot is honestly pretty deprecated at this point, as it hasn't been updated in years. It's pretty flexible, but I would really recommend using something newer like MeGUI, StaxRip etc..
Not just old, since old isn't necessarily worse, it's also a difficult and confusing workflow. (And ugly to boot.) The other tools mentioned work because they take care of the ugliness behind the scenes, using up-to-date capabilities of the different software.

Cococokie
25th June 2007, 10:44
@Blue_MiSfit
Of course Xvid and DivX support multipass encoding. You have to set up each pass individually.

-How to set up each pass individually?

Better is a subjective opinion. AutoGK is very fast and simple. Gordian Knot is honestly pretty deprecated at this point, as it hasn't been updated in years. It's pretty flexible, but I would really recommend using something newer like MeGUI, StaxRip etc..

-Oh thanks. Note taken.

The two are designed for totally different things. AutoGK is an encoding front-end. VirtualDub is an all around AVI utility. It can perform things like capture, processing, encoding, linear editing, and direct stream copy.

Do not use codec packs. They are ill concieved, usually by people who don't understand how billions of codecs interact. You don't need all the crap they come with. The GK Codec pack is a good one, but it's very outdated. Just install a recent version of Xvid or DivX and be done with it.

Not sure, you're probably trimming incorrectly. How are you trimming?
- I tried to trim 10 secs after the video starts. I think maybe i know why. I set interleave similar to the framerate(25). Maybe 10 secs is not a multiple of 25 frames. I know setting 25 frame interleave is wrong now. I should set 2 instead (read from FAQ).


@foxyshadis
Thanks for the info. No wonder installing GK codec pack seems outdated compared to k-lite. It ask if it should overwrite the updated version luckily i select no. And there is no way to uninstall GK codec. =(