没有合适的资源?快使用搜索试试~ 我知道了~
首页fffmpeg-mpeg4编程指南
fffmpeg-mpeg4编程指南
4星 · 超过85%的资源 需积分: 10 41 下载量 18 浏览量
更新于2023-03-03
评论
收藏 237KB PDF 举报
fffmpeg-mpeg4编程指南,Before this version the MPEG4 function is implement as USER mode application. To support full duplex function, the MPEG4 software engine has changed to put in linux kernel mode. The USER mode engine will not be maintained from now.
资源详情
资源评论
资源推荐
MPEG4 Programming
Guide
October 2006
Version 1.0
Brief Spec. 1
Version 1.0 / October 2006
1 Introduction
Before this version the MPEG4 function is implement as USER mode application. To support full duplex function, the
MPEG4 software engine has changed to put in linux kernel mode. The USER mode engine will not be maintained from
now.
The following is the device describtion:
Major Number Minor Number
MPEG4 Decoder (/dev/fdec) 10 20
MPEG4 Encoder (/dev/fenc) 10 21
To use it, you must insert the driver module in Embedded site. The fmcp_drv.o module must insert before
fmpeg4_drv.o:
#insmod fmpeg4_drv.o mp4_max_width=720 mp4_max_height=480
The parameter of “mp4_max_width” specifies the maximum supported width of frame, so is “mp4_max_height”.
These value will affect the size of buffer allocation in MPEG4 buffer.
PLEASE NOTE, the fmcp_drv.o module must insert before fmjpeg_drv.o.
1.1 Source Directory
As the combination of ffmpeg package, the MPEG4 driver is located in ffmpeg directory. The source tree is:
fmpeg4_avcodec: The MPEG4 codec source definition for ffmpeg-0.4.8
fmpeg4_driver: The MPEG4 linux driver module that will not be released in normal case.
To compiler is in ffmpeg-0.4.8:
#cd ffmpeg-0.4.8
#make
The driver module “fmpeg4_drv.o” will be created in directory:
/ffmpeg-0.4.8/libgm/ftmcp100_module/fmpeg4_driver/fmpeg4_drv.o
The AP codec source definition for ffmpeg-0.4.8 will be created in in directory:
/ffmpeg-0.4.8/libgm/ftmcp100_module/fmpeg4_avcodec/favcodec.o
The fmpeg4_drv.o will alos copy to output direcotry /tmp.
/ffmpeg-0.4.8/libgm/ftmcp100_module
fmpeg4_avcodec
fmpeg4_driver
MPEG4 Programming Guide
1.2 Kernel mode MPEG4 driver Usage
To use MPEG4 driver, you can refer to the directory /ffmpeg-0.4.8/libgm/ftmcp100_module/fmpeg4_avcodec.
The source code:
Makefile
fmpeg4_avcodec.c
fmpeg4_avcodec.h
ratecontrol.c
ratecontrol.h
To use the kernel driver, you can modify the example by yourself.
Makefile
<Your main program>.c
ratecontrol.c
ratecontrol.h
In your main program, you should include header file:
#include “/usr/src/ffmpeg-0.4.8/libgm/ftmcp100_module/fmpeg4_avcode/fmpeg4_avcodec.h”
Remember to set version parameter to the definition of the header file.
xxx.u32API_version = MP4VER;
PLEASE NOTE, the rate control program MUST include in MPEG4 kernel mode driver, that is, ratecontrol.c
and ratecontrol.h.
1.3 How to set MPEG4 driver polling/IRQ mode on with/without RISC architecture
You can change the configuration by re-write the config.mak file. And, the config file is placed in ./fmjpeg_driver. In
the config.mak, you can find the section that can be changed by user. If the functions or features must enable, please set
their condition equal to “yes”. And. If the functions or features must disable, please set their condition equal to “no”.
The GM812x platform is only support polling mode and non-RISC architecture. The fmpeg4_drv.o is need to config
liked as the following.
CONFIG_FTMCP100_IRQ_MODE = no
CONFIG_FTMCP100_RISC= no
CONFIG_FTMCP100_NO_RISC= yes
For GM818x IRQ mode on with RISC architecture, the fmpeg4_drv.o is configured liked as the following.
CONFIG_FTMCP100_IRQ_MODE = yes
CONFIG_FTMCP100_RISC= yes
Brief Spec. 3
Version 1.0 / October 2006
CONFIG_FTMCP100_NO_RISC= no
1.4 How to set the resolution for MPEG4 driver
There there resolutions for MPEG4 driver, and the default resolution is 720x576. You can choose the suitable condition
to meet your case. The default resolution is liked as the following.
CONFIG_2592x1944_RESOLUTION = no
CONFIG_1600x1200_RESOLUTION = no
CONFIG_720x576_RESOLUTION = yes
If you want to change the supported max resolution, you can remove this module and then re-insert it with the new max
resolution. Re-insert command is liked as “insmod fmpeg4_drv.ko mp4_max_width=1024 mp4_max_height=768” or
“insmod fmpeg4_drv.o mp4_max_width=1024 mp4_max_height=768”.
1.5 What the output format that MPEG4 driver support
There are two output format that MPEG4 driver support. The original default output format is separated 420 YUV. A
new IOCTL command is added to force the MPEG4 driver to display on CbyCrY format.
剩余20页未读,继续阅读
kench_zhou
- 粉丝: 5
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- RTL8188FU-Linux-v5.7.4.2-36687.20200602.tar(20765).gz
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论4