ubuntu11.04编译gm8180的ffmpeg
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的更多相关文章
- ubuntu11.04编译TQ2440 Qt2.2.0 成功
转:http://blog.csdn.net/xuehui869/article/details/8958311 运行主机:ubuntu 32位 11.04QT版本:2.2.0开发板:TQ2440源码 ...
- ubuntu11.04 编译ffmpeg2.7 并生成 ffplay进行流媒体測试
源代码安装方式: 1. 先下载ffmpeg 安装包 到官网上 http://ffmpeg.org/download.html#releases 下载.选择Download gzip tarball. ...
- (转)Ubuntu10.04编译FFmpeg
刚开始安装折腾了好久,很多软件包都找不到,可能是跟软件源有关,所以先说一下我的软件源: 软件源是用的中国默认的官方源http://cn.archive.ubuntu.com/ubuntu/ 一.安装编 ...
- Ubuntu12.04编译Android4.0.1源码全过程-----附wubi安装ubuntu编译android源码硬盘空间不够的问题解决
昨晚在编译源码,make一段时间之后报错如下: # A fatal error has been detected by the Java Runtime Environment: # # SIGSE ...
- Ubuntu 18.04 编译 ijkplayer
Ubuntu 18.04 编译 ijkplayer 1. 配置安装源 https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu 2. 配置好安装源后,安装一些组 ...
- ubuntu10.04编译安装LAMP
ubuntu10.04编译安装LAMP以及简单wordpress的使用 : http://linuxme.blog.51cto.com/1850814/971631 一.源码安装LAMP 网上有一堆关 ...
- Android APP使用NDK编译后的ffmpeg库出现undefined reference to 'posix_memalign'错误
在android程序中使用NDK编译后的ffmpeg库的时候出现了如下错误: jni/libs/libavutil.a(mem.o): in function av_malloc:libavutil/ ...
- Ubuntu14.04编译安装mysql5.6.26
Ubuntu14.04编译安装mysql5.6.26 (1)安装编译源码需要的包 sudo apt-get install make cmake gcc g++ bison libncurses5-d ...
- 用UltraISO制作的u盘ubuntu11.04,启动失败解决方案
错误提示:SYSLINUX 3.84 2009-12-18 EBIOS Copyright c 1994-2009 H.Peter Anvin et al 折腾的很久,尝试用Pauly的bootice ...
随机推荐
- Eclipse 配置运行Spark
本文主要记录Spark 在 Eclipse中报 找不到主类的问题.在新建Spark工程,然后add external jars 选择 spark-assembly-1.4.0-hadoop2.6.0. ...
- Java多线程优化方法及使用方式
一.多线程介绍 在编程中,我们不可逃避的会遇到多线程的编程问题,因为在大多数的业务系统中需要并发处理,如果是在并发的场景中,多线程就非常重要了.另外,我们在面试的时候,面试官通常也会问到我们关于多线程 ...
- H5 Canvas图像模糊解决办法
1.最近在用h5的canvas画动画,发现图像特别模糊.后来终于找到罪魁祸首是<meta name="viewport" content="width=device ...
- java中线程的状态详解
一.线程的五种状态 线程的生命周期可以大致分为5种,但这种说法是比较旧的一种说法,有点过时了,或者更确切的来说,这是操作系统的说法,而不是java的说法.但对下面所说的六种状态的理解有所帮助,所以 ...
- C#中的out参数/ref参数/params可变参数
out参数: out关键字 通过引用来传递参数,在定义方法和调用方法的时候都必须使用out关键字 简单来讲out可以用来返回多个参数类型. static void Main(string[] args ...
- 关于css选择器的一些细节
1.如何区分一个html标签的不同样式 使用标签名.类名的方式解决 如果希望特别强调其中的某一个或几个元素,处理的方案有三个: 1.id选择器 2.class选择器 3.层级选择器 看下面的代码: & ...
- javascript 中 dom.getAttribute("value") 与dom.value的差异
dom 是一个 input type="text" 手动修改 input 的值, 使用 dom.getAttribute("value") 只能得到 html ...
- BZOJ 3566: [SHOI2014]概率充电器 [树形DP 概率]
3566: [SHOI2014]概率充电器 题意:一棵树,每个点\(q[i]\)的概率直接充电,每条边\(p[i]\)的概率导电,电可以沿边传递使其他点间接充电.求进入充电状态的点期望个数 糖教题解传 ...
- 使用sed修改配置项的值
起先我的想法是根据等号来求得配置项所在的行号, sed -n '/aaa/=' config.ini 然后根据行号删除这一行,再增加一行比如行号是9 sed -i '9d' config.ini s ...
- c语言环境初始化&c语言和汇编混合编程
bootloader通常会分为两个阶段:第一阶段采用汇编语言来编写,主要是一些核心的初始化工作(内存,时钟的初始化),第二阶段使用C语言来编写,主要是它会完成一些板载硬件的初始化(串口,网口)然后其启 ...