VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Apr 2010
    Location
    Pompey Town, SC
    Search Comp PM
    Let's say I wanted to encode the intro along with the music of an anime. The intro is 1:30. What I want to do is encode the intro along with the audio and I want the output files to be the exact same length so that I can put them back together with MKV merge. And you know sometimes the intro doesn't play at the beginning of an anime.

    I know how to trim the video but the audio is still a mystery to me. Here's what I got so far:

    DirectShowSource("C:\Users\Nagashi\Desktop\Working \A.mkv")
    Trim (0,2141)

    Oh, and I am using MeGUI to load AVIsynth scripts.
    Last edited by Nagashi; 2nd Oct 2011 at 08:52.
    Quote Quote  
  2. feed the same .avs script into the audio section

    Trim() affects both audio & video . So if your script feeds both audio & video, both will be cut

    DirectShowSource() should normally return both audio & video , otherwise you can use audiodub(video,audio)
    Quote Quote  
  3. Member
    Join Date
    Apr 2010
    Location
    Pompey Town, SC
    Search Comp PM
    Originally Posted by poisondeathray View Post
    feed the same .avs script into the audio section

    Trim() affects both audio & video . So if your script feeds both audio & video, both will be cut

    DirectShowSource() should normally return both audio & video , otherwise you can use audiodub(video,audio)
    I've already tried feeding the same script into the video and audio section. The resulting audio is the correct length, however, there is no audio in the file. Which I don't get.

    I'll try audiodub. Thx.
    Quote Quote  
  4. e.g


    Aud = FFAudioSource("video.mkv")
    Vid = FFVideoSource("video.mkv")
    AudioDub(vid,aud)
    Trim (0,2141)


    or

    FFMpegSource2("video.mkv", atrack=-1)
    Trim (0,2141)


    You need FFMS2 plugin
    Quote Quote  
  5. Member
    Join Date
    Apr 2010
    Location
    Pompey Town, SC
    Search Comp PM
    Wow! It worked! You sir are a genius, lol. Thank you so much!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!