1.1 About this document
The ffmpeg is a open source package that provides video application for general usage. User can download
and view information in the ffmpeg web site:
? http://ffmpeg.mplayerhq.hu/
The SDK of Faraday Platform provides a modified ffmpeg package base on version 0.4.8. It has been
modified by Faraday for such reasons:
? A/V Sync calculator
? Different Thread handling
? Faraday Grab Device
? Faraday Audio Device
? Faraday Codec API
This document describes about ffmpeg application usage for Faraday H.264, MPEG4 and JPEG codec. It can
be run in GM8120/GM818x platform.
H.264 MPEG4 JPEG/MJPEG
GM8120 ˇ ˇ
GM818x ˇ ˇ ˇ
1.2 Installation
The SDK of ffmpeg MUST be installed in such directory “/usr/src/”.
# cp ffmpeg-0.4.8.xxx.tar.gz /usr/src
# tar zxvf ffmpeg-0.4.8.xxx.tar.gz
After you extract the tar archive, the ffmpeg-0.4.8 will be created.
? /usr/src/ffmpeg-0.4.8
ffmpeg user guide
www.grain-media.com
5
1.3 Compiling software environment
The ffmpeg can be compiler in Linux 2.4/2.6 environment. Before you compiler ffmpeg, you must compiler
Linux kernel and don’t change Linux kernel and ffmpeg directory. To compiler in Linux 2.4 environment,
you should execute such command:
For GM8120 in Linux 2.4 environment.
# ./switch.sh 8120_24
For GM8120 in Linux 2.6 environment.
# ./switch.sh 8120_26
For GM8180 in Linux 2.6 environment.
# ./switch.sh 8180_26
For GM8185 in Linux 2.6 environment.
# ./switch.sh 8185_26
You may use command to do the compiler:
# make clean
# make
The ouput file “ffmpeg” and “ffplay” will be build in ffmpeg-0.4.8 directory.
ffmpeg user guide
www.grain-media.com
6
1.4 Capture/Codec Module
Before execute the ffmpeg program, please make sure the capture and codec driver are installed well. Use the
module list information to see the installation.
# lsmod
In GM8120, you should check if such module installed
? fcap_drv.o (GM8120/GM8150 Capture driver)
? fmcp_drv.o (MPEG4/JPEG common driver)
? fmpeg4_drv.o (MPEG4 driver)
? fmjpeg_drv.o (JPEG driver module)
In GM818x, the driver module list:
? fcap_common.ko (GM8180 Capture common driver)
? fcap0.ko (Capture 0 driver)
? fcap1.ko (Capture 1 driver)
? fcap100_xxxx.ko (Video Input Module for capture driver, such as fcap100_ov7660.ko is for OV7660)
? favc_common.ko (H.264 common driver)
? favc_drv.ko (H.264 video driver)
? fmcp420_drv.ko or fmcp422.ko(MPEG4/JPEG common driver, fmcp420_drv.ko for JPG decoding on
420 display, and fmcp422_drv.ko for JPG decoding on 422CbYCrY display)
? fmpeg4_drv.ko (MPEG4 driver)
? fmjpeg_drv.ko (JPEG driver module)
ffmpeg user guide
www.grain-media.com
7
1.5 FFMPEG Help/Preview Option
Any time for help, type
#./ffmpeg
If you want to preview the video in GM8120 according to the resolution. The WxH may be 320x240,
640x480, 720x480…etc.
#./ffmpeg –focus WxH

