Posts

Showing posts from June, 2013

Using ffmpeg to convert video file

Image
Using FFmpeg to convert video file Table of Contents 1 Some basic concept about digital video file 2 what is FFmpeg? 3 how FFmpeg works inside? 4 convert MOV file format into mp4 format 5 what's more 1 Some basic concept about digital video file There are many kinds of Video file format including MOV, mp4, Flv, AVI, which act as the containers in which video data is stored. And Video data is encoded by codecs. In other words, Video file format is just a container, and Video codecs are used to encode or compress the video data. The anatomy of video file including following parts: A container type: AVI, MOV, mp4, FLV… The video and audio signal: the data stored in the container. Codec: Codec refer to the software that is used to encode and decode the video signal The characteristics of a video signal: Frame size: the pixel dimension of the frame The Aspect ratio: the ratio of width to height Frame rate: the rate of frames per second Bitrate: th

Chain of Responsibility design pattern

Chain Of Responsibility design pattern Table of Contents 1 What is it? 2 Practice this pattern in C 1 What is it? According to Gof95, Chain of Responsibility belong to Behavioral Patterns. The definition of this pattern in Gof95 is: Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it. 2 Practice this pattern in C In wikipadia , it gives an example code to illustrate this pattern in java code. And I translate those code into C. I upload the source code into the github. chain of responsibility in C