Download Latest Version v_2.2.zip (3.4 MB)
Email in envelope

Get an email when there's a new version of SDL_YUVplayer

Home / sdl-yuvplayer_v1.0
Name Modified Size InfoDownloads / Week
Parent folder
Images 2010-10-17
README.txt 2010-10-17 2.1 kB
SDL_YUVplayer.exe 2010-10-17 641.3 kB
io_stuff.h 2010-10-17 9.5 kB
Makefile 2010-10-17 237 Bytes
SDL_YUVplayer.c 2010-10-17 9.2 kB
Totals: 6 Items   662.3 kB 0
/*
 *  Copyright 2010 University of Nantes, IRCCyN lab.
 *
 *  All Rights Reserved.
 *
 *  Florent Autrusseau.
 *  start : 08/10/2010.
 *  end   : 12/10/2010
 *
 *  Questions and comments to:
 *       <mailto:florent.autrusseau@univ-nantes.fr>
 *       <http://www.irccyn.ec-nantes.fr/~autrusse/>
 */

This cource code (in C) uses the SDL library to display a YUV video.
So far, the player only displays 4:2:0 YUV format.


Compilation: 
************

You will need to install:
 - SDL (http://www.libsdl.org/)

On Unix-like systems, a "make" should work.

On MS Windows OS, please refer to the explanations here: 
http://www.irccyn.ec-nantes.fr/~autrusse/Code/ReadmeYUVplayer.html


Running the player:
*******************

Here's how to launch the program:

Unix:
./SDL_YUVplayer foreman_qcif.yuv 144 176

MS Windows:
SDL_YUVplayer.exe foreman_qcif.yuv 144 176

1st argument is the yuv file name.
2nd argument is the frames height.
3rd argument is the frames width.

This opens a black window, then, hit "Return" to start playing.

Once the video is playing, you can:
- Play "Rewind" by pressing the "left" arrow.
- Play "Forward" by pressing the "right" arrow.
- "Fast forward" by pressing the "up" arrow ->	Decreases by 10ms the time between 2 consecutive frames.
- "Slow motion" by pressing the "down" arrow -> Increases by 10ms the time between 2 consecutive frames.
- Use "up" and "down" as many times as needed to speed up / slow down the video.
- press "o" anytime to go back to a normal speed (40 ms between frames).
- Pause by pressing the "space bar" (press "Return" to start again playing or "space bar" again to play frame-by-frame)
- Save any Y,U&V frame (each as a PGM image) by pressing "s" while in pause mode (space bar), the saved images will go in the "Images" folder.
- Quit by pressing "escape".

The program can store each frame (Y, U and V components) in the Images folder, you'll have to set "SaveImges" to 1 in SDL_YUVplayer.c
Beware, this may use a lot of space or your hard drive.

Various yuv videos can be downloaded from:
http://trace.eas.asu.edu/yuv/index.html
Source: README.txt, updated 2010-10-17