打印
[技术问题解答]

imx.6q Gstreamer无法播放视频

[复制链接]
1977|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
MAGIC0626_1|  楼主 | 2015-11-3 15:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
imx.6q开发板 Linux kernel:3.14.38 文件系统:fsl-image-gui-fb-imx6qdlsolo Gstreamer版本:gstreamer-1.0 YOCTO-1.7
使用gplay-1.0或gst-launch-1.0 playbin播放本地MP4文件遇到g2d_alloc: alloc memory fail with size 3133440! 的错误,具体如下:
Setting pipeline to PAUSED ...                                                  
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: ring-buffer-max-size = 0   
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1            
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1        
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering = false      
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false            
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri = file:///home/root/Maro
on 5 - Sugar.mp4                                                               
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0        
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: source = "\(GstFileSrc\)\ so
urce"                                                                           
Pipeline is PREROLLING ...                                                      
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTy
peFindElement:typefind.GstPad:src: caps = "video/quicktime\,\ variant\=\(string\
)iso"                                                                           
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTy
peFindElement:typefind.GstPad:src: caps = "NULL"                                
                                                                                
====== AIUR: 4.0.3 build on Mar 21 2015 06:48:54. ======                        
        Core: MPEG4PARSER_06.09.10  build on Jan  8 2015 07:06:50               
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2               
------------------------                                                        
    Track 00 [audio_0] Enabled                                                  
        Duration: 0:05:01.375008000                                             
        Language: und                                                           
    Mime:                                                                       
        audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100, bitrat
e=(int)125592, stream-format=(string)raw, codec_data=(buffer)1210               
------------------------                                                        
------------------------                                                        
    Track 01 [video_0] Enabled                                                  
        Duration: 0:05:01.341696000                                             
        Language: und                                                           
    Mime:                                                                       
        video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=
