You may need to run the install program as admin.
You can test if AviSynth is already installed with a simple script:
Open that with an editor like VirtualDub or media player and you should see a small video with the AviSynth version number.Code:Version()
Note that 32 bit AviSynth requires a 32 bit editor/player and 32 bit AviSynth filters. 64 bit AviSynth requires a 64 bit editor/player and 64 bit filters.
+ Reply to Thread
Results 31 to 42 of 42
-
-
You might be better off reading the introductory pages at the AviSynth site:
http://avisynth.nl/index.php/Main_Page
MeGUI uses AviSynth and if you've used it before, you can study the scripts it makes to learn your way around AviSynth. The other two don't use it, I don't believe. Well, I know Handbrake doesn't. ffmpeg is a black hole to me.
The best way to learn how to work with DVDs using AviSynth is, in my opinion, to read and understand the docs included in the DGMPGDec package. One of your pics mentioned LibavVideoSource which you don't need when working with DVDs. Mpeg2Source will serve you better. Again, in my opinion. -
So ffmpeg actually did ok with IVTC here at least on your samples. I will check others, but I'm pleasantly surprised. But maybe it is fixed. I'd still be reluctant to use it until it's really shown to be consistent..
There are slight variations and settings you can play with, but the current "favorite" way is fieldmatch with yadif fallback for combed frames, and decimate
Code:-vf "fieldmatch, yadif=deint=interlaced, decimate"
But there are reasons you might want to use avisynth in general or even in this specific case. A big reason is you can preview the result in avspmod or vdub. If you add nlmeans or some other filters with some settings, you can "see" the result. If you didn't like what you saw you can readjust. With ffmpeg you will waste a lot of time going back and forth and re-encoding (and at 4-5 fps it's going to really suck). You might choose to use other filters. For example you might crop some of the borders. Difficult to know what values to use in ffmpeg.
Also there are much faster filters and variety to choose from than nlmeans typically used for general denoising. -
ffmpeg code worked (I think) but also created some problems with the audio sync and speed of the video playback. The video seems to be sped up (characters moving fast) and audio seems to play at normal rate, compared to the original vob file.
Just a brief/quick update. TL; DR (too long didn't read):
I think ...
(1) Managed to get my first avisynth script going. Created an .avs file using AVSPMOD, followed youtube tutorial and did the whole IVTC on the video footage.
(2) Opened .avs file in virtualdub and created a large 185mb 33 second video only .avi file.
(3) Now at a point where I'm trying to figure out how to "mux" the audio and video file together.
(4) And make sure they sync up because IVTC was performed on the video portion.
Bookmarked.
Test script with version() saved as version.avs, ran it through virtualdub (open video file) and it shows version AviSynth 2.60a
Following the visual instructions presented in the following video along with his other short brief videos, and created a thing called Avisynth + Script (1kb in size) in AVSPMOD. Very cool, immediate preview pressing F5 function key.
https://www.youtube.com/watch?v=NAYGEI60imc
Using his next video, I generated a very large video file (185mb; 33 seconds) with no audio through virtualdub by dragging the "Avisynth + Script" directly onto virtualdub.
Will&GraceScriptEDITPERYOUTUBEinstructions (.avi file) 185 mb Video only. He didn't mention anything about mux audio together.
https://www.youtube.com/watch?v=cBmot20YY-g
Now I'm at the point where I've got the following files:
Will&GraceScriptEDITPERYOUTUBEinstructions (AviSynth + Script) 1 KB
Will & Grace S1 D1 Ep2 - A New Lease on Life NEXTEST T80 2_0ch 192Kbps DELAY 0ms (.ac3) 788 KB
Will & Grace S1 D1 Ep2 - A New Lease on Life NEXTEST.d2v (D2V File) 5 KB
Will & Grace S1 D1 Ep2 - A New Lease on Life NEXTEST.demuxed (.m2v) 22,200 KB
Will & Grace S1 D1 Ep2 - A New Lease on Life (.vob) 809,100 KB
I tried using MkvtoolNix to mux the video generated through virtual dub (.avi file 185mb) and the .ac3 file (788kb) generated using DGIndex, but that didn't turn out well. Still no audio.
(A) So basically I'm at the point where I'm trying to learn what to use with the .ac3, .m2v, DV2, and the .avi file generated ....
(B) How do I mux the audio and video portion? Do I use the .ac3 file and .avi file, or one of the other files?
(C) I'm also guessing the 20 second 185mb video only file will need to be "compressed" maybe using avisynth or ffmpeg or some other encoding program.
EDIT: Update:
I did some internet search and found the following code but I had to modify it in order to work (modification below) to join the .ac3 file (audio) and .avi (video).
Code:ffmpeg -i "C:\test.m2v" -i "C:\test.ac3" -acodec copy -vcodec copy -vtag "MPG2" -f avi "C:\test.avi"
Someone demuxed "a DVD down to a .m2v and .ac3 files (video and audio) to do some corrections to the audio. Now I want to mux it together again, but this time as an avi container. I tried with VirtualDu/VirtualDubMod, both in direct stream copy and full processing mode, but it won't accept my video stream. Is there any other solutions/software I can use to accomplish this?"
Code:ffmpeg -i "Will&GraceScriptEDITPERYOUTUBEinstructions.avi" -i "Will & Grace S1 D1 Ep2 - A New Lease on Life NEXTEST T80 2_0ch 192Kbps DELAY 0ms.ac3" -acodec copy -vcodec copy -f avi ZEBRAtest.avi
** yes, I named it ZEBRAtest.avi because that's the first thing that came to mind; i was drawing a blank.
The code just above seem to have put the audio file (.ac3) and video (.avi) in sync.
But the more important question is ... is this the "proper" way to do this after running avisynth and virtualdub, etc.?Last edited by strawberryshortcake; 24th Apr 2018 at 20:19.
-
There is more than one way to do this, everyone has different preference
But most people wouldn't generate the AVI file. Unnecessary step unless you were using an intermediate to use in another program like a video editor. If anything it would just be the final elementary encoded /compressed video stream from the final encoder. Or if you were going to use vdub/vdubfiltermod, then encode video and audio and mux right away. vdub2 can export mp4
ffmpeg can run avs scripts too , some people like doing it that way. Because it can do audio, video and mux in 1 step
Others like batching with several tools like mp4box to mux, x264 to encode, qaac to encode audio. There are examples of batch scripts on this site . Some of the separate tools have more control and in the past were less prone to problems. Some people don't like ffmpeg muxes for example . Megui is actually a GUI that does it this way
In your first post, you were re-encoding the audio to AC3 192Kbps. But this last example was copying the audio. Some people would compress farther using AAC or even opus to smaller filesizes since I thought that was one of your main goals
Someone demuxed "a DVD down to a .m2v and .ac3 files (video and audio) to do some corrections to the audio. Now I want to mux it together again, but this time as an avi container. I tried with VirtualDu/VirtualDubMod, both in direct stream copy and full processing mode, but it won't accept my video stream. Is there any other solutions/software I can use to accomplish this?"
Audio and video can be done separately, there is no need to mux before into an AVI
Or you can even specify audio & video in the script with audiodub(). Personally I like doing it this way, because you can check for sync in a media player . That delay value written in the audio file name is sometimes not zero. It sometimes has to be compensated for with DelayAudio() or in the muxer itself. But if you include audio in the script, it means it's passing uncompresssed audio. This means stream copy won't work (you're re-encoding audio). But even when I'm copying audio, I sometimes include audio in the script to check sync . But some slow scripts cannot playback in realtime, so those are useless for using the realtime/sync preview on. For example if you used NLmeans (It's TNLMeans in avisynth) and you got 4-5fps, that would be useless for checking sync because it's much slower than realtime. You would need to temporarily disable (comment) out the slow filters.Last edited by poisondeathray; 24th Apr 2018 at 22:28.
-
And I prefer opening the video-only AviSynth script in RipBot264 and then adding the audio separately. It'll reencode to h.264 video and AAC audio, followed by muxing both as either MKV or MP4. I resize my 4:3 DVDs to 640x480 but if you're encoding 720x480 (or 704x480 after removing the black bars) you should also set a SAR before doing the encoding. As pdr said, making an intermediate AVI in this case is a waste of time. As pdr said, there's more than one way to skin a cat.
-
Yes the ffmpeg ivtc has jumps in the motion (wrong dropped frames) and duplicate frames. I verified with your elementary audio and video and repeating the process, even tried muxing it first. So back to what I said earlier - inconsistent and unreliable. So stick with avisynth for this
If you wanted to use the avs for the video and stream copy the ac3 audio, into mp4 using ffmpeg , it would look something like this (of course you would adjust settings to your tastes)
Code:ffmpeg -i input.avs -i "Will & Grace S1 D1 Ep2 - A New Lease on Life NEXTEST T80 2_0ch 192Kbps DELAY 0ms.ac3" -map 0:0 -map 1:0 -c:v libx264 -crf 20 -vf setsar=sar=8/9 -c:a copy output.mp4
Now some apple devices (you mentioned ipad) don't "like" AC3 audio in MP4 container. They like M4V when AC3 is used (M4V is a modified MP4 container). AAC audio is more compatible for Apple devices. If I were trying to reduce filesize, and have it compatible on apple devices, that's what I would use (AAC)
I saw your script and personally I wouldn't use lsfmod or reduce the strength. Especially if you wanted to reduce bitrate. "Sharpened" video consumes more bitrate so your filesize will be larger at a given CRF value. It's just as easy to enable a sharpener in your media player -
So, I'm back at fiddling with VOB an AVSPMod just right now and am getting constant errors when previewing (F5).
Now sure how to decipher the error code:
TypeError: %d format, a number is required not a float.
DV2 file created with DGIndex was dragged into AVSPmod. I have both the 32 bit and 64 bit AVSPmod. The 64 bit triggers the error message; the 32bit does not.
Last edited by strawberryshortcake; 1st May 2018 at 00:55.
-
-
Good to at least know an expert veteran has the same issue and can't figure it out ---Me, a newbie is finally on the same level as the expert in one area... And yes, when you said .dll from hell, that's exactly what Avisynth is. I've gone over to the dark side.
Internet research had a couple individuals removing a 32-bit .dll from their 64 bit plugin folder and that resolved some errors with AVSPmod. I tried wiping out my 64bit plugin folder, reinstalling that AMVpack one click install (animemusicvideo.org pack) and nothing changed. Still getting that error. Yes, I did make sure I copied and pasted all the original and download plugins.dll in a separate desktop folder before I did the wipe.
Loving Hysteria and FastlinedarkenMOD combination for 480p animation. Absolutely needed to keep those. -
Spoke too soon.
I'm having some issues with the fastlinedarkenMOD.avsi. It's in the plugin 64 bit folder but am having issues.
Script Error: There is no function named fastlinedarkenMOD
EDIT: Update, Okay. I got it back working again. AVSPMod was giving me an error saying I must save it not with UTC-8 or something but need it to be saved with ASNI (or something) encoding.
Had to open FastLineDarkenMOD in Notepad++ so that I can save it using ANSI encoding or whatever it's called. Standard notepad doesn't have that capability. But still it wasn't working for some reason.
64 bit AVSPmod was working fine with fastlinedarkenmod plugin but my .bat script wasn't working. Copied and pasted FastlineDarkenMOD into the 32bit plugin and for whatever reason it now works. Plus I also had to fiddle with one missing element in my .bat script code. Forgot to add ^ before the )
Note: It's working now, so I'm not going to fiddle with it again. I am NOT going to back track and try to reproduce the problem. Don't mess with it if it ain't broke.
Code:if not exist FLOWERPOWERsantig33andhysteria10_____ md FLOWERPOWERsantig33andhysteria10_____ for %%A in ("*.mkv") do ( echo Import("C:\Program Files\AviSynth+\plugins64\FastLineDarkenMOD.avsi"^) >> "%%~A.avs" echo LWLibavVideoSource("%%A",format="YUV420P8"^) > "%%~A.avs" echo FastLineDarkenMOD(^) >> "%%~A.avs" echo FFT3Dfilter(sigma=1.5, bt=5, bw=32, bh=32, ow=16, oh=16, sharpen=0.4, plane=4^) >> "%%~A.avs" echo RemoveGrain(mode=1, planar=false^) >> "%%~A.avs" echo Hysteria(strength=10, usemask=true, lowthresh=20, highthresh=50, luma_cap=250, maxchg=255, minchg=0, showmask=false^) >> "%%~A.avs" echo Santiag(3,3^) >> "%%~A.avs" "C:\Program Files\ImageMagick-7.0.2-Q16\ffmpeg2.exe" -i "%%A.AVS" -i "%%A" -map 0:0 -map 1:a:0 -y -c:v libx264 -preset veryslow -tune animation -crf 24 -vf hqdn3d,setsar=sar=8/9 -c:a ac3 -ac 2 -b:a 128k "FLOWERPOWERsantig33andhysteria10_____\%%~nA.mp4" del "%%A.AVS" del "%%~nA*.LWI" ) pause
Last edited by strawberryshortcake; 1st May 2018 at 02:20.
-
I think it has to do with certain source filters.
Just a pure lsmashvideosource("video.mp4") , or ffvideosource("video.mp4") does not induce that error (with all the same x64 plugins unchanged). Or on a .m2v mpeg2 elementary video (FFVideoSource, or LWLibavVideoSource)
But mpeg2source() does on mpeg2 sources. So I think it has to do with the dgdecode.dll x64 compilation. The x64 build wasn't done by the original author
Similar Threads
-
Help me with this 1080i MBAFF 29.970 fps file.
By protoX in forum EditingReplies: 2Last Post: 25th Nov 2014, 03:46 -
frame rate reduction of 29.970 fps to 23.976 fps in megui
By yohanfed in forum Video ConversionReplies: 2Last Post: 28th Jun 2014, 19:15 -
Convert 29.970 fps to 23.976 fps
By ILoveEDM in forum Newbie / General discussionsReplies: 7Last Post: 10th Nov 2013, 17:20 -
Syncing NTSC 29.970 fps audio to PAL 50 fps video in MKV?
By Merazomo in forum Video ConversionReplies: 10Last Post: 22nd Oct 2013, 23:21 -
Syncing NTSC 29.970 fps audio to PAL 50 fps video in MKV?
By Merazomo in forum AudioReplies: 0Last Post: 17th Oct 2013, 19:09