[MPlayer-dev-eng] [PATCH] Multiple files for MEncoder

Oded Shimon ods15 at ods15.dyndns.org
Fri Feb 25 15:02:26 CET 2005


On Friday 25 February 2005 14:45, Matthias Schwarzott wrote:
> On Friday 25 February 2005 03:38, D Richard Felker III wrote:
> > committed.
> > rich
>
> When I do
> mencoder -o test.avi ... -frames 1000 001.vdr 002.vdr 003.vdr
>
> I get 1000 frames out of every file (is that really intended?).
Yes, -frames is a per file option. I might add a -totframes option...

> But trying 
> two-pass encoding the divx2pass.log file only contains 998 lines. Should
> that be around three times 1000 lines, as my output file has around 3000
> frames?
Oops, 10l cola goes to me.
I never tested the patch in 2 pass, so, good for pointing that out.
There are 3 possible solutions:
1. make -divx2pass a per file option, or even append to it a _1 automatically. 
Easy, but not the best.
2. make some vfctl to make MEncoder communicate with the ve after each file 
what frame we are up to. Possible, but hackish.
3. Find some way to uninit the video without uniniting the VE, and use that 
same VE for all the next files. Ideal, but hardest...
Anyone have a better suggestion?... I'm gonna try to do 3 for now

>
> Is there a possibility to seek to any point in the concatenated files and
> encode exactly n frames oder n seconds from that point.
Hmm, what do you mean, do you mean something like this?

mencoder a.avi -ss 5 -frames 500 b.avi -ss 30 -frames 1000 ....

This was the design I intended all along for this.

- ods15




More information about the MPlayer-dev-eng mailing list