VideoHelp Forum
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Member vassie's Avatar
    Join Date
    May 2009
    Location
    United Kingdom
    Search Comp PM
    Hello,

    I need some help with AviSynth script, I have two AVI's which each have their own SRT file, and I want to burn in the subs, but create only one MP4 file.

    To merge the two AVI I am using the following...

    Code:
    DirectShowSource("C:\part01.avi", fps=23.976, audio=true, convertfps=true)++DirectShowSource("C:\part02.avi", fps=23.976, audio=true, convertfps=true)
    I know I can add one SRT file by adding...

    Code:
    TextSub("C:\part01.srt", 1)
    However, what about the second SRT? Is it the same for subs as it is for video? Would my script need to be...

    Code:
    TextSub("C:\part01.srt", 1)++TextSub("C:\part01.srt", 1)
    I would try it myself, only I am going to be away from my home machine for a while.

    Thanks, Ben
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I'm pretty sure it wont work. Join the srt using a separate tool like subtitle workshop(under tools->join subtitles).
    Quote Quote  
  3. This should work (AVISource preferable to DirectShowSource because more consistent)

    Code:
    AVISource("part01.avi")
    TextSub("part01.srt")
    a=last
    
    AVISource("part02.avi")
    TextSub("part02.srt")
    b=last
    
    a++b
    Quote Quote  
  4. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Yeah, that ought to work. You could also write it as just:
    Code:
    a = AVISource("part01.avi").TextSub("part01.srt")
    b = AVISource("part02.avi").TextSub("part02.srt")
    a++b
    Quote Quote  
  5. Member vassie's Avatar
    Join Date
    May 2009
    Location
    United Kingdom
    Search Comp PM
    Thanks for the speedy replies, will try them out later and let you know the results

    Ben
    Quote Quote  
  6. Member vassie's Avatar
    Join Date
    May 2009
    Location
    United Kingdom
    Search Comp PM
    MeGUI likes my new AVS file, encoding now, will let you know the results, thanks

    Ben
    Quote Quote  
  7. Member vassie's Avatar
    Join Date
    May 2009
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by Gavino
    Yeah, that ought to work. You could also write it as just:
    Code:
    a = AVISource("part01.avi").TextSub("part01.srt")
    b = AVISource("part02.avi").TextSub("part02.srt")
    a++b
    It worked

    Thanks for your help

    Ben
    Quote Quote  



Similar Threads

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