[MPlayer-users] Creating mpeg1 with Mencoder (0.90pre10)

Ulrich Petri ulope at gmx.de
Tue Dec 3 15:39:03 CET 2002


Hi,

i'm trying to create a mpeg1 file from a mpeg2pes (recorded from a dvb
card).

I'm using the following command:
# mencoder -vop scale=352:288 -oac copy -ovc lavc \
-lavcopts vcodec=mpeg1video:vbitrate=1152 \
001.vdr -o 001.vdr.mpg

and mplayer gives me:
--------------------------------snip----------------------
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MEncoder 0.90pre10-2.95.3 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Intel Pentium II Klamath/Pentium II OverDrive (Family: 6, Stepping:
3)
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Reading /root/.mplayer/codecs.conf: can't open
'/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 44 audio & 110 video codecs
File not found: 'frameno.avi'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0  data: 0x0 - 0x16D72282
Detected MPEG-PES file format!
VIDEO:  MPEG2  720x576  (aspect 2)  25.00 fps  18750.0 kbps (2343.8
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
========================================================================
==
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 24000->192000 (192.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
========================================================================
==
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [scale=352:288]
========================================================================
==
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMX for IDCT transform
libmpeg2: Using MMX for motion compensation
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 10 -> 8
SwScaler: reducing / aligning filtersize 10 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX
videocodec: libavcodec (352x288 fourcc=3167706d [mpg1])
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2)
========================================================================
==
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 bps=24000
sample=1)
Writing AVI header...
Pos:   0.8s     22f ( 0%)  11fps Trem:  15min  57mb  A-V:-0.084 [0:192]
duplicate 1 frame(s)!!!
Pos:   1.3s     32f ( 0%)  11fps Trem:  17min  71mb  A-V:-0.084
[965:192]
duplicate 1 frame(s)!!!
Pos:   1.7s     42f ( 0%)  11fps Trem:  18min  81mb  A-V:-0.084
[1040:192]
duplicate 1 frame(s)!!!
Pos:   2.2s     54f ( 0%)  11fps Trem:  20min  86mb  A-V:-0.083
[1020:192]
duplicate 1 frame(s)!!!
Pos:   3.7s     90f ( 0%)  11fps Trem:  21min  92mb  A-V:-0.080
[1012:192]
duplicate 1 frame(s)!!!
Pos:  35.4s    880f ( 4%)  11fps Trem:  26min 112mb  A-V:-0.049
[1057:192]
Writing AVI index...
Fixup AVI header...

Video stream: 1057.962 kbit/s  (132245 bps)  size: 4676194 bytes  35.360
secs  880 frames

Audio stream:  192.000 kbit/s  (24000 bps)  size: 864000 bytes  36.000
secs

---------------------snap--------------------

which looks imho quite good.
BUT I have some problems with it:
- why does it create an AVI header
- why does it use "mpg1" as FOURCC (Windows Mediaplayer does not
recognize this)
- the output file is complely garbled when viewed with Windows
Mediaplayer (even when stripping the avi header)
- virtualdub does not recognize the file (neither with nor w/o avi
header)

so therefore: please help!
What did i do wrong?

Cu Ulrich




More information about the MPlayer-users mailing list