pancserzso
5th February 2012, 16:13
I have to make an exteremly slow encode which only runs at arond 0.25 fps. What I thought to make it faster without messing anything with MT versions of exotic plugins, I can just start 4 separate filtering threads to separate PNG files using ImageWriter. After that encoding should work very fast.
My problem is that so far I don't know how could I just play an avs script from frame A to frame B. Then the next task would be to write a python script or a batch file, which goes starts 4 threads with this command line player like:
- play 0-1000 wait till finish, play 4001-5000
- play 1001-2000 wait till finish, play 5001-6000
- play 2001-3000 wait till finish, play 6001-7000
- play 3001-4000 wait till finish, play 7001-8000
...
Do you know if there is a command line video player or a simple encoder with dummy output? At the moment I am experimenting with mplayer:
mplayer avsfile.avs -vc null -vo null -benchmark -nosound -ss 1234/24 -frames 1
^^^ But this doesn't work, as mplayer really has some bug with (http://muttley.hates-software.com/2006/02/21/5acc8f2b.html) -ss and frames parameter. I'll be looking into Media Player Classic or an AVS audio dumper which can support -startframe and -endframe. Any idea for such a program?
What I am looking for now is to how to make it into a batch or python script which starts at 4 threads, but first checking if the files doesn't exist already. Do you have any idea for this?
Also, how can I get a total frame number of an avs script in command line?
My problem is that so far I don't know how could I just play an avs script from frame A to frame B. Then the next task would be to write a python script or a batch file, which goes starts 4 threads with this command line player like:
- play 0-1000 wait till finish, play 4001-5000
- play 1001-2000 wait till finish, play 5001-6000
- play 2001-3000 wait till finish, play 6001-7000
- play 3001-4000 wait till finish, play 7001-8000
...
Do you know if there is a command line video player or a simple encoder with dummy output? At the moment I am experimenting with mplayer:
mplayer avsfile.avs -vc null -vo null -benchmark -nosound -ss 1234/24 -frames 1
^^^ But this doesn't work, as mplayer really has some bug with (http://muttley.hates-software.com/2006/02/21/5acc8f2b.html) -ss and frames parameter. I'll be looking into Media Player Classic or an AVS audio dumper which can support -startframe and -endframe. Any idea for such a program?
What I am looking for now is to how to make it into a batch or python script which starts at 4 threads, but first checking if the files doesn't exist already. Do you have any idea for this?
Also, how can I get a total frame number of an avs script in command line?