mplayer is a powerful utility that is helpful for examining the raw yuv file.
We decoded this h.264 media file (test_avc_amr.mp4) coming with android opencore to yuv format, saved as a.yuv. The command below can display the yuv file frame by frame:
mplayer -demuxer rawvideo -rawvideo w=176:h=144:format=i420 a.yuv -loop 0
The internal structure of a.yuv is a serial of yuv frames, without any header describing the size and format.
So, to make mplayer work, we should tell it the width and height of the yuv in pixel. Also, we need to specify the format of the raw video. The command below shows us all available formats:
mplayer -rawvideo format=help
References:
mplayer manual page
mplayer online documentation
Monday, January 10, 2011
Subscribe to:
Post Comments (Atom)
1 comment:
This post made my day. I couldn't figure out how to verify my raw video until I saw this.
Post a Comment