[MPlayer-users] possible bug in mencoder command line parsing

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Fri Nov 7 17:28:28 CET 2008


On Friday, 07 November 2008 at 16:10, Gavin McCullagh wrote:
> Hi there,
> 
> first of all I should say that mencoder is an absolute lifesaver, saves me
> tonnes of time and has opened up tonnes of opportunities both in work and
> at home.  Many thanks to all concerned.
> 
> Second, I think I may have found a bug in the command line parsing.  If I
> try and re-encode a single DV file into FLV it works fine, including a
> video rescale and an audio lavcresample.  If I pass multiple DVs into a
> single FLV, mencoder complains that I cannot create an FLV with that audio
> sample rate and that I should pick from (44100,22050,10025).  However, I
> actually have a resample to 22050 in the command and apart from having two
> input files, the entire process is identical.
> 
> I find this with 2 or more dvd:// inputs and with 2 or more files so it
> seems to simply relate to having more than one source.  I can stitch the
> files together afterward using "-oac copy -ovc copy", but that's so much
> more interactive than I want to be!  I presume there is no practical reason
> why I cannot load up two files like this, they are of exactly the same type
> (though I wouldn't think they need to be in this instance).
> 
> The full command and output for both a failed and a successful run are
> below.  If you need any more info, please let me know.
> 
> If a fix jumps out at someone quickly that would be awesome.  If time presents
> itself I'll try and get a look at the source code myself but I suspect
> there'll be people on this list far more familiar with it than me.
> 
> Thanks in advance,
> Gavin
> 
> gavinmc at ceartgoleor:~$ mencoder dvd://1 dvd://2 -o test.flv  -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=250:autoaspect:acodec=libmp3lame:abitrate=64 -vf scale=320:240 -srate 22050 -af lavcresample=22050

You should list your inputs at the end of your command in order to have all
the options apply to all inputs. Options specified after a given input apply
only to it. That's a feature, actually.

It is documented in the manpage.

Regards,
R.

-- 
MPlayer http://mplayerhq.hu | RPMFusion http://rpmfusion.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
	-- from "Collected Sayings of Muad'Dib" by the Princess Irulan



More information about the MPlayer-users mailing list