(string)avc, width=(int)1920, height=(int)1080, framerate=(fraction)45000/1877,
codec_data=(buffer)01640028ffe1001967640028acd301e0089f97011000003e90000bb800f18
3138001000468eebcb0                                                            
------------------------                                                        
display(/dev/fb0) resolution is (640x480).                                      
====== OVERLAYSINK: 4.0.3 build on Mar 21 2015 06:49:21. ======                 
display(/dev/fb0) resolution is (640x480).                                      
[INFO]  Product Info: i.MX6Q/D/S                                                
====== VPUDEC: 4.0.3 build on Mar 21 2015 06:49:36. ======                     
        wrapper: 1.0.58 (VPUWRAPPER_ARM_LINUX Build on Mar 21 2015 04:00:39)   
        vpulib: 5.4.28                                                         
        firmware: 3.1.1.46063                                                   
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMu
ltiQueue:multiqueue0.GstPad:sink_0: caps = "audio/mpeg\,\ mpegversion\=\(int\)4\
,\ channels\=\(int\)2\,\ rate\=\(int\)44100\,\ bitrate\=\(int\)125592\,\ stream-
format\=\(string\)raw\,\ codec_data\=\(buffer\)1210"                           
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMu
ltiQueue:multiqueue0.GstPad:sink_0: caps = "audio/mpeg\,\ mpegversion\=\(int\)4\
,\ channels\=\(int\)2\,\ rate\=\(int\)44100\,\ bitrate\=\(int\)125592\,\ stream-
format\=\(string\)raw\,\ codec_data\=\(buffer\)1210"                           
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMu
ltiQueue:multiqueue0.GstPad:sink_1: caps = "video/x-h264\,\ parsed\=\(boolean\)t
rue\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)avc\,\ width\=\(int\)
1920\,\ height\=\(int\)1080\,\ framerate\=\(fraction\)45000/1877\,\ codec_data\=
\(buffer\)01640028ffe1001967640028acd301e0089f97011000003e90000bb800f18313800100
0468eebcb0"                                                                     
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMu
ltiQueue:multiqueue0.GstPad:src_1: caps = "video/x-h264\,\ parsed\=\(boolean\)tr
ue\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)avc\,\ width\=\(int\)1
920\,\ height\=\(int\)1080\,\ framerate\=\(fraction\)45000/1877\,\ codec_data\=\
(buffer\)01640028ffe1001967640028acd301e0089f97011000003e90000bb800f183138001000
468eebcb0"                                                                     
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstVp
uDec:vpudec0.GstPad:sink: caps = "video/x-h264\,\ parsed\=\(boolean\)true\,\ ali
gnment\=\(string\)au\,\ stream-format\=\(string\)avc\,\ width\=\(int\)1920\,\ he
ight\=\(int\)1080\,\ framerate\=\(fraction\)45000/1877\,\ codec_data\=\(buffer\)
01640028ffe1001967640028acd301e0089f97011000003e90000bb800f183138001000468eebcb0
"                                                                              
[INFO]  mxc_v4l2_output v4l2_out.32: Bypass IC.                                 
bitstreamMode 1, chromaInterleavemxc_v4l2_output v4l2_out.32: Bypass IC.        
1, mapType 0, tiled2LinearEnable 0                                             
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstVp
uDec:vpudec0.GstPad:src: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\
=\(int\)1920\,\ height\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ in
terlace-mode\=\(string\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate
\=\(fraction\)45000/1877"                                                      
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAa
cParse:aacparse0.GstPad:src: caps = "audio/mpeg\,\ mpegversion\=\(int\)4\,\ chan
nels\=\(int\)2\,\ rate\=\(int\)44100\,\ bitrate\=\(int\)125592\,\ stream-format\
=\(string\)raw\,\ codec_data\=\(buffer\)1210\,\ framed\=\(boolean\)true"        
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstBe
epDec:beepdec0.GstPad:sink: caps = "audio/mpeg\,\ mpegversion\=\(int\)4\,\ chann
els\=\(int\)2\,\ rate\=\(int\)44100\,\ bitrate\=\(int\)125592\,\ stream-format\=
\(string\)raw\,\ codec_data\=\(buffer\)1210\,\ framed\=\(boolean\)true"         
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAa
cParse:aacparse0.GstPad:sink: caps = "audio/mpeg\,\ mpegversion\=\(int\)4\,\ cha
nnels\=\(int\)2\,\ rate\=\(int\)44100\,\ bitrate\=\(int\)125592\,\ stream-format
\=\(string\)raw\,\ codec_data\=\(buffer\)1210"                                 
                                                                                
====== BEEP: 4.0.3 build on Mar 21 2015 06:49:06. ======                        
        Core: AAC decoder Wrapper  build on Apr 22 2014 09:43:50               
file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3         
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8  build on Jun 19 2014 18:30:
32.                                                                             
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstBe
epDec:beepdec0.GstPad:src: caps = "audio/x-raw\,\ format\=\(string\)S16LE\,\ lay
out\=\(string\)interleaved\,\ rate\=\(int\)44100\,\ channels\=\(int\)2\,\ channe
l-mask\=\(bitmask\)0x0000000000000003"                                          
/GstPlayBin:playbin0/GstInputSelector:inputselector0.GstSelectorPad:sink_0: alwa
ys-ok = false                                                                  
/GstPlayBin:playbin0/GstInputSelector:inputselector1.GstSelectorPad:sink_0: alwa
ys-ok = false                                                                  
/GstPlayBin:playbin0/GstInputSelector:inputselector0.GstSelectorPad:sink_0: acti
ve = true                                                                       
/GstPlayBin:playbin0/GstInputSelector:inputselector1: active-pad = "\(GstSelecto
rPad\)\ sink_0"                                                                 
/GstPlayBin:playbin0/GstInputSelector:inputselector0.GstSelectorPad:sink_0: acti
ve = true                                                                       
/GstPlayBin:playbin0/GstInputSelector:inputselector0: active-pad = "\(GstSelecto
rPad\)\ sink_0"                                                                 
display(/dev/fb0) resolution is (640x480).                                      
/GstPlayBin:playbin0/GstPlaySink:playsink: volume = 1                           
/GstPlayBin:playbin0/GstPlaySink:playsink: mute = false                        
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink0: ts-
offset = 0                                                                     
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstOverlaySinkverlaysink
0: ts-offset = 0                                                               
/GstPlayBin:playbin0/GstInputSelector:inputselector0.GstPad:src: caps = "video/x
-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1088\,\ p
ixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ c
olorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)45000/1877"               
/GstPlayBin:playbin0/GstPlaySink:playsink.GstGhostPad:video_sink.GstProxyPad:pro
xypad7: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ h
eight\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(s
tring\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)450
00/1877"                                                                        
/GstPlayBin:playbin0/GstPlaySink:playsink/GstStreamSynchronizer:streamsynchroniz
er0.GstPad:src_0: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\
)1920\,\ height\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace
-mode\=\(string\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fra
ction\)45000/1877"                                                              
/GstPlayBin:playbin0/GstPlaySink:playsink/GstStreamSynchronizer:streamsynchroniz
er0.GstPad:src_0: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\
)1920\,\ height\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace
-mode\=\(string\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fra
ction\)45000/1877"                                                              
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin.GstGhostPad:sink.GstProxyP
ad:proxypad8: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)192
0\,\ height\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mod
e\=\(string\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fractio
n\)45000/1877"                                                                  
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstQueue:vqueue.GstPad:sin
k: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height
\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string
\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)45000/18
77"                                                                             
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstQueue:vqueue.GstPad:sin
k: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height
\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string
\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)45000/18
77"                                                                             
/GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin.GstGhostPad:sink: caps = "
video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)10
88\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressi
ve\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)45000/1877"        
/GstPlayBin:playbin0/GstPlaySink:playsink/GstStreamSynchronizer:streamsynchroniz
er0.GstPad:sink_0: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int
\)1920\,\ height\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlac
e-mode\=\(string\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fr
action\)45000/1877"                                                            
/GstPlayBin:playbin0/GstPlaySink:playsink.GstGhostPad:video_sink: caps = "video/
x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int\)1088\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\
colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)45000/1877"              
/GstPlayBin:playbin0/GstInputSelector:inputselector0.GstSelectorPad:sink_0: caps
= "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\,\ height\=\(int
\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progr
essive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)45000/1877"   
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0.GstGhostPad:src_0.GstProxyPad
:proxypad4: caps = "video/x-raw\,\ format\=\(string\)NV12\,\ width\=\(int\)1920\
,\ height\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\
=\(string\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\
)45000/1877"                                                                    
/GstPlayBin:playbin0/GstInputSelector:inputselector1.GstSelectorPad:sink_0: tags
= "taglist\,\ codec\=\(string\)AAC\,\ language-code\=\(string\)und\,\ bitrate\=
\(uint\)125592\,\ container-format\=\(string\)MOV/MP4/3GP\,\ audio-codec\=\(stri
ng\)\"AAC\\\ decoder\"\,\ video-codec\=\(string\)H.264/AVC\;"                  
g2d_alloc: alloc memory fail with size 3133440!                                 
g2d_alloc: alloc memory fail with size 3133440!                                 
/GstPlayBin:playbin0/GstInputSelector:inputselector1.GstSelectorPad:sink_0: tags
= "taglist\,\ codec\=\(string\)AAC\,\ language-code\=\(string\)und\,\ bitrate\=
\(uint\)125592\,\ container-format\=\(string\)MOV/MP4/3GP\,\ audio-codec\=\(stri
ng\)\"AAC\\\ decoder\"\,\ video-codec\=\(string\)H.264/AVC\,\ minimum-bitrate\=\
(uint\)133683\,\ maximum-bitrate\=\(uint\)133683\;"                             
/GstPlayBin:playbin0/GstInputSelector:inputselector1.GstSelectorPad:sink_0: tags
= "taglist\,\ codec\=\(string\)AAC\,\ language-code\=\(string\)und\,\ bitrate\=
\(uint\)125592\,\ container-format\=\(string\)MOV/MP4/3GP\,\ audio-codec\=\(stri
ng\)\"AAC\\\ decoder\"\,\ video-codec\=\(string\)H.264/AVC\,\ minimum-bitrate\=\
(uint\)133683\,\ maximum-bitrate\=\(uint\)135061\;"                             
/GstPlayBin:playbin0/GstInputSelector:inputselector1.GstSelectorPad:sink_0: tags
= "taglist\,\ codec\=\(string\)AAC\,\ language-code\=\(string\)und\,\ bitrate\=
\(uint\)125592\,\ container-format\=\(string\)MOV/MP4/3GP\,\ audio-codec\=\(stri
ng\)\"AAC\\\ decoder\"\,\ video-codec\=\(string\)H.264/AVC\,\ minimum-bitrate\=\
(uint\)125414\,\ maximum-bitrate\=\(uint\)135061\;"                             
/GstPlayBin:playbin0/GstInputSelector:inputselector1.GstSelectorPad:sink_0: tags
= "taglist\,\ codec\=\(string\)AAC\,\ language-code\=\(string\)und\,\ bitrate\=
\(uint\)125592\,\ container-format\=\(string\)MOV/MP4/3GP\,\ audio-codec\=\(stri
ng\)\"AAC\\\ decoder\"\,\ video-codec\=\(string\)H.264/AVC\,\ minimum-bitrate\=\
(uint\)111632\,\ maximum-bitrate\=\(uint\)135061\;"                             
/GstPlayBin:playbin0/GstInputSelector:inputselector1.GstSelectorPad:sink_0: tags
= "taglist\,\ codec\=\(string\)AAC\,\ language-code\=\(string\)und\,\ bitrate\=
\(uint\)125592\,\ container-format\=\(string\)MOV/MP4/3GP\,\ audio-codec\=\(stri
ng\)\"AAC\\\ decoder\"\,\ video-codec\=\(string\)H.264/AVC\,\ minimum-bitrate\=\
(uint\)111632\,\ maximum-bitrate\=\(uint\)137818\;"                             
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecode
Bin:decodebin0/GstAiurDemux:aiurdemux0: GStreamer encountered a general stream e
rror.                                                                           
Additional debug info:                                                         
/var/lib/jenkins/workspace/dizzy-3.14.X-1.0.0-Backend_release/temp_build_dir/bui
ld_qds/tmp/work/imx6qdlsolo-poky-linux-gnueabi/gst1.0-fsl-plugin/4.0.3-r0/gst1.0
-fsl-plugins-4.0.3/plugins/aiurdemux/aiurdemux.c(1000): aiurdemux_pull_task ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAi
urDemux:aiurdemux0:                                                            
streaming stopped, reason error, state 3                                       
ERROR: pipeline doesn't want to preroll.                                       
Setting pipeline to NULL ...         

相关帖子

沙发
春风的暖暖| | 2015-11-3 21:01 | 只看该作者
不太懂,帮楼主顶了,早日解决问题

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

6

帖子

0

粉丝