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. java之过滤器Filter

    Java三大器之过滤器(Filter)的工作原理和代码演示   一.Filter简介 Filter也称之为过滤器,它是Servlet技术中最激动人心的技术之一,WEB开发人员通过Filter技术,对w ...

  2. 【转】JavaScript的三种消息框alert,confirm,prompt

    1. alert是弹出警告框,在文本里面加入\n就可以换行.2. confirm弹出确认框,会返回布尔值,通过这个值可以判断点击时确认还是取消.true表示点击了确认,false表示点击了取消.3. ...

  3. devexpress entity framework 与 asp.net mvc的坑

    最近在做一个使用ASP.NET MVC DEVEXPRESS和EF的OA模块 遇到不少问题这里记录一下: 1 如果项目中存在多个上下文类(DBContext的派生类),在做数据迁移的时候需要在不同目录 ...

  4. php 高并发下 秒杀处理思路

    1.用额外的单进程处理一个队列,下单请求放到队列里,一个个处理,就不会有并发的问题了,但是要额外的后台进程以及延迟问题,不予考虑. 2.数据库乐观锁,大致的意思是先查询库存,然后立马将库存+1,然后订 ...

  5. Python自动化--语言基础7--操作日志、加密、发送邮件、线程、生产者消费者

    1.操作日志 logging.basicConfig:日志的统一处理器,对日志的输出格式和方式做配置日志级别等级CRITICAL > ERROR > WARNING > INFO & ...

  6. FLEX类似谷歌地图拖拽功能

    要实现类似于谷歌地图拖拽功能,可以用s:Scroller标签来实现,代码如下: mxml: <s:Scroller width="100%" height="100 ...

  7. 配置nginx服务器 —— Nginx添加多个二级子域名

    1.安装nginx centos/linux下的安装Nginx 2.安装好后进入Nginx目录中 在conf目录下建立一个vhost(ps:名字自己设定)文件夹 其中的$NGINXHOME为你的ngi ...

  8. C语言_结构体的4种定义初始化方式及案例

    结构体是一种构造数据类型 (构造数据类型:数组类型.结构体类型(struct).共用体类型(union)).用途:把不同类型的数据组合成一个整体,通俗讲就像是打包封装,把一些有共同特征(比如同属于某一 ...

  9. 《android开发艺术探索》读书笔记(五)--RemoteViews

    接上篇<android开发艺术探索>读书笔记(四)--View工作原理 No1: RemoteViews使用场景:通知栏和桌面小部件 No2: 通知栏主要通过NotificationMan ...

  10. 【Learning】最小点覆盖(二分图匹配) 与Konig定理证明

    (附一道例题) Time Limit: 1000 ms   Memory Limit: 128 MB Description 最小点覆盖是指在二分图中,用最小的点集覆盖所有的边.当然,一个二分图的最小 ...