ubuntu11.04编译gm8180的ffmpeg

简介: <div class="bct fc05 fc11 nbw-blog ztag">1.1 About this document<br>The ffmpeg is a open source package that provides video application for general usage. User can download<br>and view information i
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
相关文章
|
1月前
|
Ubuntu 编译器 C语言
Ubuntu 源码编译指定版本 make:神秘代码背后的激情冒险,等你来战!
【9月更文挑战第8天】在Ubuntu中,编译指定版本的源码`make`是一项挑战但也极具价值的任务。它允许我们根据特定需求定制软件,提升性能与功能适配。首先需安装必要工具包如GCC等;接着下载所需源码并阅读相关文档以了解编译要求。通过运行`./configure`、`make`及`sudo make install`命令完成编译安装流程。过程中可能遇到依赖项缺失或编译选项设置不当等问题,需根据错误提示逐一解决。对于大型项目,可利用多核编译加快速度。掌握这一技能有助于更好地探索开源世界。
30 2
|
2月前
|
Ubuntu Linux
ubuntu源码编译指定版本make
以上内容涵盖了在Ubuntu中编译安装指定版本软件的全过程,这是一个技术性很强的操作,不仅可以带来定制化的安装体验,同时也能增加对系统管理和软件构建流程的理解。遵循以上步骤,任何有一定基础的用户都能够按需编译和安装软件。
46 8
|
2月前
|
Ubuntu Linux Windows
如何在WSL中的ubuntu编译Linux内核并且安装使用ebpf?
请注意,在WSL1中可能会由于内核架构限制而无法成功进行以上过程,WSL2对于Linux内核的完整支持更为合适。此外,部分步骤可能因不同的Linux发行版或内核版本而异。
88 4
|
2月前
|
Ubuntu 编译器 C语言
Ubuntu 源码编译指定版本 make:神秘代码背后的激情冒险,等你来战!
【8月更文挑战第19天】在Ubuntu中编译指定版本的`make`工具是一项高级技巧,能让你针对特定需求定制软件。首先确保已安装`build-essential`等必要组件。下载所需版本源码后,遵循README指南配置与编译。使用`./configure`检测环境,`make`编译,最后`sudo make install`安装。面对问题如缺失依赖或编译选项不当,需耐心解决。对于大型项目,可利用多核加速编译,如`make -j 4`。这一过程虽具挑战,却能显著提升软件性能与功能适配。
39 2
|
1月前
|
Ubuntu
编译ubuntu内核
编译ubuntu内核
|
2月前
|
Ubuntu 开发工具 Android开发
Repo下载、编译AOSP源码:基于Ubuntu 21.04,android-12.1.0_r27
文章记录了作者在Ubuntu 21.04服务器上配置环境、下载并编译基于Android 12.1.0_r27版本的AOSP源码的过程,包括解决编译过程中遇到的问题和错误处理方法。
78 0
|
2月前
|
Ubuntu
Ubuntu22.04,AOSP编译报错: libncurses.so.5: cannot open shared object file: No such file
本文描述了在Ubuntu 22.04系统上编译AOSP时遇到的`libncurses.so.5`缺失错误,并提供了通过安装相应库解决该问题的步骤。
163 0
|
3月前
|
Ubuntu JavaScript 开发工具
Ubuntu上编译多个版本的frida
【7月更文挑战第16天】在Ubuntu上编译多个版本的Frida(如15.1.28和16.1.4),首先确保系统为Ubuntu 20(WSL)或其他版本,并安装`build-essential`, `git`, `lib32stdc++-9-dev`, `libc6-dev-i386`等依赖。还需安装Node.js(例如20.15.1版)。通过`git clone`获取Frida源码,并根据所需版本进入对应分支。设置环境变量以指向正确的NDK和Node.js路径,可通过脚本如`env15.sh`来避免污染全局环境。
|
3月前
|
Ubuntu 编译器 计算机视觉
Ubuntu系统下编译OpenCV4.8源码
在Ubuntu上源码安装OpenCV 4.8分为三步:1) 下载源码包,使用`wget`命令;2) 安装依赖,如`g++`, `cmake`, `make`等;3) 创建编译目录,运行`cmake`配置,接着`make`编译,最后`sudo make install`安装。安装完成后,通过编写和运行一个简单的OpenCV C++程序来验证环境配置正确性。
106 10
|
5月前
|
Ubuntu Linux Go
ubuntu linux (20.04) 源码编译cryptopp库 - apt版本过旧
ubuntu linux (20.04) 源码编译cryptopp库 - apt版本过旧
125 1