[Mplayer-dvb] Encoding!

Gregoire Favre greg at ulima.unil.ch
Mon Nov 12 22:17:21 CET 2001


On Sat, Nov 03, 2001 at 03:52:11AM +0200, Arpi wrote:
> Hi,
> I've just finished some tests, grabbing from RTL 2 and encoding it to
> 2-pass 800kbit divx:
> 
> ./mencoder -divx4opts br=800 -pp 0x20000 /6/video/@Pro7/2001-11-03.02.17.50.50.rec/001.vdr -frames 1500 -pass 1
> ./mencoder -divx4opts br=800 -pp 0x20000 /6/video/@Pro7/2001-11-03.02.17.50.50.rec/001.vdr -frames 1500 -pass 2

With a previous compiled version (compiled following the DVB
instructions in DOCS), I got some test.avi:
-rw-r--r--    1 root     root         192M Oct 28 00:17 001.vdr
-rw-r--r--    1 greg     greg         255k Nov 12 20:54 analyse.log
-rw-r--r--    1 greg     greg         102k Nov 12 20:38 divx2pass.log
-rw-r--r--    1 root     root         100k Oct 28 00:17 index.vdr
-rw-r--r--    1 root     root           22 Oct 28 00:17 marks.vdr
-rw-r--r--    1 root     root            4 Oct 28 00:18 resume.vdr
-rw-r--r--    1 root     root           16 Oct 28 00:16 summary.vdr
-rw-r--r--    1 greg     greg         5.5M Nov 12 20:54 test.avi

Which is rather small... I have tried to play it, after the first
command, bad result using mplayer -vo mpegpes -vc odivx test.avi as
the speed is about half what it should be, and I just got sound
for about 1/10 seconds...

When mplayer -vo mpegpes -vc odivx /video/%@ARTE/2001-10-12.19:03.50.50.rec/test.avi


MPlayer CVS-011104-14:45(C) 2000-2001 Arpad Gereoffy (see DOCS!)

CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/greg/.mplayer/codecs.conf: 21 audio & 52 video codecs
font: can't open file: /home/greg/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Playing /video/%@ARTE/2001-10-12.19:03.50.50.rec/test.avi
Detected AVI file format!
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
VIDEO:  [divx]  528x576  24bpp  25.00 fps  762.0 kbps (93.0 kbyte/s)
[V] filefmt:3  fourcc:0x78766964  size:528x576  fps:25.00  ftime:=0.0400
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
mp3lib: Processor ID: 672
mp3lib: Using SSE! optimized decore.
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 12000->192000
Forcing video codec: [odivx] drv:3 (OpenDivX (MPEG-4 v2))
Movie-Aspect is undefined - no prescaling applied.
VO: [mpegpes] 528x576 => 528x576 Planar YV12 
[vo] position mapping: 0;0 => 8;0
AO: [oss] 48000Hz Stereo Signed 16-bit (Little-Endian)
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
Start playing...
*** free_stream() called ***2 ct: -0.078   24/ 24  54% 208% 19.6% 0 0 0%

