Log in

View Full Version : Avisynth Problem Solved


Beak
9th December 2012, 23:50
I have been having an intermittent problem for quite some time that I have just solved. It may have been unique to my machine but I am posting just in case others have had the same grief.

I occasionally re-encode my movies for Ipad, Ipod, or AVCHD discs. If I am not being too fussy I like to use some of the filters in FFDshow to tweak things but the AVS script would often stutter a bit and the encodes would be ruined.

What I just found is that if I remux the file and remove all but the video and 1 audio stream before encoding, this stuttering disappears completely.

The file can then have whatever subtitles added again or a second audio stream and play smoothly as it should.

The problem would only occur when encoding or playing back the AVS file directly.

Hope this may be of help to anyone having similar grief.

Sparktank
9th December 2012, 23:58
Without script examples and other details in programs/settings used, that doesn't give too much to work with in diagnosing (possible) common problems others may (or may not) have.

Beak
10th December 2012, 00:41
No particular script. Any script made by MeGui's AVS Script creator would have the flaw. It was more noticeable on 1080p content.

The resulting encode would stutter slightly or the AVS file itself would stutter if played in BSPlayer, which is what I generally use.

It was very apparant if the original file had several audio and subtitle tracks.

As I say, simplifying the stream removed the problem for me. If you need or want more info,I;ll give you what I can.

The latest script was as simple as this,

DirectShowSource("C:\Users\Brendan\Downloads\Les.Miserables.1998.1080p.]\Les Miserables.m2ts", fps=23.976, audio=false, convertfps=true).AssumeFPS(24000,1001)
#deinterlace
#crop
#resize
#denoise

Keiyakusha
10th December 2012, 03:29
Most likely your problem is Directshowsource. This is not something you want to use for encoding.
Also I don't use megui myself, but I hardly believe that " Any script made by MeGui's AVS Script creator" will have directshowsource in it. most likely you configured it like that, or for some reason all other options are not available.

Beak
10th December 2012, 13:48
Most likely your problem is Directshowsource. This is not something you want to use for encoding.
Also I don't use megui myself, but I hardly believe that " Any script made by MeGui's AVS Script creator" will have directshowsource in it. most likely you configured it like that, or for some reason all other options are not available.

MEGui asks each time if a directshow decode is desired.

If the file being re-encoded is played directly in BSPlayer using FFDShow, it plays smoothly.

Keiyakusha
10th December 2012, 14:20
If the file being re-encoded is played directly in BSPlayer using FFDShow, it plays smoothly.
Yes I understant this. But by saying this it suggests that my guess is more likely true. Directshow meant for playback not for encoding. It gives problems for encoding and you should avoid it as much as possible. It should be selected for encoding purposes only as "last resort". If everything else is not available to you.
Edit: not to mention that except being bad by itself, directshow may use broken/suboptimal decoders/splitters that are not the same as the ones used for playback.