Francesco Romani wrote:
On Tue, 2009-03-03 at 10:36 +0300, Vadim Druzhin wrote:Hi!The last one will become the only user-visible change. I plan to change again the commandline interface, moving from-y vid_enc[,aud_enc[,main_mplex[,aux_mplex]]] -o main_out -m aux_out -N vid_fmt,aud_fmt to -y vid_enc[,aud_enc] -o main_mplex://main_out -m aux_mplex://aux_out -N vid_fmt,aud_fmt or maybe even -y video://vid_enc,audio://aud_enc [the rest unchanged]Why not to use just something like: -y vid_enc -ya aud_enc -ym main_mplex -o main_out -yam aux_mplex -oa aux_outI don't want to derive from the standard (GNU? POSIX?) way to name the option, having -s (single dash, single letter option name) --long (double dash, long option name) moreover, by leaving the `format://' specifier as option and by adding some form of autoguessing (inferring the format from the extension it'salready pretty common) we can let thi things works _mostly_ as they do today, and that's a plus.
OK, then maybe this format will be more intuitive:
-y vid_enc[+aud_enc][.main_mplex][/aux_mplex]
With specific character as indicator ('+','.','/') each part can be optional,
similar approach is used in X11 "-geometry" parameter (WIDTHxHEIGHT+XOFF+YOFF).
(I can't explain why, but I feel URL-like syntax in output parameters wrong.)
--
WBR, Vadim Druzhin