Exiting... (Quit)
[greg at localhost main-2001-11-12]$ cd /video/%@ARTE/2001-10-12.19:03.50.50.rec/
[greg at localhost 2001-10-12.19:03.50.50.rec]$ mem
memos        memtest      memusage     memusagestat 
[greg at localhost 2001-10-12.19:03.50.50.rec]$ mencoder -divx4opts br=800 -pp 0x20000 001.vdr -frames 1500 -pass 1
Reading /home/greg/.mplayer/codecs.conf: 21 audio & 52 video codecs
success: format: 0  data: 0x0 - 0xC02E29C
Detected MPEG-PES file format!
VIDEO:  MPEG2  528x576  (aspect 2)  25.00 fps  9975.0 kbps (1246.9 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:528x576  fps:25.00  ftime:=0.0400
Detected video codec: [mpeg12] drv:1 (MPEG 1 or 2)
mpeg2dec-0.2.0-release (C) 2000-2001 Aaron Holtzman & Michel Lespinasse
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
mp3lib: Processor ID: 672
mp3lib: Using SSE! optimized decore.
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 16000->192000
Writting AVI header...
Internal buffer inconsistency. flushbits <> ResvSizebit reservoir error: 
l3_side->main_data_begin: 96 
Resvoir size:             88 
resv drain (post)         7 
resv drain (pre)          0 
header and sideinfo:      288 
data bits:                3383 
total bits:               3678 (remainder: 6) 
bitsperframe:             3072 
Internal buffer inconsistency. flushbits <> ResvSizehead_check failed
head_check failed.0 A-V: -0.214 oAV:  0.104 diff: -0.318 ct:  0.000 vpc:  0.000   
head_check failed.1 A-V: -0.335 oAV:  0.064 diff: -0.399 ct: -0.004 vpc: -0.004   
head_check failed.1 A-V: -0.294 oAV:  0.024 diff: -0.314 ct: -0.008 vpc: -0.008   
Intra: 187 Inter: 961 Inter4v: 39
Avg 28 SAD16's / mb
MVs: 153 normal, 25 hor, 98 ver, 64 hv
Texture: 108713 bits, motion: 5055 bits, mv sigma: 14.381292
New search range: 64
head_check failed.2 A-V: -0.415 oAV: -0.016 diff: -0.391 ct: -0.012 vpc: -0.012   
Intra: 0 Inter: 1187 Inter4v: 0
Avg 14 SAD16's / mb
MVs: 55 normal, 3 hor, 22 ver, 2 hv
Texture: 658 bits, motion: 306 bits, mv sigma: 2.301908
head_check failed.2 A-V: -0.374 oAV: -0.056 diff: -0.306 ct: -0.016 vpc: -0.016   
Intra: 0 Inter: 1187 Inter4v: 0
Avg 14 SAD16's / mb
MVs: 15 normal, 1 hor, 12 ver, 0 hv
Texture: 134 bits, motion: 129 bits, mv sigma: 3.308539
New search range: 32
head_check failed.3 A-V: -0.495 oAV: -0.096 diff: -0.384 ct: -0.020 vpc: -0.020   
Intra: 0 Inter: 1187 Inter4v: 0
Avg 13 SAD16's / mb
MVs: 0 normal, 1 hor, 4 ver, 0 hv
Texture: 0 bits, motion: 26 bits, mv sigma: 1.140175
New search range: 16
head_check failed.2 A-V: -0.454 oAV: -0.136 diff: -0.298 ct: -0.024 vpc: -0.024   
Intra: 0 Inter: 1187 Inter4v: 0
Avg 13 SAD16's / mb
MVs: 0 normal, 3 hor, 3 ver, 0 hv
Texture: 0 bits, motion: 24 bits, mv sigma: 0.707107
A:23614.8 V:23615.4 A-V: -0.576 oAV: -0.176 diff: -0.376 ct: -0.028 vpc: -0.028   
Writting AVI index...
Fixup AVI header...
*** free_stream() called ***

And if I try to compil the one from today CVS:

gcc -c -O4 -march=i686 -mcpu=i686 -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I. -I.. -I/usr/include/SDL -D_REENTRANT  -I/mnt/ext2/linux/DVB/ost/include/   -DMPG12PLAY  -o vo_mpegpes.o vo_mpegpes.c
vo_mpegpes.c:293: `PES_MAX_SIZE' undeclared here (not in a function)
vo_mpegpes.c: In function `send_pes_packet':
vo_mpegpes.c:303: `PES_MAX_SIZE' undeclared (first use in this function)
vo_mpegpes.c:303: (Each undeclared identifier is reported only once
vo_mpegpes.c:303: for each function it appears in.)
vo_mpegpes.c: In function `send_lpcm_packet':
vo_mpegpes.c:340: `PES_MAX_SIZE' undeclared (first use in this function)
vo_mpegpes.c: At top level:
vo_mpegpes.c:293: storage size of `pes_header' isn't known
make[1]: *** [vo_mpegpes.o] Error 1
make[1]: Leaving directory `/usr/src/main-2001-11-12/libvo'
make: *** [libvo/libvo.a] Error 2

Could someone tells me what I am doing wrong?

Thanks you very much,

	Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg at ulima.unil.ch



More information about the MPlayer-dvb mailing list