Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Screen Tearing In Virtualdub But Not In Source Vid, Screen Tearing in Virtualdub but not in
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Tokr24
Posted: Nov 21 2013, 08:13 PM


Newbie


Group: Members
Posts: 6
Member No.: 37482
Joined: 21-November 13



Hi,

Hi I'm new to the forums. Got an issue I hope someone might have some experience with; did a quick search but didn't find much about this type of tearing. So what is happening is that I recorded some in-game footage through Afterburner with the default settings (non-264 encoder, AVI file, vfw) and when shrinking that for Youtube (MP4) I found the quality poor and the file sizes rather large for such poor quality. So I started to learn about properly encoding (still got crap raw footage but can't do much about it now) and that is what has led me to my current dilemma.

The large and unwieldy files that aren't x264 encoded do not have any screen tearing but when I stick them in Virtualdub the screen tearing happens and it sticks through after the compression process (please correct if I'm using the these terms incorrectly), this is an example: https://www.youtube.com/watch?v=FfEystqU284 (Tearing starts at the 00:16 mark and happens throughout in a random fashion)



I am using the x264vfw video codec and lameACM audio codec and my machine is decently up to par. Does anyone know what causes the tears? Let me know if (and how) you need more technical details from my side.

Thank you in advance.
 
     Top
dloneranger
Posted: Nov 21 2013, 10:15 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Can you upload a small part of the original - the first 20 seconds or so
Given that the sample is on youtube, the problem could be anywhere from the source, conversion or youtubes reconversion
(You don't say if the glitch in in your finished file before uploading to youtube)

Any online host would do eg http://uploaded.net/

If I had to give a wild offhand guess I'd ask if the pc's running overclocked

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
Tokr24
Posted: Nov 22 2013, 02:38 AM


Newbie


Group: Members
Posts: 6
Member No.: 37482
Joined: 21-November 13



Hi,

PC isn't overclocked; I'll try to get an upload tonight...I have a small clip that's 1:41 minutes but it's 3.23GB. It's an unedited clip that has a few frames of the tearing in Virtualdub. I'll try to be a little bit more concise: in this file I will try to upload, when I open it with any media player (e.g.: Media Player Classic, or even the basic Windows Media Player) there is are no tears. But when I open it through Virtual dub I start seeing them and they come out after I compress them.

I'm running an I5-3570k and a GTX 560 Ti 448 card. The processor, as you probably already know, is unlocked and ready to be overclocked but so far it's handled everything fine and I don't run much programs that are CPU intensive to the point where I need to start overclocking...yet.

I'll edit this post once the upload is complete, but iirc most hosts require payments of some sorts in order to download files of large sizes, yes?

Thanks in advance again.

PS: If it is the case that it's too big to download, the raw AVI, what would be another way to get it to you? If I trim it with Virtualdub you'll just get the file with the tears everywhere, not as it is (tears only appearing on virtualdub but not through a media player).
 
     Top
dloneranger
Posted: Nov 22 2013, 05:54 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



Ok, that sounds like the decoder that virtualdub is using is broken
Instead of uploading a file that large, can you give a screenshot of virtualdub's file information dialog (on the file menu) so we can check the decoder


Alternately, you can try the directshow input plugin here http://forums.virtualdub.org/index.php?act...=ST&f=7&t=15093
Extract DShowInputDriver.vdplugin from the release folder to virtualdubs plugins32 directory (or if using 64bit virtualdub the one in x64\release into the plugins64 directory)
Then start virtualdub, and from the file menu, open a video, select the one you want but before clicking ok change the 'files of type' to directshow
If that works ok then it's nailed it down to the VFW codec that virtualdub would normally use with avi's
The file information dialog will let us see what that is





--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
Tokr24
Posted: Nov 22 2013, 07:24 AM


Newbie


Group: Members
Posts: 6
Member No.: 37482
Joined: 21-November 13



Hi,

Dropped the upload to the AVI but attempted to post the info as requested: http://postimg.org/image/fi0lrsu2p/

Tomorrow I'll get the plugin you suggested and post that info too; thanks so much for the assistance : )
 
     Top
dloneranger
Posted: Nov 22 2013, 01:41 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



So it's using virtualdubs own mjpeg codec to decode
You can try disabling that and letting it use any vfw codec that you have installed for it (if you have one), or use the DirectShow plugin (which will use the pc's directshow codecs) of the ffmpeg plugin
Then see how any of those options work out
If they're fine, then it looks like a problem with that internal codec

to turn off virtualdubs own codecs, in the prefereces dialog->avi entry->untick prefer internal video decoders over installed third party codecs (mjpeg and dv)

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
Tokr24
Posted: Nov 22 2013, 10:50 PM


Newbie


Group: Members
Posts: 6
Member No.: 37482
Joined: 21-November 13



Hi,

So there is some good news and slightly bad xD. The first is that the tearing is no longer there after following the directshow plugin instructions but the bad news is that now there is a sound issue. But first, some pics to give you a better idea: this one is the file info with the directshow plugin http://postimg.org/image/6w1dr26tf/ (I couldn't make the box any bigger).

And the second pic is my settings on the x264vfw codec I have for Virtualdub. The reason I'm posting it is because the first pic still says I'm using the internal codec (if I'm reading it properly) but as you can see I have the x264 highlighted and its settings (for a second pass on this one vid) customized and I found out that the internal codec overrides were off from the start and I didn't have to untick them. It even generates the STATS file too...so that confuses me. http://postimg.org/image/spg6yhqj5/full/

Now the sound issue is sort of interesting and in a way not a significant one; when I load up the videos in virtualdub there is some slight distortion including small pop and static but the great thing is that it doesn't continue if I process and encode the AVI as usual. This only appears within Virtualdub but not the finished product, so I'm confused as what it may be but since it doesn't show after the video is compressed I'm not too worried as it's no real issue.

Also, if you have time to spare, I was searching through the internal plugins for something to add silence between appended clips as I have a couple where the audio cuts off 2-3 seconds before the video is done and this starts the audio for the next appended clip. At this point the video from the first clip is finishing but the audio from the second has already started and the rest of the clip is out of synch by 2-3 seconds. Would you have some advice on that while I'm here?: )

Lastly, I just wanted to say thanks for the great assistance - it is very much appreciated and it will hopefully be reflected in the higher quality video I produce biggrin.gif!

EDIT: Nvm about the audio synch thing, I found this post and I think it should help =P. http://forums.virtualdub.org/index.php?act...io+out+of+synch
 
     Top
dloneranger
Posted: Nov 23 2013, 12:33 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



The first pic shows the way the video is being decoded (I don't think it's using the internal filter, just one with a very similar name)
The second is the encoder you've chosen

You actually use two codecs most of the time, one for decoding, one for encoding
The settings for the codec used to encode are normally persistent - the codec saves it's settings in the registry (or similar) when you click ok, so the next time you come to use it, they're what they were last set on

btw there are a few things about your settings
1) that ultrafast setting is not great for quality/bitrate as it turns off a lot of things x264 can do just to make it go faster. I'd go with medium
2) profile high 10 is a waste usually unless you have anything that can actually display 10bit per channel colour???? High would be fine

There's a decent description of levels and profiles http://blog.mediacoderhq.com/h264-profiles-and-levels/

The sound issue will just be virtualdub having trouble keeping up realtime audio from the source - it's not really designed as a player so doesn't do all the tricks that players do + the larger file sizes of the source can be a pain for the hard drive to keep up smoothly
It's not an issue for the finished file, as the encoding doesn't have to be realtime

I haven't tried any game encoding, but you might want to try a test with using x264's ratefactor based encoding
Can't say what the file size would be like, but for speed and quality, it should be better - I guess it depends on how much carnage is going on ;-)
screenshot of settings http://forums.virtualdub.org/index.php?act...1157&hl=x264vfw

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
Tokr24
Posted: Nov 23 2013, 08:16 AM


Newbie


Group: Members
Posts: 6
Member No.: 37482
Joined: 21-November 13



Hi,

So I tried the the CRF setting and when it's at about 20 it seems just as good as 2 passes. Also, changed up the settings so it isn't ultrafast, etc. I just downloaded Avisynth to try and input some silence between clips in order to keep audio synch but I'm sort of stuck...:

-I made a basic script in notepad++ and saved it as .avs
-I opened that .avs through Virtualdub
-I configured it to my liking and started the frameserve and made a .vdr file and Virtualdub shrunk into a small window...but what do I do next? I'm stuck at that point in the tutorials xD
-How do I open the .vdr file after I'm frameserving? The main thing I want to do is just add silence which I searched and I should be able to through a Tone script I think.
 
     Top
dloneranger
Posted: Nov 23 2013, 12:25 PM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



You dont need to do any frame serving, just open the avs and you can save straight away

--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
meowmeow
Posted: Nov 23 2013, 11:53 PM


Advanced Member


Group: Members
Posts: 98
Member No.: 37160
Joined: 21-September 13



QUOTE (Tokr24 @ Nov 23 2013, 08:16 AM)
add silence which I searched and I should be able to through a Tone script I think.

if avs script using

QUOTE (AVS @ 2004/03/07 22:44:06)
DelayAudio (clip, float seconds)

DelayAudio delays the audio track by seconds seconds. Seconds can be negative and/or have a fractional part.

# Play audio half a second earlier
DelayAudio(-0.5)
 
     Top
dloneranger
Posted: Nov 24 2013, 12:46 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



His clips have some that the audio is shorter than the video, not out of sync
To join them up so that blank audio is added at the end of each clip (to make the audio the same length as the video) and keep them all in sync you'd use aligned splice

eg where ++ means aligned splice
DirectShowSource("cap1.avi") ++ DirectShowSource("cap2.avi") ++ DirectShowSource("cap3.avi")


--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
Tokr24
Posted: Nov 24 2013, 01:46 AM


Newbie


Group: Members
Posts: 6
Member No.: 37482
Joined: 21-November 13



Hi,

Going to sound redundant but I was cramming all the wiki info I could into my brain and finally found unaligned and aligned splice (I read your post just now, after I found it, which makes mine sort of redundant)! So I got everything I need : ). One last question: since I'm opening the avi through Avisynth via "DirectShowSource" does that mean I don't have to open the the avi through the file menu and change the file type to DirectShowSource too? When I'm importing the avi into Virtualdub that is - "... from the file menu, open a video, select the one you want but before clicking ok change the 'files of type' to directshow". Or are they two different things altogether?
 
     Top
dloneranger
Posted: Nov 24 2013, 01:48 AM


Moderator


Group: Moderators
Posts: 2366
Member No.: 22158
Joined: 26-September 07



You can just load the avs file normally as avisynth will be doing the codec loading

In avisynth, avisource would use the same vfw codecs that virtualdub uses and directshowsource would use the directshow ones
So here you'd just load the avs file and your script would govern which would be used


--------------------
MultiAdjust JoinWav WavNormalize FFMPeg Input Plugin v1827 UnSharpMask
Windows7/8 Codec Chooser
All FccHandlers Stuff inc. Installers for acm codecs AAC, AC3, LameMp3
 
    Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
13 replies since Nov 21 2013, 08:13 PM Track this topic | Email this topic | Print this topic

<< Back to Newbie Questions