Re: mencoder-g2 ?
Arpi <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.g2.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, > On Wed, Aug 06, 2003 at 06:13:51PM -0400, Bobby Bingham wrote: > > i don't know mplayer's command-line parsing system very well. is there > > a way to have the video encoder specified with it's params as suboptions > > like "-ovc lavc:codec=mpeg4:hq:pass=1". i think that's better than > > having to add a new option (-lavcopts, -xvidencopts, etc) for every new > > audio/video encoder. > > > > also, can the commandline parser also be used nicely on arbitrary > > strings, such as those i'd read from a cfgfile used to define > > multi-stream encoding? > > > > ok, you can ignore that part - i RTFS ;) it looks like it's just as easy > to parse from a file as from cmdline :). looks like for using encoder yes > parameters like "-ovc lavc:codec=mpeg4:hq:pass=1", i just need to use a > CONF_TYPE_STRING, find the right module_info_t, and send it, along with > the rest of the string to mpconfig_parse_subconfig(). no you shuould use MODULE_LIST (limited to 1 module), so the parser will do all teh job automagically. you could do with STRING and directly calling mpconfig_parse_subconfig, but in that case Guis and extended UIs won't know teh syntax of that parameter. A'rpi / Astral & ESP-team -- Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu