[MEncoder-users] Problems coding raw rgb24 videos

Utopic utopic at gmail.com
Thu Jan 19 10:58:19 CET 2006


Hello

Well, I need to create raw rgb24 videos in the general raw standard that
work in windows, xine, ffplay...

The problems is that the ones that I create in mencoder only are working in
mplayer

Here are an example of what I'm running:

$ mencoder -ovc raw -ofps 5 -oac pcm -vf
scale=128:-2,expand=128:96,format=bgr24 a.avi -o out.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MEncoder 1.0pre7-4.0.2 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Northwood (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0  data: 0x0 - 0x245864
AVI file format detected.
VIDEO:  [DIVX]  640x360  24bpp  25.000 fps  294.6 kbps (36.0 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:640x360  fps:25.00  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  (-1=autodetect) osd: 1
Opening video filter: [format fmt=bgr24]
Opening video filter: [expand w=128 h=96]
Expand: 128 x 96, -1 ; -1  (-1=autodetect) osd: 0
Opening video filter: [scale w=128 h=-2]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
CBR PCM audio selected
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
VDec: vo config request - 640 x 360 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 21 -> 20
SwScaler: reducing / aligning filtersize 21 -> 20
SwScaler: reducing / aligning filtersize 21 -> 19
SwScaler: reducing / aligning filtersize 11 -> 10

This video only works in mplayer, doesn't work in windows or other linux
programs...

mplayer info about this video:
VIDEO:  [RGB]  128x96  24bpp  5.000 fps  1474.6 kbps (180.0 kbyte/s)
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 128 x 96 (preferred csp: BGR 24-bit)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using BGR 24-bit as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: using unscaled BGR 24-bit -> Planar YV12 special converter
VO: [xv] 128x96 => 128x96 Planar YV12
Selected video codec: [rawbgr24] vfm:raw (RAW BGR24)

ffmpeg info about this video:
  Stream #0.0,  5.00 fps(r): Video: 0x42475218, 128x96

As you see the fourcc codec isn't recognized

If I do the same with a rgb video coded in windows:
VIDEO:  []  128x96  24bpp  3.000 fps  884.7 kbps (108.0 kbyte/s)
Opening video filter: [flip]
Movie-Aspect is 1.22:1 - prescaling to correct movie aspect.
SwScaler: using unscaled BGR 24-bit -> Planar YV12 special converter
VO: [xv] 128x96 => 128x104 Planar YV12
Selected video codec: [rawbgr24flip] vfm:raw (RAW BGR24)

And the ffmpeg info:
  Stream #0.0,  3.00 fps(r): Video: rawvideo, bgr24, 128x96

I also tried to use ffmpeg, but there are not any way to codify raw videos
that are not in yuv (I also tried the "copy" codec)

Any idea?



More information about the MEncoder-users mailing list