How can I...?
Example 10: Simple dirac encoder/decoder. Shows how to read raw video frames from a file, encode them using dirac, decode them again, and then playback via a video overlay. Components used: ReadFileAdaptor, RawYUVFramer, DiracEncoder, DiracDecoder, VideoOverlay .
Download and build dirac first!
Get the source raw video file (in rgb format) from here, and gunzip it:
To convert RGB to YUV:
RGBtoYUV420 snowboard-jum-352x288x75.rgb snowboard-jum-352x288x75.yuv 352 288 75
Alternatively, source your own AVI file and convert with:
ffmpeg -i file_from_digital_camera.avi rawvideo.yuv
and alter the config below as required.
This is an ongoing community based development site. As a result the contents of this page is the opinions of the contributors of the pages involved not the organisations involved. Specificially, this page may contain personal views which are not the views of the BBC. (the site is powered by a wiki engine)
(C) Copyright 2008 Kamaelia Contributors, including the British Broadcasting Corporation, All Rights Reserved