Artifacts/Garbage when viewing via an AviSynth file 🏁
Forum

Forum



SearchSearch   Users   Registration   Entrance
Today: 31.08.2025 - 22:42:30
Pages:  1  

Artifacts/Garbage when viewing via an AviSynth file

Advertising


AuthorMessage

///M3N

users




Statistics:
Messages: 648
Registration: 06.03.2003

I'm using CamStudio with the CamStudio Lossless Codec to capture video of my computer screen. When I watch the video directly that was recorded by CamStudio, it looks flawless; no issues at all. However, when I watch it via an AviSynth script, I get all sorts of weird artifacts and garbage throughout the whole video. For example, a majority of the screen will turn black, but the CamStudio window will become a negative of the original window, or you can see all sorts of trails with the mouse movements, etc. Obviously, I don't want this to happen, nor do I have any clue why it's happening. Has anyone else ever experienced this and know a solution? Thank you. To provide some more info, here's my AviSynth script in its current state (it's only one line): AVISource("20120811_1007_56.avi") Whenever I load that script into VirtualDub or Media Player Classic, etc., it looks really weird. Thank you.

---------------------------------------
Mark
Message # 1 27.08.20 - 19:58:05
RE: Artifacts/Garbage when viewing via an AviSynth file

orangechicken

users




Statistics:
Messages: 185
Registration: 05.22.2001

I ran into that problem when I started using CamStudio. Based on what I could deduce from my own testing, it appeared to be related to some non-keyframes being decoded as pure black. Once that happened every other frame until the next keyframe was bad. Anything that moved would appear to jerk around randomly. It was most evident with the mouse pointer. Strangely this only happened in AviSynth. VirtualDub had no problems with those files. The solution I eventually settled on was using FFMS2 to open the videos. I haven't seen the problem since then. If, for some reason, that doesn't work, you could try opening the files with VirtualDub and saving in some other lossless format. As a last resort you could set the CamStudio codec to make every frame a keyframe, which sort of defeats the purpose of using it since the files get significantly bigger.

---------------------------------------
How do you delete your signature?
Message # 2 27.08.20 - 20:06:56
RE: Artifacts/Garbage when viewing via an AviSynth file

amar1293

users




Statistics:
Messages: 51
Registration: 11.03.2003

That's a great answer. Thanks a lot. How do I go about setting a different lossless codec in VirtualDub? Would it be possible to set a different lossless codec from CamStudio instead? Any recommendations? Thanks again.

---------------------------------------
Message # 3 27.08.20 - 20:18:36
RE: Artifacts/Garbage when viewing via an AviSynth file

dadhania

users




Statistics:
Messages: 176
Registration: 10.24.2003

Oh, okay. I think I'm starting to realize how this all works. Originally, I thought FFMS2 was some kind of full-on program, like VirtualDub, but after downloading it and looking at it, it appears to be some sort of AviSynth class/import file. Is that true? So basically, I need to import/load the FFMS2.avsi file I downloaded into my AviSynth script, and after that, I will use the FFmpegSource2 function in the file to load the video (instead of using the AviSource function), right? After that, I shouldn't have any problems, right? I suppose I should just try to use it myself instead of asking all these questions, but I'm kinda wondering what the ffms2.dll and ffmsindex.exe files are for. Also, since you have a lot of experience with all this, could you please provide a sample script for loading an AVI file with the FFmpegSource2 function as well as perhaps how to perform a few simple transforms? Thank you. I apologize for asking so much, but I really am new to all this, and seeing how a pro does it all (especially one who has experienced what I'm going through right now with CamStudio) is a great learning experience. Thanks again.

---------------------------------------
Message # 4 27.08.20 - 20:23:10
RE: Artifacts/Garbage when viewing via an AviSynth file

sedate

users




Statistics:
Messages: 250
Registration: 04.25.2001

FFMS2 is a video decoding library that can be used from a lot of different programs in a lot of different ways, but in your case you can pretend it's an Avisynth plugin that loads files in a way similar to AVISource(). Put ffms2.dll and ffms2.avsi in your Avisynth plugins folder, call ffmpegsource2("file.avi") in your Avisynth script and you're good to go. Note that audio is disabled by default, use atrack=-1 to enable it. Also note that opening files for the first time may take a while, since FFMS2 needs to index them before they can be opened. The indexing information is written to a file after opening so it can be reused later. ffmsindex.exe is a helper program that you can ignore. It's a command-line tool that generates ffms2 index files; it's mostly useful for people who need a progress report on the indexing.

---------------------------------------
Message # 5 27.08.20 - 20:26:38
RE: Artifacts/Garbage when viewing via an AviSynth file

95MMM

users




Statistics:
Messages: 2,884
Registration: 04.15.2003

Very helpful. Thanks a lot.

---------------------------------------
///M3 Cc#65 95 M3 Alpine White Acquired 6/17/03 Cosmos Racing 3.5" CAI / AA Stage II Euro HFM Kit / UUC Stage II Flywheel / M5 Clutch / AA Gen III Exhaust / Bilstein + Eibach Prokit / OEM X-Brace / AA Strut Brace / ZKW + OEM M5 Projectors / Philips 8
Message # 6 27.08.20 - 20:32:17
RE: Artifacts/Garbage when viewing via an AviSynth file

RRSperry

users




Statistics:
Messages: 12,418
Registration: 03.18.2002

Sorry for all the posts. Anyway, I just wanted to let you know, TheFluff, that I tried out what you said, and it worked perfectly. Vurbal, thank you as well for all your help. This is a great board, and everyone is very helpful. Thanks a lot.

---------------------------------------
No matter where you go, there you are...
Message # 7 27.08.20 - 20:36:35
RE: Artifacts/Garbage when viewing via an AviSynth file
Moving from PC to MAC ? : Previous topicNext topic: Odd flanging sound when recording
Pages:  1  

Message
Name
Message

Click on the dot next to the name to address the participant

           
   
The administrator has prohibited guests from replying to messages! To register, follow the link: register


Participants

Powered by platform: bbPress 2.19