I see a yadif w/ some other deinterlacers here:
http://avisynth.org/mediawiki/External_filters#Deinterlacing
I found nnedi2.dll so I've got that one.
+ Reply to Thread
Results 31 to 60 of 111
-
-
OK, I've got both dlls.
I can easily completely start over for this. I've got about 150 of them to do.
Right now I'm just trying to learn/setup a consistent process for each one.
I'll start over once I've got all this information under my belt and then I'll see if I can deinterlace before I do 'anything' else.
Too bad XviD4PSP can't open 1920x1080 60i AVCHD files
It looks like I'll just have to create 2 Premiere projects so I can export the AVCHD file to AVI, interlace using XviD4PSP
& avisynth and then back into Premiere to create my chopped up vid from the result + background graphic.
Then I guess back into XviD4PSP or Handbrake to run avisynth to crop & resize the final.
I guess a high quality flv file is out of the question huh? -
yes it can. you need haali media splitter, ffdshow
you can even open it up with ...guess what.... an avs script!
It looks like I'll just have to create 2 Premiere projects so I can export the AVCHD file to AVI, interlace using XviD4PSP
& avisynth and then back into Premiere to create my chopped up vid from the result + background graphic.
Then I guess back into XviD4PSP or Handbrake to run avisynth to crop & resize the final.
I guess a high quality flv file is out of the question huh?
You only need 1 project in premiere. You *don't* want convert avchd to avi in premiere. You get the chroma bugs in the screenshots above. That's the whole point of the post - native avchd in premiere is no good. -
OK, before I dive in here, it looks like being able to open the AVCHD files from avisynth would be great.
Do I need haali media splitter & ffdshow to do that? Are they more plugins or do I need something else? -
That's all you need for now, (but there are hundreds of other plugins that do various things)
LoadPlugin("PATH\yadifmod.dll")
LoadPlugin("PATH\nnedi2.dll")
DirectShowSource("0001.mts")
YadifMod(order=1,mode=0, edeint=NNEDI2(field=1))
#LanczosResize(width,height)
#Crop(left,top,-right,-bottom)
Again, lines with "#" are ignored they are like REM statements if you remember BASIC programming language
In ffdshow , set h.264/avc in the configuration to ffmpeg-mt -
Uh oh, I've got a problem with yadifmod.
It says 'only yv12 and yuy2 input are supported'.
any ideas as to what this is about and how I might solve it? -
XviD4PSP is trying to open the raw m2ts file which came directly from the camera.
The script I'm using now is:
AviSource("c:\Vids\AMajorOpen.avi") <<-- REMOVED
LoadPlugin("c:\Program Files (x86)\Avisynth 2.5\plugins\yadifmod.dll")
LoadPlugin("c:\Program Files (x86)\Avisynth 2.5\plugins\nnedi2.dll")
#AVISource("c:\Vids\AMajorOpen.avi")#
DirectShowSource("c:\Vids\20100303_070409.m2ts")
YadifMod(order=1,mode=0, edeint=NNEDI2(field=1))
#Crop(165, 118, -165, -120)#
#LanczosResize(368,272)#
So, basically, I'm just trying to deinterlace it as you suggested.
It's *really* slow so far (this is a Dell Alienware Aurora w quad 3.6Mz overclocked CPU & 6 gigs of ram).
XviD4PSP is pushing it much harder than Premiere did.
We'll see what happens
ACK! I just noticed that I'm trying to open the AVI too.
OK, here we go again. -
What are you encoding to (what format?)
xvid4psp will analyze your file and take extra time
If you know what your file is, (i.e. interlaced, field order etc...) A better option is to use vdub, video=> fast compress mode, video=>compression (select something like huffyuv if you want lossless, or even no compression for uncompressed)
If you know your only goal is the web format, I would resize in the script to something smaller for import into premiere as stated before. Not only will this will be easier to edit in premiere, but also you save extra time
The bottleneck here is avisynth filters. There are even slower deinterlacers that you could use... Try TempGaussMC_Beta1() or Beta2 . Parts of the filters are multithreaded, but parts are still single. That's the price you pay for higher quality deinterlacing. -
I can't get vdub to open the avs file at all.
xvid4psp the format is AVI. I had video & audio encoding set but didn't mean to.
I want to take the full, uncompressed but deinterlaced avi into Premiere don't I?
I just stopped it to reset the encoding to 'disabled' so I'll run it again now.
Also, I had cut the vid I was playing with to just one chord (A Major) . The whole raw vid is actually all the major chords so it's a good bit longer. It's a 274 MB file.
So much for that xvid4psp won't let me pull in the AVI without video & audio encoding.
They are:
XVid HQ Ultra - for the video
MP3 CBR 128k - for the audio. -
I can't get vdub to open the avs file at all.
I want to take the full, uncompressed but deinterlaced avi into Premiere don't I?
I just checked and xvid4psp offers huffyuv
You could even use the .avs import plugin, and open .avs file directly in premiere, although editing will be slow because it's deinterlacing/processing in realtime. If you need timed edits and need audio syncing, a lossless intermediate is preferable. If you just have to crop, resize and place the 2 videos on the background, it might be a quickie shortcut
http://videoeditorskit.sourceforge.net/ -
Yes, I just tried the 32 bit version, it works fine and opens the file.
Now I've gotta figure out all those settings you taught me above -
I'm done for tonite; started @ 11:00 AM, it's 1:23 AM - feel like I just took a 3 credit college course.
I got a chance to see the full vid deinterlaced. It looks GREAT! no sound but vdub is still working.
You were right again, vdub was *much* faster.
Thanks for sticking with me. I NEVER would have figured all this out.
How in the WORLD did you learn all that?
I'll be back tomorrow if only to show you my final. -
use mediainfo on your video to identify the audio. I suspect it's ac3, and you would need to install ac3filter, or enable ac3 in the ffdshow audio configuration. When you use DirectShowSource() as the source filter, it automatically passes audio through unless you say audio=false
You were right again, vdub was *much* faster.
Thanks for sticking with me. I NEVER would have figured all this out.
How in the WORLD did you learn all that?
I'll be back tomorrow if only to show you my final.
BTW , You're only scratching the surface with avisynth. It is probably the most versatile, powerful application in video -
Is there any reason to use DirectShowSource and risk frame drops/desyncs? Why not use DSS2?
-
it's directshowsource2, and alternative source filter
99% of the time it won't affect you, if you are doing a straight encode. The filters you are using are safe (it' s only temporal filters that look at few frames bwk/fwd that it becomes an issue and you might get desync, e.g. when you are doing temporal denoising)
You need avss.dll that comes with the haali media spitter package, put that in the avisynth plugins folder. Most .dll's that are placed in the folder are auto loading, but some need to be loaded manually
(even then, dss2 isn't completely frame accurate, you need to index it for complete frame accuracy...) but I digress....
DSS2("0001.mts")
#the rest of your script -
I'm still not sure how to handle the sound.
I did install MediaInfo which gave me all the information I've been trying to find by Googling Panasonic HD HS-300 specification.
You're right again. The sound is AS-3.
I noticed that the original file was 29.9fps but the deinterlaced (13 GIG) file was only 14fps.
What happens when I use this line:
DirectShowSource("c:\Vids\20100303_070409.m2ts",fp s=29.97, audio=false)
How do I get the sound back? -
AC3 or AS-3 ? typo right?
instead of audio=false, use audio=true
You should include assumefps(30000,1001) for good measure, because 29.97 fps an approximation of 30000/1001
DirectShowSource("c:\Vids\20100303_070409.m2ts",fp s=29.97, audio=true)
AssumeFPS(30000,1001)
How are you determining that the file was 14fps? -
Yea, it's a typo. Should the one param be fp s=29.97) or did I make another typo, should be fps=29.97
-
I downloaded & installed Matroska Splitter x64 but didn't see the dll you mentioned.
-
To determine that the deingterlaced output was 14fps I looked at it in Media Info.
I installed the 32 bit haali media splitter and moved that dll into avisync plugins so it should be available now.
Do I need to:
LoadPlugin("c:\Program Files (x86)\Avisynth 2.5\plugins\avss.dll")
I've installed ffdshow and configured it like you indicated above.
Is there anything else I need to do for the sound? -
So Is the sound passed through with that script? You can type info() at the end of the script and it will tell you when you preview in vdub or avsp (dont forget to comment it out before you actually encode)
If you are using DSS2() it doesn't pass the audio, you have to use another function like NICAC3Source() and AudioDub(). You would have to demultiplex the audio from the transport stream first, using tsmuxer
vid = DSS2("video.m2ts")
aud = NICAC3Source("audio.ac3")
audiodub(vid,aud)
#DelayAudio() # in ms
The problem is when you demultiplex the audio, sometimes you get small sync errors and have to adjust the delay with delay audio. When the audio & video are multiplexed in the transport stream , the are often not set flush. Either one or the other has a + or - delay. When you demux it, you lose that relationship.
Chances are you would be fine with directshowsource() if you aren't doing exotic filtering , and that's what I would use in this case -
yes, because the info() will be overlaid, hardcoded into your video, if you haven't looked at it yet, it's yellow text.
it conveys information like the fps, audio channels etc... just to double check everything is honky dory
so you want to comment it out when you are ready to encode
#info()
As I said earlier, I would also do pre-editing, like cropping and resizing for a rough edit in the script. It will encode faster, and make your life 10x easier in premiere later -
I can't really crop it at this stage or I'll lose some of the video I need but I could downsize it before deinterlace.
Would that hurt anything? -
When I run info() one line says:
'Has Audio: YES'
'Audio Channels: 2'
That's what I want right?
Is there a way to finalize encode & save from avisync? -
Again, you can't downsize before deinterlace (except in horizontal dimension), unless it's in an interlace aware fashion => you get horrible artifacts
Is the camera set and the shot framed on the same area? I thought all you wanted were the hands & guitar of "video1" and "video2" like a split screen, with the grey photoshop border
Was your original audio 2-channel or 6-channel? What did mediainfo say? Otherwise you're ready to go.
(Another reason to preprocess it, is that Premiere's scaling isn't the best either, it's quite soft...surprise surprise... but it's not that bad when downscaling, and sometimes soft is ok for web videos)
Also how noisy are your videos? You might want to denoise before final encode for web (helps with compression)
BTW, If all you are doing is that (no timed edits or splices), you could do it all in avisynth with overlay()
Similar Threads
-
Vid quality better in MPC (Windows), than MPlayer (Linux)...
By cwb in forum Software PlayingReplies: 3Last Post: 5th May 2010, 21:01 -
re-encoding vid file for smaller size but keeping same format?
By WidowMaker in forum Video ConversionReplies: 2Last Post: 28th Dec 2008, 13:56 -
What is the best way to encoding FLV video for the web(?)
By goheadtry in forum Newbie / General discussionsReplies: 0Last Post: 31st Aug 2007, 21:28 -
Quicktime For the Web Encoding
By badgerbrian in forum Newbie / General discussionsReplies: 5Last Post: 6th Aug 2007, 14:06 -
How To Resave Edited Vid W/out Re-encoding?
By NukeyDoo in forum EditingReplies: 6Last Post: 24th Jul 2007, 03:21