Hi there,
Is there a method to batch convert avi files to burn in the filename of the avi - just like you would add a permanent subtitle?
Any method would be cool, even a hint if it is possible at all. Thanks in advance!
Greets,
Frank
+ Reply to Thread
Results 1 to 7 of 7
-
-
To do it for the whole vid, you'll have to re encode the whole video. Could you do it as an introductory clip, or an end credit?
-
A batch file like this:
Code::LOOP for %%A in (*.avi) do ( IF NOT EXIST "%%~dpnA.avs" ( echo.AVISource^("%%A"^) echo.Subtitle^("%%A"^) ) > "%%~dpnA.avs") ) SHIFT @if %1X==X goto END @goto LOOP :END exit
See http://avisynth.org/mediawiki/Subtitle for options.Last edited by AlanHK; 19th Oct 2010 at 21:48.
-
You're awesome! Thanks a million
Btw, is there a possibility to have all the avi files (with subtitle) concatenated in one AVS script? So that the result is one AVI file with the subtitles burnt in for each segment? -
Code:
AVISource("vid1.avi").Subtitle("vid1.avi") ++\ AVISource("vid2.avi").Subtitle("vid2.avi") ++\ AVISource("vid3.avi").Subtitle("vid3.avi") ++\ AVISource("vid4.avi").Subtitle("vid4.avi") ++\ AVISource("vid5.avi").Subtitle("vid5.avi") ++\ AVISource("vid6.avi").Subtitle("vid6.avi") ++\ AVISource("vid7.avi").Subtitle("vid7.avi") ++\ AVISource("vid8.avi").Subtitle("vid8.avi") ++\ AVISource("vid9.avi").Subtitle("vid9.avi")
-
Amazing, didn't know that. Thanks a lot!
I think I can manage to adapt the BAT script you posted earlier to have it done automatically for a whole directory full of AVI files, but I'm not sure how I can write "if this is the last file, don't echo "+++\" ... would you be able to help me out with that? -
To do that is stretching batch files a bit. Though I'm sure it could be done.
(have a look at the whacky things people do in alt.msdos.batch.nt)
I'd just do this:
Code:for %%A in (*.avi) do ( ( echo.AVISource^("%%A"^).Subtitle^("%%A"^) ++\ ) >> "combo.avs") )
If you want to do the whole thing programmatically you should look into more powerful scripting languages, like perl.
(I really should use perl more, but a few batch tricks and word processor macros do most of what I need to make scripts.)Last edited by AlanHK; 20th Oct 2010 at 11:58.
Similar Threads
-
Avisynth equivalent of VDub brightness/contrast/gamma
By Mephesto in forum Newbie / General discussionsReplies: 37Last Post: 31st May 2012, 10:48 -
AviSynth audio errors while converting with VDub x64
By klischee in forum EditingReplies: 0Last Post: 16th Dec 2011, 13:25 -
H264/AVC (.TS) gets outsync when using VDub and AviSynth
By x92 in forum DVB / IPTVReplies: 2Last Post: 30th Aug 2009, 22:03 -
starting with AviSynth/vdub
By zookeeper525 in forum DVD RippingReplies: 2Last Post: 22nd Sep 2008, 11:03 -
equivalent filters from Vdub to Avisynth
By cd090580 in forum RestorationReplies: 3Last Post: 14th Aug 2008, 13:28