[MEncoder-users] Error message: "Invalid frame duration" - What is causing this and what could be done about it?

Jorge Peixoto de Morais Neto please.no.spam.here at gmail.com
Fri May 30 21:08:34 CEST 2008


>> mencoder tv:// \
>> -tv
>> driver=v4l2:chanlist=us-cable:norm=NTSC-M:device=/dev/video0:input=0:quality=0:width=640:height=480:brightness=20:saturation=20:adevice=hw.0:alsa:channel=
>> $2 \ -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000:vratetol=32000:mbd=2
>> \ -oac mp3lame -lameopts fast \ -vf
>> crop=636:476:2:2,denoise3d=4:3:6,harddup \ -noskip -noencodedups
>> -skiplimit 0 -endpos $1 \ -of avi -ofps 30000/1001 -o test.avi
How about you try a simpler command line? Such as this:

mencoder tv://$2 \
-tv
driver=v4l2:chanlist=us-cable:norm=NTSC-M:width=640:height=480:adevice=hw.0:alsa
\
 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000:vratetol=32000:mbd=2 \
 -oac mp3lame -lameopts fast \
 -vf crop=636:476,denoise3d -noskip -endpos $1 -ofps 30000/1001 -o test.avi

Your original command line is weird. Some issues:
- -vf harddup and -noencodedups contradict each other (AFAIK)
- -skiplimit 0 and -noskip do the same thing.
- quality is listed in the man page as "Choose the quality of the JPEG
compression". This is probably related to hardware MJPEG compression.
Why do you set it to 0?

And in many situations you specify the default value for a parameter,
but choose the default:
- /dev/video0 is the default for the device parameter. No need to set it.
- Again, 0 is default for input.
- Do you really need to set brightness and saturation? Have you tested
the default? Are you not satisfied with it?
- 4:3:6 are default for denoise3d
- -of avi is default if the output file ends in '.avi'.



More information about the MEncoder-users mailing list