免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1081 | 回复: 0
打印 上一主题 下一主题

GStreamer and TI [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-10 22:00 |只看该作者 |倒序浏览
从提供的demo的脚步入手研究:

decode_avi.sh

. ./target_gst.sh
. ../shared/decode_avi.sh
target_gst.sh
#------------------------------------------------------------------# Set GStreamer attributes for this platform
#------------------------------------------------------------------
PLATFORM=dm355
. ../shared/target_env.sh
# Audio / Video Decode defaults
audio_plugin="mad"
audiocodecName=""
video_plugin="TIViddec2"
videocodeName="mpeg4dec"
soundStd="oss"
dispStd="fbdev"
dispDevice=""
videoStd="D1_NTSC"
videoOut="COMPOSITE"
resizer="FALSE";
accelFrameCopy="TRUE"
# Imaging defaults
encode_image_plugin="TIImgenc1"
decode_image_plugin="TIImgdec1"
resolution="720x480"
inputcolorSpace="UYVY"
outputcolorSpace="UYVY"
qValue="75"
target_env.sh
#------------------------------------------------------------------
# Configure the target filesystem and environment
#------------------------------------------------------------------
GSTREAMER_INSTALL_DIR=/opt/gstreamer
GSTINSPECT=gst-inspect
GSTLAUNCH=gst-launch
# Make sure we store the registry cache in /tmp so we don't fail when running
# from a read-only file system. If we don't do this, GStreamer tries to
# create the cache in the current directory.
export GST_REGISTRY=/tmp/gst_registry.bin
# Configure our LD_LIBRARY_PATH so GStreamer applications can find shared
# object libraries while loading.
export LD_LIBRARY_PATH=${GSTREAMER_INSTALL_DIR}/lib
# Set the GST_PLUGIN_PATH to the directory where GStreamer should look for
# its plugins
export GST_PLUGIN_PATH=${GSTREAMER_INSTALL_DIR}/lib/gstreamer-0.10
# Put the GStreamer binaries in our path
export PATH=${GSTREAMER_INSTALL_DIR}/bin:$PATH
/shared/decode_avi.sh
#------------------------------------------------------------------
# Execute common code
#------------------------------------------------------------------
cat /dev/zero > /dev/fb/2 2>/dev/null
. ../shared/process_avopts.sh
. ../shared/run_pipe.sh
#------------------------------------------------------------------
# Enable debugging flags (optional)
#------------------------------------------------------------------
#DEBUG="--gst-debug-no-color --gst-debug=${audio_plugin}:5"
#DEBUG="--gst-debug-no-color --gst-debug=${video_plugin}:5"
#DEBUG="--gst-debug-no-color --gst-debug=TIDmaiVideoSink:5"
#DEBUG="--gst-debug-no-color --gst-debug=TIDmaiVideoSink:*"
#DEBUG="--gst-debug-no-color --gst-debug=GST_PLUGIN_LOADING:*"
DEBUG="--gst-debug-no-color --gst-debug=TI*:2"
#-----------------------------------------------------------------
# Execute the pipeline
#------------------------------------------------------------------
run_pipe "${GSTLAUNCH} ${DEBUG} filesrc location=$fileName ! typefind ! avidemux name=demux demux.audio_00 ! queue max-size-buffers=1200 max-size-time=0 max-size-bytes=0 ! typefind ! ${audio_plugin} ${audio_plugin_args} ! ${audio_sink} demux.video_00 ! typefind ! ${video_plugin} ${video_plugin_args} ! ${video_sink} ${rotation_opts}"
exit $?


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/93494/showart_1923814.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP