[MPlayer-users] DVD -> DivX encoding - a/v out of sync.

Alain Barthélemy cassandre at bartydeux.be
Sat Dec 20 09:39:43 CET 2003


Le Friday 19 December 2003, 17:26:15 ou environ Juan Martin <nauj27 at teleline.es> a écrit:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]

> El vie, 19-12-2003 a las 12:02, The Wanderer escribió:
> > [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> > Alain Barthélemy wrote:
> > 
> > > BUT ONLY A/V SYNC PROBLEM IN X SERVER (NOT IN PURE CONSOLE).
> > > 
> > > mplayer-OPre1
> > > SuSE-8.2
> > > AMD-Athlon2000
> > > Video (integrated): SIS 650/651/M650/750 PCI/AGP VGA Display Adapter
> > > Sound: Ensoniq 5880 Audio PCI
> > > 
> > > Thus I have 1-2 seconds image delay when I encode from a DVD (not
> > > from TV signal).
> > > 
> > > Same image delay when I read directly the DVD with mplayer.
> > 
> > Please try the same again with either MPLayer 1.0pre3 or, preferably,
> > the latest CVS version. If it still exists, read bugreports.html (does
> > that file even still exist, since the docs conversion to XML?) and post
> > at least the full, non-truncated output of MPlayer and/or MEncoder.
> 
> bugreports can be read here [1]
> 
> [1] http://www.mplayerhq.hu/DOCS/HTML/en/bugreports.html
> 
> -- 
>   Juan Martín López - ICQ #76955750

Hello Juan Martin,

While reading a lot of mails I did not find something thus I assumed it was not
a mplayer bug but something perticular to my setup. As for trying other
versions other versions I even tried mplayer-0.92 with same problem (I read in
a e-mail that somebody could encode DVD with that version without
problems). Thus I assumed that trying all versions won't solve the problem
(question of experience).

Ask asked, follow the logs:

1) Mencoder

# mencoder dvd://1 -mc 0 -noskip -skiplimit 0 -ovc lavcopts vcodec=mpeg4:vhq
-oac mp3lame -lameopts abr:br=128:vol=5 -o temp.avi


failed to open frameno.avi
Reading config file /home/user/.mplayer
mencoder: aucun fichier répertoire de ce type
font: can't open file ...
...
Reading disc structure, please wait...
Ther are 2 titles on this DVD
There are 20 chapters ...
There are 1 angles ...
DVD successfully opened
success: format: 0 data: 0x0-0xD557D800
Selected DVD audio channel:128 language:fr
MPEG-PS file format detected
VIDEO:MPEG 720x576 (aspect 2) 25,000fps 9800,0 kbps (1225,0 kbyte/s)
[v] file fmt:2 fource:0x10000002 size:720x576 fps:25,00 ftime:=0x0400
=====================================================================
opening audio decoder:[liba52] AC3 decoding with liba52
using SSE optimized IMDCT transform
AC3:2.0 (stereo) 48000Hz 192,0kbit/s
using MMX optimized resampler
AUDIO:48000Hz,2ch,16bit(0010), ratio:24000->192000(192,0kbit)
Selected audio codec:[a52] afm:liba52 (AC3-liba52)

====================================
Opening video decoder:[mpegpes] MPEG1/2 video passthrough
Vdec:vo config request-720x576(preferred csp:MPEG PES)
Could not find matching colorspace - retrying with -vop scale ...
opening video filter:[scale]
The selected video_out device is incompatible with this codec
Vdecoder init failed :(
Opening video decoder:[libmpeg2]MPEG1/2 Video decoder:[libmpeg2-v0.3.1]
Selected video codec:[mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))

===================================
MP3 audio selected
Building audio filterchains for 48000Hz 2ch/16bit->48000Hz/2ch/16bit ...
Writing AVI header
Setting audio input gain to 5,000000
Vdec:vo config request -720x576 (preferred csp:Planar YV12)
Vdec:using Planar YV12 as ouput csp (no 0)
Movie-Aspect is 1,33:1-prescaling vo correct movie aspect
Video codec:libavcodec(720x576 fourcc 58564944 [DIVX])
High quality enciding selected (non real time)

----------------------------------------------

Skipping frame!

----------------------------------------------

2) mplayer temps.avi in console:

MPlayer 1.0pre1-3.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Duron MG Morgan (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /home/alain/.mplayer/config
Reading /home/alain/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf
font: can't open file: /home/alain/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Setting up LIRC support...

Playing folamour.avi
AVI file format detected.
VIDEO:  [DIVX]  720x576  24bpp  25,000 fps  799,7 kbps (97,6 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre1-3.3
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 14000->192000 (112,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
This file was encoded with libavcodec build 4677
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,25:1 - prescaling to correct movie aspect.
SwScaler: using unscaled Planar YV12 -> BGR 16-bit special converter
VO: [fbdev] 720x576 => 720x576 BGR 16-bit 

A: 0,1 V: 0,0 A-V: 0,051 ct: 0,000 1/ 1 0% 0% 0,0% 0 0 0%
A: 0,1 V: 0,0 A-V:
0,025 ct: 0,002 2/ 2 0% 0% 0,0% 0 0 0%
A: 0,1 V: 0,1 A-V: 0,024 ct: 0,005 3/
3 0% 0% 0,0% 0 0 0%
A: 0,1 V: 0,1 A-V: 0,024 ct: 0,007 4/ 4 0% 0% 0,0% 0 0
0%
A: 0,2 V: 0,2 A-V: 0,017 ct: 0,009 5/ 5 0% 0% 0,0% 0 0 0%
A: 0,2 V: 0,2
A-V: 0,014 ct: 0,010 6/ 6 0% 0% 0,0% 0 0 0%
A: 0,3 V: 0,2 A-V: 0,017 ct:
0,012 7/ 7 0% 0% 0,0% 0 0 0%
A: 0,3 V: 0,3 A-V: 0,014 ct: 0,013 8/ 8 0% 0%
0,0% 0 0 0%
A: 0,3 V: 0,3 A-V: 0,014 ct: 0,015 9/ 9 0% 0% 0,0% 0 0 0%
A: 0,4
V: 0,4 A-V: 0,017 ct: 0,016 10/ 10 0% 0% 0,0% 0 0 0%
A: 0,4 V: 0,4 A-V: 0,004
ct: 0,017 11/ 11 0% 0% 0,0% 0 0 0%
A: 0,4 V: 0,4 A-V: 0,004 ct: 0,017 12/ 12
0% 0% 0,0% 0 0 0%
A: 0,5 V: 0,5 A-V: 0,004 ct: 0,018 13/ 13 0% 0% 0,0% 0 0
0%
A: 0,5 V: 0,5 A-V: 0,004 ct: 0,018 14/ 14 12% 9% 1,2% 0 0

0%
A:   0,6 V:   0,6 A-V:  0,004 ct:  0,018   15/ 15  12%  9%  1,2% 0 0
0%
A:   0,6 V:   0,6 A-V:  0,004 ct:  0,019   16/ 16  12%  9%  1,2% 0 0
0%
A:   0,6 V:   0,6 A-V:  0,007 ct:  0,019   17/ 17  11%  9%  1,2% 0 0
0%
A:   0,7 V:   0,7 A-V:  0,004 ct:  0,020   18/ 18  11%  9%  1,2% 0 0
0%
A:   0,7 V:   0,7 A-V:  0,004 ct:  0,020   19/ 19  11%  9%  1,2% 0 0
0%
A:   0,8 V:   0,8 A-V:  0,004 ct:  0,021   20/ 20  11%  9%  1,2% 0 0
0%
A:   0,8 V:   0,8 A-V:  0,004 ct:  0,021   21/ 21  11%  9%  1,1% 0 0

Exiting... (Quit)

3) mplayer temp.avi in X11 (blackbox):

MPlayer 1.0pre1-3.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Duron MG Morgan (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /home/alain/.mplayer/config
Reading /home/alain/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: Using built-in default codecs.conf
font: can't open file: /home/alain/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using usleep() timing
Setting up LIRC support...

Playing folamour.avi
AVI file format detected.
VIDEO:  [DIVX]  720x576  24bpp  25,000 fps  799,7 kbps (97,6 kbyte/s)
Clip info:
 Software: MEncoder 1.0pre1-3.3
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 14000->192000 (112,0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
This file was encoded with libavcodec build 4677
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,25:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 720x576 Planar YV12 

Exiting... (Quit)

4) Error in X11 (blackbox):

: Aucun fichier ou répertoire de ce type
Can't open '/home/alain/.mplayer/codecs.conf': Aucun fichier ou répertoire de ce type
Can't open '/usr/local/etc/mplayer/codecs.conf': Aucun fichier ou répertoire de ce type
Failed to open /dev/rtc: Permission non accordée (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Can't open input config file /home/alain/.mplayer/input.conf: Aucun fichier ou répertoire de ce type
Can't open input config file /usr/local/etc/mplayer/input.conf: Aucun fichier ou répertoire de ce type
Falling back on default (hardcoded) input config
mplayer: could not connect to socket
mplayer: Permission non accordée
Failed to open LIRC support.
You will not be able to use your remote control.


-- 
Alain Barthélemy
cassandre at bartydeux.be
http://bartydeux.be
Linux User #315631




More information about the MPlayer-users mailing list