[MEncoder-users] Mencoder adding AVI file header to MPEG2 capture from V4L device?

Brian Keener keenerb at roleplayga.org
Fri Jun 10 21:42:23 CEST 2005


Saitov Menuhin wrote:

>On Fri, Jun 10, 2005 at 03:18:47PM -0400, Brian Keener wrote:
>  
>
>>I'm trying to capture home movies from a bt848 device to hard disk, in 
>>preperation for creating a DVD using TMPGENC dvd author in Windows.
>>
>>I'm running under Mandrake 10.1 for the captures.
>>
>>I tried initially to use FFMPEG, but experienced some really poor 
>>performance, so I'm trying mencoder now.
>>
>>Here's my command line:
>>
>>mencoder -fps 30000/1001 -endpos 00:00:05 -oac mp3lame -ovc lavc 
>>-lameopts mode=1:vbr=1:q=4 -lavcopts vcodec=mpeg2video:vbitrate=6000 -tv 
>>driver=v4l2:norm=ntsc:input=2:adevice=/dev/dsp1:width=720:height=480 -vf 
>>harddup -af volume=-1 -o tv.mpg tv://
>>
>>    
>>
>
>Try  with -of mpeg then writes a mpeg file.
>
>Menuhin
>
>  
>
I added "-of mpeg" and now I'm experiencing horribly audio/video sync 
problems.  At random intervals, I get hundreds of

INITIAL DELAY of 0 frames   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
INITIAL DELAY of 0 frames   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
INITIAL DELAY of 0 frames
INITIAL DELAY of 0 frames   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
INITIAL DELAY of 0 frames
INITIAL DELAY of 0 frames   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
INITIAL DELAY of 0 frames

interspersed with hundreds of

ERROR: SCR: 20.704, VPTS: 20.433, DELTA=-0.271 secs
ERROR: SCR: 20.728, VPTS: 20.467, DELTA=-0.261 secs
ERROR: SCR: 20.751, VPTS: 20.500, DELTA=-0.251 secs
ERROR: SCR: 20.779, VPTS: 20.533, DELTA=-0.245 secs
ERROR: SCR: 20.802, VPTS: 20.567, DELTA=-0.235 secs
ERROR: SCR: 20.849, VPTS: 20.600, DELTA=-0.249 secs
ERROR: SCR: 20.888, VPTS: 20.633, DELTA=-0.254 secs
ERROR: SCR: 20.915, VPTS: 20.667, DELTA=-0.248 secs
ERROR: SCR: 20.935, VPTS: 20.700, DELTA=-0.235 secs
ERROR: SCR: 20.962, VPTS: 20.733, DELTA=-0.228 secs
ERROR: SCR: 20.981, VPTS: 20.767, DELTA=-0.215 secs
ERROR: SCR: 21.040, VPTS: 20.800, DELTA=-0.240 secs
ERROR: SCR: 21.079, VPTS: 20.833, DELTA=-0.245 secs

And end result is unusable.

I searched man, and the mailing list archive, and didn't get anything 
useful.

Brian K







More information about the MEncoder-users mailing list