ubuntu11.04编译gm8180的ffmpeg

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

时间: 2024-09-17 03:48:09

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

在Android中通过jni方式使用编译好的FFmpeg库-Android中使用FFmpeg媒体库(二)

原文:http://doandroid.info/?p=471 在继上篇在32位的Ubuntu 11.04中为Android NDK r6编译FFmpeg最新版0.8.1后,本人来给大家展示一下如何在Android中使用编译好的FFmpeg库. 整体调用逻辑为: 1 编译完ffmpeg库 2 使用jni方式撰写c代码,其中需要包含相应的ffmpeg的头文件 3 撰写相应的Android.mk文件,里面指定需要编译的c代码以及需要链接的动态库 4 执行ndk-build生成相应的jni库 5 创建

ubuntu14.04编译androidx86,出错

问题描述 ubuntu14.04编译androidx86,出错 解决方案 检查下环境变量,编译参数http://blog.csdn.net/gobitan/article/details/24367439/ 解决方案二: android 的编译,经常出现异常的错误. 首先多试几次,试的时候注意 Clear 以前的.

linphone编译Build of ffmpeg for arm failed有大神知道怎么解决吗

问题描述 linphone编译Build of ffmpeg for arm failed有大神知道怎么解决吗 BUILD SUCCESSFUL Total time: 3 seconds mkdir -p /home/long/Desktop/linphone-android2/submodules/externals/build/ffmpeg/arm && cd /home/long/Desktop/linphone-android2/submodules/externals/buil

使用ubuntu17.04编译Android 6.0源代码

在安装了最新的ubuntu17.04后编译Android6.0源代码的过程中,遇到了很多问题: 1.openjdk无法支持jdk8,只能用回jdk7 2.还有很多未曾遇到的编译问题 还陆陆续续遇到了各种各样的编译失败的信息,最后,参考这两位博主的16.04编译Android的方法顺利解决. 比如下面这个错误: 解决方法我是参考以下两位博主的: http://blog.csdn.net/fuchaosz/article/details/51487585 http://blog.csdn.net/c

Ubuntu11.04+Mono+Nginx运行asp.net之HelloWorld

     早就知道有mono这么个东西,一直想接触你,只到最近才开始花时间学习你--mono,给了很多想在linux上运行.net程序的朋友创造了无限可能.如果你跟我一样对mono接触很少,那你可以在这里了解下.我是一个linux菜鸟,准确的说还不是什么鸟,就是一白痴.所以在选择linux系统的时候,我也是一步步妥协.从CentOS---Debian---Ubuntu桌面版,主要是对linux不了解,所以最终还是选择了Ubuntu(最容易入手,呵呵,请路过的老鸟们鄙视我吧).介绍下我的整个环境,

在windows XP系统下编译和使用ffmpeg

最近在做流媒体开发这一块,在服务器端,所用的live555不支持mp4,avi等视频容器格式,所以打算运用ffmpeg来进行扩展.将MP4文件先运用ffmpeg进行解析,解析成live555所支持的基本视频流格式(如H.264等)和音频流格式,再运用live555中对基本音视频流的处理方式处理后,发送到客户端进行解码播放,这其中运用到了ffmpeg库,为了便于调试,开发环境初步选择了在windows下进行,所以需要在windows下编译ffmpeg.然后再扩充live555源代码.所用的版本为f

ubuntu11.04启动 及虚拟文件系统

虚拟文件系统(VFS)是由Sun microsystems公司在定义网络文件系统(NFS)时创造的.它是一种用于网络环境的分布式文件系统,是允许和操作系统使用不同的文件系统实现的接口.虚拟文件系统(VFS)是物理文件系统与服务之间的一个接口层,它对Linux的每个文件系统的所有细节进行抽象,使得不同的文件系统在Linux 核心以及系统中运行的其他进程看来,都是相同的.严格说来,VFS并不是一种实际的文件系统.它只存在于内存中,不存在于任何外存空间.VFS在系统启动时建立,在系统关闭时消亡. 形象

ubuntu14.04 编译安装highpoint rocketraid 2720驱动

highpoint官方只有ubuntu12.10驱动,对于ubuntu14.04或者12.04,需要手工编译安装驱动. 基本步骤: 1.下载rocketraid 2720驱动源代码 2.在一台装有ubuntu14.04的机器上编译驱动 3.如果新装系统,可使用highpoint官方提供的12.10驱动安装程序,替换里面的.ko驱动文件 源码及我编译好的安装包下载:http://pan.baidu.com/s/1bntSjU3 源码使用1.6.1版本:rr272x_1x-linux-src-v1.

ubuntu17.04编译Tiny4412 Android5.0源代码

跟着ubuntu12.04一样,我解开了4412的Android5.0源代码. 因为前面这篇文章已经安装了一些开发环境,所以这里不再哆嗦. 还是和这篇文章一样的: http://blog.csdn.net/morixinguan/article/details/70190518 遇到下面这个错误: 那么,这次就有经验了,直接用下面这个解决方法: clang编辑器的问题,在art/build/Android.common_build.mk 中将host 默认编辑器使用clang关掉,找到WITHO