Trying to add Chapters in my AVS scripts for final MKV output.
My script contains multiple clips (amalgamation of video clips, and pictures).
I would like to put a Chapter start at beginning of each my clip.
ShowSMPTE will Timecodes in video, but not to an external text file like chapters.txt.
My normal route is x264 for .264 and faac/neroAacEnc for .aac or wav(vdub) to ac3 (eac3to), to using mkvmerge for MKV with chapters.
I don't mind doing another pass on my .AVS as I am doing second pass for Audio already. This pass should create a text file compatible with mkvmerge with my specified timecodes.
Pseudo code:
v1 = AviSource("FirstBD.avi")
v1t = blank(200).Subtitle("First Birthday")
chv1 = ? # Chapter 1 timecode
v2 = AviSource("SecondBD.avi")
v1t = blank(200).Subtitle("Second Birthday")
chv2 = ? # Chapter 2 timecode
v3 = AviSource("ThirdBD.avi")
v1t = blank(200).Subtitle("Third Birthday")
chv3 = ? # Chapter 3 timecode
return chv1 ++ v1 ++ v1t ++ chv2 ++ v2 ++ v2t ++ chv3 ++ v3 ++ v3t
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
The title cards are easy enough:
Code:AviSource("FirstBD.avi") ++\ BlankClip(last,200).Subtitle ("First Birthday", align=8, size=36, font="georgia") ++\ ... etc
As for the chapter timecodes, should be do-able with WriteFile
http://avisynth.org/mediawiki/WriteFile
WriteFile evaluates each expressionN, converts the result to a string and puts the concatenated results into a file, followed by a newline.
The "run-time" variable current_frame is set so that you can use it in an expression -
Perhaps something based on the techniques used in this thread will do what you want:
http://forum.doom9.org/showthread.php?t=138229
Similar Threads
-
Add QTGMC Deinterlacer to MeGUI's avisynth script creator drop down list?
By Simcut in forum Newbie / General discussionsReplies: 2Last Post: 30th Jul 2012, 16:58 -
Read chapters from a file to use them in mkvmerge as splitting-timecodes
By bastik in forum User guidesReplies: 1Last Post: 24th Jul 2010, 12:12 -
use AviSynth script to add graphic idx/sub subs in DVD Flick?
By MilesAhead in forum SubtitleReplies: 7Last Post: 17th Dec 2009, 12:24 -
Avisynth script
By daz2712 in forum Video ConversionReplies: 2Last Post: 19th Aug 2009, 11:08 -
avisynth script
By magenta2007 in forum SVCD2DVD & VOB2MPGReplies: 7Last Post: 25th Sep 2007, 11:29