Log in

View Full Version : Dropped frames... -> lost a-v sync


cord-factor
16th February 2008, 14:24
Hello,

I have to dump some video cassetes over VCR and TV-tuner (saa7134). VCR connected to Composite2. I prefer to capture to DV format, for next editting. But I tried and other ones.
My command is:

$ mencoder tv:// -o "1.dv" -tv width=720:height=576:audiorate=48000:forcechan=2:input=3:alsa -oac pcm -ovc lavc -lavcopts vcodec=dvvideo -of lavf -noskip

During the capture CPU load is about 60%. But at the end of capturing I see the note:

v4l2: 7914 frames successfully processed, 836 frames dropped

And the video in file 1.dv lags from sound. :(
When I record TV (input=0), there are no dropped frames.

What's the problem?

microchip8
16th February 2008, 17:37
try adding -vf harddup

nm
16th February 2008, 23:28
I'd guess the problem is in the V4L2 side (either MPlayer's input code or the driver) since there wasn't a problem when encoding a TV channel. Maybe the driver tries to capture with NTSC framerates by default, so try setting the norm to PAL in your -tv options.

akupenguin
17th February 2008, 12:53
Remove -noskip, it means "don't do any sort of A-V sync".

cord-factor
17th February 2008, 16:09
Remove -noskip, it means "don't do any sort of A-V sync".
Oh, thank you.
Without "-noskip" there are many notes in console like this:

..........

Pos:11787.1s 291913f ( 0%) 24.77fps Trem: 0min 0mb A-V:0.000 [28800:1536]
1 duplicate frame(s)!
Pos:11789.7s 291977f ( 0%) 24.77fps Trem: 0min 0mb A-V:0.000 [28800:1536]
1 duplicate frame(s)!
Pos:11791.4s 292018f ( 0%) 24.77fps Trem: 0min 0mb A-V:0.000 [28800:1536]
2 duplicate frame(s)!
Pos:11792.7s 292049f ( 0%) 24.77fps Trem: 0min 0mb A-V:0.000 [28800:1536]
1 duplicate frame(s)!
Pos:11801.7s 292273f ( 0%) 24.77fps Trem: 0min 0mb A-V:0.000 [28800:1536]
1 duplicate frame(s)!
Pos:11804.3s 292337f ( 0%) 24.77fps Trem: 0min 0mb A-V:0.000 [28800:1536]
1 duplicate frame(s)!

......

and at the end of capture

v4l2: 292376 frames successfully processed, 2737 frames dropped.

but a-v sync seems to be OK :)

Adub
20th February 2008, 05:14
Well, if it looks fine, and the audio is in sync, then no problems!