Monthly Archives: September 2013

FFmpeg sample to decode video using libavformat API

Here is a very simple example to use libavformat and libavcodec library API to decode video: // ffmpeg_sample.c // Date: Sep 05, 2013 // Code based on a https://raw.github.com/phamquy/FFmpeg-tutorial-samples/master/tutorial01.c // Tested on CentOS 5.7, GCC 4.1.2,FFMPEG 0.10.1 // libavcodec.so.53.60.100 libavdevice.so.53.4.100 … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

View Y frames in Linux using mplayer

To view a file with only Y frames, following command can be used on Linux to view the frames: mplayer -demuxer rawvideo -rawvideo w=[LINESIZE]:h=[HEIGHT]:format=y8 in.raw -loop 0 To view all the formats available for rawvideo: mplayer -rawvideo format=help Reference: mplayer … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment