[MPlayer-users] Avoiding A-V problems

Lobster lobo at lobs.sytes.net
Mon Sep 27 23:43:59 CEST 2010


  On 27/09/2010 8:33 p.m., Werner LEMBERG wrote:
>>> [mplayer SVN rev 32106]
>>>
>>> I have an AVI video which is played perfectly by mplayer.  For
>>> editing (avidemux can't process the original video), I try to
>>> convert it to a raw format, however, I always experience A-V delays
>>> which are zero at the beginning of the output file get larger if I
>>> skip towards the end of the video.
>> [...]
>>
>> You could try adding -ofps<desired fps>  to the command line and see
>> if that fixes it.
> Unfortunately, it doesn't.  I tried
>
>    mencoder in.avi \
>             -o out.avi \
>             -vf harddup \
>             -ofps 25 \
>             -ovc raw \
>             -oac pcm
>
> and A-V still gets more and more out of sync at the end of the video
> (approx. 3/10s after about 40min).
>
> Admittedly, I have no idea how mplayer and mencoder work internally.
> For my particular case, I don't need any meta-information which might
> be in the AVI data stream; I would be glad if I could simply capture
> the (perfect) mplayer output as raw video and audio.  Is this
> possible?  I could imagine that capturing a perfect replay should
> produce a perfect video ...
>
> For your information, below is what I see during encoding and replay
> of the created videos (using the above command line switches for
> mencoder and no switches for mplayer).  Maybe it helps to find a
> possible mistake I've done.
>
>
>      Werner
>
>
> ======================================================================
>
>
> MEncoder UNKNOWN-4.5 (C) 2000-2010 MPlayer Team
> success: format: 0  data: 0x0 - 0x3a3f3200
> AVI file format detected.
> AVI: ODML: Building ODML index (1 superindexchunks).
> AVI_NI: No video stream found.
> Seek failed
> libavformat file format detected.
> [avi @ 0x905f110] Estimating duration from bitrate, this may be inaccurate
> [lavf] stream 0: video (dvvideo), -vid 0
> [lavf] stream 1: audio (pcm_s16le), -aid 0
> VIDEO:  [dvsd]  720x576  0bpp  25.000 fps  28800.0 kbps (3515.6 kbyte/s)
> [V] filefmt:35  fourcc:0x64737664  size:720x576  fps:25.000  ftime:=0.0400
> ==========================================================================
> Opening audio decoder: [pcm] Uncompressed PCM audio decoder
> AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
> Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
> ==========================================================================
> Opening video filter: [expand osd=1]
> Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
> Opening video filter: [harddup]
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffdv] vfm: ffmpeg (FFmpeg DV)
> ==========================================================================
> Movie-Aspect is 1.37:1 - prescaling to correct movie aspect.
> Writing header...
> ODML: vprp aspect is 16384:12006.
> Pos:  68.2s   1704f ( 2%) 27.73fps Trem:  38min 39285mb  A-V:0.051 [124416:1536]
> ODML: Starting new RIFF chunk at 1023MB.
> Pos: 136.4s   3409f ( 5%) 27.15fps Trem:  38min 39596mb  A-V:0.051 [124415:1536]
> ODML: Starting new RIFF chunk at 2047MB.
>
> [...]
>
> Pos:2591.0s  64776f (97%) 26.60fps Trem:   0min 39784mb  A-V:0.051 [124416:1536]
> ODML: Starting new RIFF chunk at 38904MB.
> Pos:2650.2s  66256f (100%) 26.58fps Trem:   0min 39792mb  A-V:0.042 [124416:1536]
> [dvvideo @ 0x895d960]AC EOB marker is absent pos=64
> ...................................................
> [dvvideo @ 0x895d960]AC EOB marker is absent pos=64
> Pos:2650.3s  66257f (100%) 26.58fps Trem:   0min 39793mb  A-V:0.041 [124416:1536]
>
> Flushing video frames.
> Writing index...
> Writing header...
> ODML: vprp aspect is 16384:12006.
>
> Video stream: 124416.000 kbit/s  (15551999 B/s)
>    size: 41217154560 bytes  2650.280 secs  66257 frames
>
> Audio stream: 1536.000 kbit/s  (192000 B/s)
>    size: 508830812 bytes  2650.160 secs
>
>
> -------
>
>
> MPlayer UNKNOWN-4.5 (C) 2000-2010 MPlayer Team
>
> Playing Videokamera links Teil 1.neu.avi.
> AVI file format detected.
> [aviheader] Video stream found, -vid 0
> [aviheader] Audio stream found, -aid 1
> AVI: ODML: Building ODML index (2 superindexchunks).
> VIDEO:  [YV12]  720x576  12bpp  25.000 fps  124416.0 kbps (15187.5 kbyte/s)
> Clip info:
>   Software: MEncoder UNKNOWN-4.5
> Xlib:  extension "NV-GLX" missing on display ":0".
> [vdpau] Error when calling vdp_device_create_x11: 1
> ==========================================================================
> Opening video decoder: [raw] RAW Uncompressed Video
> Movie-Aspect is 1.36:1 - prescaling to correct movie aspect.
> VO: [xv] 720x576 =>  786x576 Planar YV12
> Selected video codec: [rawyv12] vfm: raw (RAW YV12)
> ==========================================================================
> ==========================================================================
> Opening audio decoder: [pcm] Uncompressed PCM audio decoder
> AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
> Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
> ==========================================================================
> AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
> Starting playback...
> A:   1.2 V:   0.3 A-V:  0.964 ct:  0.000   8/  8 ??% ??% ??,?% 7 0
>
> Badly interleaved AVI file detected - switching to -ni mode...
> A:2596.2 V:2596.2 A-V:  0.000 ct:  0.000 64906/64906  0%  1% 46.9% 7 0
>
> [...]
>
> Exiting... (Quit)

Are you sure your source file is completely valid? how was it made?
I have not seen those "AC EOB marker is absent" messages with any DV files
I have ever worked with. and I have worked with quite a few...

Also avidemux should support DV files right out of the box.
So some thing does not seem right here.





More information about the MPlayer-users mailing list