View Full Version : Need to create batch script - Avisynth / FLV
smok3
23rd June 2007, 00:07
@smok3,
Your scripts are smoking :cool: !
:thanks:
Liquidfusion
23rd June 2007, 07:20
Good energy coming together!!!
Thanks for the blue light / the zip scrips to study.
gzarkadas/smok3 you are the best!!!!!!!!
smok3
23rd June 2007, 11:11
overnight about 5 longer videos got encoded, so it seems everything is fine (nothing crashed)-but i did run only one incarnation. I have edited previous post with some 'todo' stuff.
gzarkadas
23rd June 2007, 15:49
- what is the easy way to get flv resolution in pixels back into the script as variables, so i could do some renaming? (final flv name can be for example myfile_512_288.flv)
I think it is to ask for those parameters in the script and then add yourself a xxxResize(param1, param2) command as the last line of the avs template. If they are not supplied, do nothing.
The other way, to create a mod of searchandreplace.vbs (actually a mod of the ReplaceText function inside the .vbs) that will scan the avs template for the appearance of an xxxResize(w,h) is complicated. For example, what if the user uses variables or/and a couple of resizers?
smok3
23rd June 2007, 17:27
thats why would be better to get the info from allready made flv file, will try to do something like:
pseudo
mediainfo.exe file.flv > file.txt
find a line with width < file.txt > file_width.txt
find a line with height < file.txt > file_height.txt
searchandreplace stuff other than numeric in both and
return that back to some rename command....
gzarkadas, tnx.
Blue_MiSfit
23rd June 2007, 18:55
Got it all working today.
Important notes from the whole process:
1) Getting the VP6 installer is tricky
2) Unpacking the special ffmpeg from Sh0dan's blog is tricky
3) You must use heightened sharpness VP6 profile (why?)
4) You must configure the codec first. Edit Sh0dan's example.bat to do this step first by adjusting the REM statements
5) This is a really really really cool thing in the end. It's pretty much the only way to stream really high quality video on the internet without asking the user to install anything they don't already have. It's MUCH faster than QuickTime H.264, especially on Windows.
It looks like Smok3 is trying to make this whole process much easier for us. I know he helped me out a bunch to get it working manually. Thanks Smok3!!!
:) <- Happy MiSfit
~MiSfit
Liquidfusion
24th June 2007, 02:08
Hey smok3 - got Sh0dan's blog version working. ~MiSfit inspired me to play with editing rem of example.bat. Then an idea!!!!!! Realized I needed to unpack flv-patch.patch and ffmpeg.exe files (ffmpeg-VP6-FLV.zip) directly into "myflvtests folder as files - not as an unpacked "ffmpeg-VP6-FLV" folder.
Made it work!!!!!!!!!!! Thks smok3 for your helping me get here. Again / thnks gzarkadas too!!!!!!!! ~MiSfit for the inspiration.
myflvtests folder:
avs2avi-src (folder)
avs2avi.exe
ffmpeg.exe
example.avs
vp62.conf
example.bat
flv-patch.patch
example.avi
edit: example.bat
1. rem encode / unrem configure / choose vp62 heightened sharpness (twice)
2. rem configure / unrem encode
result: example.flv !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Need to reconfigure? delete vp62.conf
your flv streaming is great........
smok3
24th June 2007, 08:02
Liquidfusion, iam glad you figured out (you dont need avs2avi-src (folder) and flv-patch.patch, those are source codes)
neftv
13th August 2007, 20:31
Hi
First post for me. I came across the FLV VP62 encoding. I was wondering how you make a script the same way like for AVI's one or Multiple files but for MPEG 2 program stream files? Anyone try that yet? I seem to know how to do it in VirtualdubMod (mpeg2ps to AVI) but I dont know how to make the script.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.