I'm using this settings below to filter my video. How to make the audio match the video after filtered....?!
Regards,Code:AVISource("video.avi") TDecimate() AssumeFPS(25) Deblock() HQDeRing() McTemporalDenoise(settings="MEDIUM") nnedi3_rpow2(2, cshift="LanczosResize", fwidth=1024, fheight=768) aWarpSharp(depth=12)
+ Reply to Thread
Results 1 to 14 of 14
There's ways to do it in AviSynth but the question is 'why'?
1. Why make it the wrong framerate?
2. If absolutely necessary (and I do PAL to NTSC quite a bit), extract the audio and handle it separately. Any encoder/muxer I've ever used allows for the import of an external audio file.
AssumeFPS(25, 1, true) # Convert frame rate to PAL, also adjust audio.
SSRC(48000) # Restore audio sample rate to a standard rate.
I don't know if it works only with WAV audio or other kinds as well, and if you'll have to open it separately if it's, for example, AC3 audio and use AudioDub to put the video and audio back together again. For me it's just easier to handle the video and audio separately, especially so since I usually filter the audio in Audacity.
I have a dvd-set for anime series which i want to covert it from 29.970 fps to 25.0 fps to add Arabic audio to it. Now i want to make the Japanese audio match the new video after it's filtered to make the video Dual Audio (Japanese/Arabic). I don't know how to handle the audio separately or using Audacity & AudioDub So that i want to do it in one step using avisynth...
Ok, When i used your suggestion it says "SSRC: could not resample between two sample rates."
Note: I used FormatFactory to covert VOB to AVI So i can work with it easily
General Complete name : C:\Users\Trainer\Desktop\Combattler V DVD\Combattler V DVD-5\VIDEO_TS\VTS_01_0.VOB Format : MPEG-PS File size : 562 KiB Duration : 33ms Overall bit rate : 140 Mbps Video ID : 224 (0xE0) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings, BVOP : No Format settings, Matrix : Custom Duration : 33ms Maximum bit rate : 8 000 Kbps Width : 720 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate : 29.970 fps Standard : NTSC Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Scan order : Top Field First Compression mode : Lossy Text ID : 189 (0xBD)-32 (0x20) Format : RLE Format/Info : Run-length encoding Muxing mode : DVD-Video Menu
After covert to avi
General Complete name : C:\Users\Trainer\Desktop\Combattler V DVD-5.avi Format : AVI Format/Info : Audio Video Interleave Format profile : OpenDML File size : 2.99 GiB Duration : 2h 25mn Overall bit rate : 2 951 Kbps Writing application : MEncoder SVN-r33883(20110719-gcc4.5.2) Writing library : MPlayer Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : 2 Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 2h 25mn Bit rate : 2 811 Kbps Width : 640 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate : 29.970 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.305 Stream size : 2.85 GiB (95%) Writing library : XviD 1.2.1 (UTC 2008-12-04) Audio ID : 1 Format : MPEG Audio Format version : Version 1 Format profile : Layer 3 Mode : Joint stereo Mode extension : MS Stereo Codec ID : 55 Codec ID/Hint : MP3 Duration : 2h 25mn Bit rate mode : Constant Bit rate : 128 Kbps Channel count : 2 channels Sampling rate : 44.1 KHz Compression mode : Lossy Delay relative to video : 33ms Stream size : 133 MiB (4%) Alignment : Aligned on interleaves Interleave, duration : 26 ms (0.78 video frame) Interleave, preload duration : 522 ms
Last edited by SB4; 8th Dec 2013 at 07:04.
Shorten the Japanese audio to 23.976/25 the original length.
DGIndex and then DGDecode together with MPEG2Source, or just let AVSToDVD make the NTSC to PAL conversion for you. You'll wind up with the DVD converted to PAL and then you can use that as a basis for adding in your Arabic audio, which I also think is a bad idea. Dubbed audio is amateurish. Make Arabic subtitles and be done with it. Unless it's to be viewed by very young children maybe. But real anime fans wouldn't be caught dead listening to dubbed audio, English, Arabic, or anything else.
It's all thoroughly explained in the three documents included in the DGMPGDec package.
You make the D2V using 'Honor Pulldown Flags'. Either load the DGDecode.dll into your script or stick it into your AviSynth plugins folder. That then allows you to use MPEG2Source on your video:
After that you can do the rest of the filtering. It won't include your audio.
I can't just use MPEG2Source becouse of the interlace problem. Is this filter have deinterlace functionality or i have to use another filter for deinterlace...?!
nnedi3_rpow2(2, cshift="LanczosResize", fwidth=1024, fheight=768)
Or maybe it needs a full IVTC, I don't know. You could always post a sample from your DVD so we can have a look. Did you read the included docs? They're very good.
I have a frame rate related query, not sure if this is the right thread.
Here is my query - why do different media players show different frame rates for the same video? Which is good for playing all media (audio and video/DVD/BluRay) files among PotPlayer, VLC, MPC-HC, WMP or KMPlayer?
Please suggest free software.