[MEncoder-users] I want to reset a fps using mencoder from a TV V4L2 source.

Rich Felker dalias at aerifal.cx
Fri Aug 19 16:33:15 CEST 2005


On Fri, Aug 19, 2005 at 04:56:05PM +0900, Chang Min Jeon wrote:
> -ofps options can't reset fps from TV CARD.
>  I want to set 10fps from TV CARD.
>  But mencoder save tv.avi which has 30fps.

You cannot pick the fps to capture from the card, it's fixed. It's a
property of the broadcast standard which CANNOT BE CHANGED. And you're
still being completely stupid; -ofps will work just fine with tv
input.

By the way, you seem to have some really broken config...

> [root at e-viola ~]# mencoder -tv 
> driver=v4l2:width=352:height=288:chanlist=us-bcas

288 height is for PAL tv. If you're capturing ntsc, your height MUST
be either 240 (single field) or 480 (two interlaced fields). Any other
value is invalid and will give you bogus interlaced sampling. Width
can be whatever you want.

> [V] filefmt:9 fourcc:0x32315659 size:352x288 fps:29.00 ftime:=0.0345

29.00 fps?! Where did that come from? It's total nonsense..
Actually I just checked, it was the biggest most stupid bug ever in
v4l2 support. Please upgrade to latest CVS where I fixed it.. :(

> Pos: 0.0s 1f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
> 1 duplicate frame(s)!
> Pos: 0.1s 3f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
> 1 duplicate frame(s)!
> Pos: 1.6s 43f ( 0%) 27fps Trem: 0min 0mb A-V:0.000 [1240:224]
> Skipping frame!
> Pos: 2.6s 74f ( 0%) 28fps Trem: 0min 0mb A-V:0.000 [1070:224]
> Skipping frame!
> Pos: 3.6s 105f ( 0%) 28fps Trem: 0min 0mb A-V:0.000 [1091:224]
> Skipping frame!
> Pos: 4.7s 136f ( 0%) 29fps Trem: 0min 0mb A-V:0.000 [1029:224]
> Skipping frame!
> Pos: 5.7s 167f ( 0%) 29fps Trem: 0min 0mb A-V:0.000 [998:224]]
> Skipping frame!
> Pos: 6.7s 198f ( 0%) 29fps Trem: 0min 0mb A-V:0.000 [953:224]
> Skipping frame!
> Pos: 7.8s 229f ( 0%) 29fps Trem: 0min 0mb A-V:0.000 [921:224]
> Skipping frame!
> Pos: 8.8s 260f ( 0%) 29fps Trem: 0min 0mb A-V:0.000 [900:224]
> Skipping frame!
> Pos: 9.8s 291f ( 0%) 30fps Trem: 0min 0mb A-V:0.000 [910:224]
> Skipping frame!
> Pos: 10.0s 298f ( 0%) 30fps Trem: 0min 0mb A-V:0.000 [906:224]
> Flushing video frames

Odd, this skip pattern makes no sense..

Rich




More information about the MEncoder-users mailing list