Log in

View Full Version : play all the videos using same script under MPlayer


travolter
23rd March 2010, 12:05
Hi, Im doing google but I dont find nothing... maybe you can help me

I need a way to to:
1) double click on a video.
2) this script is loaded and the name and path of the file is written

directshowsource("write path/filename of video here", audio = false)


Spline16Resize(1280,720)
MT("""
super = MSuper(pel=1,hpad=16,vpad=16)
backward_vec = MAnalyse(super, blksize=16, isb = true, chroma=false, searchparam=1)
forward_vec = MAnalyse(super, blksize=16, isb = false, chroma=false, searchparam=1)
MFlowFps(super, backward_vec, forward_vec, num=2*FramerateNumerator(last), \
den=FramerateDenominator(last), mask=0)

""",4)

3) play the generated avs file into MPlayer (http://www.mplayerhq.hu/ )

currently I have to edit manually the avs file to play the videos .. and its tedious..

There is any way to automate the process?

hanfrunz
24th March 2010, 15:45
It's possible!

1. create a windows batch file (like c:\windows\mplayer_avs.bat)
2. this batch files then does this:
2.1. uses the "echo" command to write the script content to a avs-script in the same folder with the same filename+.avs of your avi. Here's a good place to start (http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true)
2.2. the script calls mplayer.exe [scriptname] at the end
3. set windows to run avi-files with your batch file, instead of mediaplayer or whatever, when you doubleclick.

hanfrunz

travolter
28th March 2010, 11:08
got it ;) thanks pal!! Im using mplayer+avisynth for all my videos.

maybe only problem Im having know is the directshowsource loader... not all codecs that I usually use work with avisynth.. but its now a problem of trial and error and find the best settings