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

Brian Keener keenerb at roleplayga.org
Fri Jun 10 21:59:32 CEST 2005


Nico Sabbi wrote:

> Brian Keener wrote:
>
>>>
>> 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
>>
>
> please, try with -vf  harddup -noskip,and remember to set a low keyint 
> in lavcopts,
> such as keyint=25
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mencoder-users

I already had -vf harddup; added noskip and set a low keyint, and I 
still get an initial spurt of about 30 "initial delay of 0 frames", 
nothing else, and hideous a/v sync.

The real odd part is that it captured fine without the "-of mpeg" 
option, and reports no skipped frames at the end.

Brian K




More information about the MEncoder-users mailing list