VideoHelp Forum
+ Reply to Thread
Results 1 to 14 of 14
Thread
  1. Member
    Join Date: Jun 2007
    Location: Kuwait
    Search Comp PM
    Hello,



    I'm using this settings below to filter my video. How to make the audio match the video after filtered....?!
    Code:
    AVISource("video.avi")
    TDecimate()
    AssumeFPS(25)
    Deblock()
    HQDeRing()
    McTemporalDenoise(settings="MEDIUM")
    nnedi3_rpow2(2, cshift="LanczosResize", fwidth=1024, fheight=768)
    aWarpSharp(depth=12)
    Regards,
    Quote Quote  
  2. 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.

    Anyway:

    AssumeFPS(25, 1, true) # Convert frame rate to PAL, also adjust audio.
    SSRC(48000) # Restore audio sample rate to a standard rate.


    http://avisynth.nl/index.php/FPS

    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.
    Quote Quote  
  3. Member
    Join Date: Jun 2007
    Location: Kuwait
    Search Comp PM
    Thanks manono,

    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

    Original video
    Code:
    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
    Code:
    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.
    Quote Quote  
  4. Shorten the Japanese audio to 23.976/25 the original length.
    Quote Quote  
  5. Member
    Join Date: Jun 2007
    Location: Kuwait
    Search Comp PM
    How ?
    Quote Quote  
  6. Most audio editors have the ability to change the length of the audio, keeping the pitch or not. Audacity, for example, has Effects -> Change Speed and Effects -> Change Tempo. I think BeSweet has an explicit NTSC to PAL change.
    Quote Quote  
  7. Member
    Join Date: Jun 2007
    Location: Kuwait
    Search Comp PM
    I have download Audacity In Effects menu there is Change Speed and Change Tempo. Which one i have to use and what value i suppose to put in there...?!
    Quote Quote  
  8. Originally Posted by SB4 View Post
    Note: I used FormatFactory to covert VOB to AVI So i can work with it easily
    If you care anything about quality that's a very very bad idea. XviD and MP3 audio? Either make a D2V project file using 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.
    I have download Audacity In Effects menu there is Change Speed and Change Tempo. Which one i have to use and what value i suppose to put in there...?!
    I make a WAV file first in BeSweet. You'd use their 23976->25000 preset to convert to PAL. Then it can be reencoded back to AC3 (using a better encoder than the one in BeSweet). eac3to can do it all at once. Audacity can do it but you need percentages or ratios or something, I forget.
    Quote Quote  
  9. Member
    Join Date: Jun 2007
    Location: Kuwait
    Search Comp PM
    Thanks manono,

    Ok, I'm able to convert the audio to match the new video file using BeSweet. I need to ask one more question you said
    "make a D2V project file using DGIndex and then DGDecode together with MPEG2Source"
    I know how to make d2v using DGIndex but how to use DGDecode ?!
    Quote Quote  
  10. 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:

    MPEG2Source("Movie.d2v")

    After that you can do the rest of the filtering. It won't include your audio.
    Quote Quote  
  11. Member
    Join Date: Jun 2007
    Location: Kuwait
    Search Comp PM
    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...?!
    Quote Quote  
  12. Originally Posted by SB4 View Post
    I can't just use MPEG2Source becouse of the interlace problem
    Don't be silly. Of course you can. It's just like AVISource but for MPEG/DVD sources. Your earlier script might go like this:

    MPEG2Source("video.d2v")
    TDecimate()
    AssumeFPS(25)
    Deblock()
    HQDeRing()
    McTemporalDenoise(settings="MEDIUM")
    nnedi3_rpow2(2, cshift="LanczosResize", fwidth=1024, fheight=768)
    aWarpSharp(depth=12)


    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.
    Quote Quote  
  13. Member
    Join Date: Apr 2010
    Location: India
    Search Comp PM
    Hello @manono,

    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.

    Thanks.
    Quote Quote  
  14. Originally Posted by ConverterCrazy View Post
    Here is my query - why do different media players show different frame rates for the same video?
    I don't know.
    Which is good for playing all media (audio and video/DVD/BluRay)...
    I don't know. Do any of them play Blu-Rays? I use MPC-BE which is a variation on MPC-HC.
    Quote Quote  



Similar Threads