example codes for FFmpeg