[MPlayer-users] Creating yuv stream for encoding in Dirac with Mplayer

鈴置友也 cso at katch.ne.jp
Tue Aug 24 17:42:56 CEST 2004


Hello, i have a problem...

 How to dump raw yuv stream in yuv420? or does anybody have a good idea
to convert YV12 raw stream into yuv420 ? i am using windows .. what i
can use is mplayer and ffmpeg,,, and imageMagick..only. 


 i am trying to test dirac wavelet video codec... (to check it really
better than xvid or mpeg4 or not..)
dirac needs video sources in yuv420 stream, so i have to convert video
images into yuv streams..

what i tried to dump movies into raw yuv stream ..

mplayer  t.m2v -vo yuv4mpeg -vf format=i420,scale=720:540

Playing t.m2v.
MPEG-ES file format detected.
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  6000.0 kbps (750.0 kbyte/s)
vo_yuv4mpeg: Using (default) progressive frame mode
Opening video filter: [scale w=720 h=540]
Opening video filter: [format fmt=i420]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
VO: [yuv4mpeg] 720x540 => 720x540 Planar YV12


  t.m2v is PAL Mpeg2 video.. and i supposed this command to be convert
it to i420(yuv420) raw video stream.
 but, messages told it as `YV12'. `-vf format=i420' option doesn't work
with a option `-vo yuv4mpeg' ???

 (VO: [yuv4mpeg] 720x540 => 720x540 Planar YV12)

 so, after finished dumping.. i can't play it in direct..

when i typed ...
mplayer -fps 25 -rawvideo on:size=583200:w=720:h=540 stream.yuv

Playing stream.yuv.
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 720 x 540 (preferred csp: Planar I420)
VDec: using Planar I420 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [directx] 720x540 => 720x540 Planar I420
Selected video codec: [rawi420] vfm:raw (RAW I420)
==========================================================================

 mplayer choose raw Uncompressed Video Decoder and its colour space is
I420 ..but it wouldn't be played. i think it is in YV12 , not in yuv420..
i don't know about colors spaces at all, but i have to get yuv
 stream in yuv420 so that i can pass them to encode 
`dirac_encoder -SD576 -qf 9 stream out' ..

 (i know it can be displayed with options, such as `y420' or `yuv2' or
`yv12' )

 How to dump raw yuv stream in yuv420? or does anybody have good idea to
convert YV12 raw stream into yuv420 ? i am using windows .. what i can
use is mplayer and ffmpeg,,, and imageMagick.. 

 what i want to do is to create raw yuv stream, which can be played
without specifying color space ..(is what is need to encode into dirac)

Please help me....
and sorry my bad english..

 Thank you,
 Tomonari Suzuoki
 cso at katch.ne.jp





More information about the MPlayer-users mailing list