ubuntu11.04编译gm8180的ffmpeg的更多相关文章

  1. ubuntu11.04编译TQ2440 Qt2.2.0 成功

    转:http://blog.csdn.net/xuehui869/article/details/8958311 运行主机:ubuntu 32位 11.04QT版本:2.2.0开发板:TQ2440源码 ...

  2. ubuntu11.04 编译ffmpeg2.7 并生成 ffplay进行流媒体測试

    源代码安装方式: 1. 先下载ffmpeg 安装包 到官网上 http://ffmpeg.org/download.html#releases 下载.选择Download gzip tarball. ...

  3. (转)Ubuntu10.04编译FFmpeg

    刚开始安装折腾了好久,很多软件包都找不到,可能是跟软件源有关,所以先说一下我的软件源: 软件源是用的中国默认的官方源http://cn.archive.ubuntu.com/ubuntu/ 一.安装编 ...

  4. Ubuntu12.04编译Android4.0.1源码全过程-----附wubi安装ubuntu编译android源码硬盘空间不够的问题解决

    昨晚在编译源码,make一段时间之后报错如下: # A fatal error has been detected by the Java Runtime Environment: # # SIGSE ...

  5. Ubuntu 18.04 编译 ijkplayer

    Ubuntu 18.04 编译 ijkplayer 1. 配置安装源 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu 2. 配置好安装源后,安装一些组 ...

  6. ubuntu10.04编译安装LAMP

    ubuntu10.04编译安装LAMP以及简单wordpress的使用 : http://linuxme.blog.51cto.com/1850814/971631 一.源码安装LAMP 网上有一堆关 ...

  7. Android APP使用NDK编译后的ffmpeg库出现undefined reference to 'posix_memalign'错误

    在android程序中使用NDK编译后的ffmpeg库的时候出现了如下错误: jni/libs/libavutil.a(mem.o): in function av_malloc:libavutil/ ...

  8. Ubuntu14.04编译安装mysql5.6.26

    Ubuntu14.04编译安装mysql5.6.26 (1)安装编译源码需要的包 sudo apt-get install make cmake gcc g++ bison libncurses5-d ...

  9. 用UltraISO制作的u盘ubuntu11.04,启动失败解决方案

    错误提示:SYSLINUX 3.84 2009-12-18 EBIOS Copyright c 1994-2009 H.Peter Anvin et al 折腾的很久,尝试用Pauly的bootice ...

随机推荐

  1. Docker最佳实践-部署LNMP环境

    标签(linux): docker 笔者Q:972581034 交流群:605799367.有任何疑问可与笔者或加群交流 环境准备 [root@docker ~]# cat /etc/redhat-r ...

  2. 使用zii.widgets.CDetailView显示内容

    Yii里的CDetailView可以用来显示详细内容,有时会遇到显示的html内容是被转义过的,也就是原本是要显示html样式的,结果显示出来的内容却是把html当作普通文本了. 先看一个CDetai ...

  3. 基于Vue2写的一个有关美食项目

    刚学Vue练习的一个项目 使用Vue2+vue-router+vuex+axios+webpack router使用了默认的hash模式 引入了高德地图和element-ui 项目地址点击这里 演示地 ...

  4. iOS-生成二维码图片【附中间带有小图标二维码】(QRCode)

    生成二维码图片也是项目中常用到的,二维码的扫描Git上有很多好用的,这里主要说下二维码的生成 1.普通二维码 方法 /** 生成二维码 QRStering:字符串 imageFloat:二维码图片大小 ...

  5. 用icas下载文件报错

    前段时间服务器升级,过程中测试到报表下载,报表下载要用到icas,用的是sdts-client.jar,但是此jar包有两种连接模式,分别为: public static final SdtsConn ...

  6. Java字节码基础[转]

    原文链接:http://it.deepinmind.com/jvm/2014/05/24/mastering-java-bytecode.html Java是一门设计为运行于虚拟机之上的编程语言,因此 ...

  7. 济南清北学堂游记 Day 4.

    不知不觉,行程已经过半了啊. 基本上已经熟悉了这里的环境,这其实也意味着我应该很快就要走了. 明天和后天还有最后四场模拟赛,虽然以我的实力拿不到奖,但我也会尽力做好我自己. 我大概反思了一下这几天,其 ...

  8. XML+JSON面试题都在这里

    XML+JSON常见面试题 什么是JSON和XML 什么是JSON和XML JSON:JavaScript Object Notation [JavaScript 对象表示法]. XML:extens ...

  9. 监督学习:随机梯度下降算法(sgd)和批梯度下降算法(bgd)

    线性回归 首先要明白什么是回归.回归的目的是通过几个已知数据来预测另一个数值型数据的目标值. 假设特征和结果满足线性关系,即满足一个计算公式h(x),这个公式的自变量就是已知的数据x,函数值h(x)就 ...

  10. ACE-6.1.0 linux 下的编译与安装步骤

    ACE-6.1.0 linux 下的编译与安装步骤  引用至http://www.cnblogs.com/liangxiaxu/archive/2013/03/07/2948417.html 1.从  ...