Playback is over 22 minutes, but editing is only 3 1/3.

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
Angeteen
Joined: Sat Jul 03, 2004 10:48 am
Org Profile

Playback is over 22 minutes, but editing is only 3 1/3.

Post by Angeteen » Wed Nov 05, 2008 7:30 pm

I'm using a combination of AviSynth + VirtualDubMod in order to do the neccessary converting. The file is a .mkv which I am trying to get to an .avi. The current line of code should be correct which is the following:

DirectShowSource("C:\Higurashi no Naku Koro ni Kai 04.mkv", fps=23)

Despite everything being the way it should be why is everything after 3 1/3 minutes automatically treated like none of it is there?
For five years I've been an otaku and all I got was this lousy sub.

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Wed Nov 05, 2008 8:16 pm

Does closing the file and opening it help? This usually works for me if I've changed my script to give it a higher frame count than it originally had (for instance, removing a Decimate call) and just refreshing isn't enough.

Otherwise, what does VDubMod say the video's properties are? (File menu --> File Information...)
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
LivingFlame
Joined: Sat May 28, 2005 4:41 pm
Location: Closer than you think...
Org Profile

Post by LivingFlame » Wed Nov 05, 2008 8:27 pm

If what Scintilla says doesn't work, you might try FFMpegSource instead of DirectShowSource. DirectShowSource can be a bit finicky with .mkv files, I've found.

The call is:

Code: Select all

FFMpegSource("C:\File Path\File.mkv")
If you need audio with it, then use:

Code: Select all

FFMpegSource("C:\File Path\File.mkv", atrack=-1)
Though, for whatever reason, the audio thing doesn't always work for me. =\
... yea ...

User avatar
LivingFlame
Joined: Sat May 28, 2005 4:41 pm
Location: Closer than you think...
Org Profile

Post by LivingFlame » Wed Nov 05, 2008 8:31 pm

Forgot to mention, that link is to download FFMpegSource. It's in a .rar file, so you'll have to extract it. Afterwards, just drop the .dll in your AviSynth Plugins folder. Probably something like C:\Program Files\AviSynth 2.5\plugins.
... yea ...

Angeteen
Joined: Sat Jul 03, 2004 10:48 am
Org Profile

Post by Angeteen » Wed Nov 05, 2008 9:37 pm

I managed to get all of the video back. The only problem? It takes a few moments for the animation to work when I hit play. I'm using ffdshow to do the encoding; I don't know if it could be the codec itself that's messing it up, or not, but if so, then what other solutions should I try? Also the quality looks somewhat more downgraded than it should be like someone added a light blur affect; not really apparent, but there all the same to be an annoyance.
For five years I've been an otaku and all I got was this lousy sub.

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Wed Nov 05, 2008 10:02 pm

Well, yes, the video quality will be degraded unless you use a lossless codec, such as HuffYUV... but, fair warning, lossless codecs produce huge files. So it's recommended that you either cut small clips or edit with the AVISynth scripts directly.

(And if you don't think it's "really apparent" now, wait until you're done editing and you have to compress your finished video AGAIN. Generational losses can add up.)
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

Angeteen
Joined: Sat Jul 03, 2004 10:48 am
Org Profile

Post by Angeteen » Sat Nov 08, 2008 6:22 pm

Thanks for the help. The files are running smoother, and playing better now. Only one question; why is there an improvement in it? What is the difference between DirectShowSource and FFMpegSource? It's both H.264 isn't it?
For five years I've been an otaku and all I got was this lousy sub.

Locked

Return to “AviSynth Help”