OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2509|回复: 1

阿尔法开发板开发板QT不能播放视频

[复制链接]

4

主题

19

帖子

0

精华

初级会员

Rank: 2

积分
92
金钱
92
注册时间
2019-4-24
在线时间
18 小时
发表于 2021-7-31 10:14:19 | 显示全部楼层 |阅读模式
1金钱
在开发板上使用出厂的yocto构建的文件系统播放视频时,无法播放视频
直接使用gst命令播放,出现以下错误:
root@ATK-IMX6U:/# gst-play-1.0 /media/test_movie.avi
Press 'k' to see a list of keyboard shortcuts.
Now playing /media/test_movie.avi
random: nonblocking pool is initialized

====== AIUR: 4.1.6 build on Nov 17 2020 14:35:51. ======
        Core: AVI_PARSER_03.05.28  build on Oct 10 2016 07:21:58
file: /usr/lib/imx-mm/parser/lib_avi_parser_arm11_elinux.so.3.1
------------------------
    Track 00 [video_0] Enabled
        Duration: 0:00:20.040000000
        Language: und
    Mime:
        video/mpeg, systemstream=(boolean)false, parsed=(boolean)true, mpegversion=(int)4, width=(int)856, height=(int)480, framerate=(fraction)25/1
------------------------
pxp_lib.c:55 open file error.
====== IMXV4L2SINK: 4.1.6 build on Nov 17 2020 14:36:18. ======
display(/dev/fb0) resolution is (1024x600).
------------------------
    Track 01 [audio_0] Enabled
        Duration: 0:00:20.062040000
        Language: und
    Mime:
        audio/mpeg, mpegversion=(int)1, channels=(int)2, rate=(int)44100, bitrate=(int)0
------------------------
Home directory not accessible: Permission denied
Redistribute latency...
Home directory not accessible: Permission denied

====== BEEP: 4.1.6 build on Nov 17 2020 14:36:01. ======
        Core: MP3 decoder Wrapper  build on Mar 21 2014 15:04:50
file: /usr/lib/imx-mm/audio-codec/wrap/lib_mp3d_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_MP3D_ARM_02.13.00_CORTEX-A8  build on Jul 12 2016 13:15:30.
Redistribute latency...     
v4l2sink need allocate 3 buffers.
ERROR GStreamer encountered a general stream error. for file:///media/test_movie.avi
ERROR debug information: ../../../imx-gst1.0-plugin-4.1.6/plugins/aiurdemux/aiurdemux.c(1015): aiurdemux_pull_task (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAiurDemux:aiurdemux0:
streaming stopped, reason error, state 3
Total showed frames (0), playing for (0:00:00.040000000), fps (0.000).
Reached end of play list.
Segmentation fault

在Qt中播放视频:

root@ATK-IMX6U:/opt# ./MyDesktop
QML debugging is enabled. Only use this in a safe environment.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/var/volatile/tmp/runtime-root'
photoListModel add paths is "/opt/src/images/"
add path is "/opt"
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
playListModel::to_wchar the psrc is: /opt/src/audio/0.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/1.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/2.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/3.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/4.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/5.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/6.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/7.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/8.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/9.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/10.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/11.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/12.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/13.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/14.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/15.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/16.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/17.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/18.mp3
playListModel::to_wchar the psrc is: /opt/src/audio/19.mp3
Home directory not accessible: Permission denied
PulseAudioService: pa_context_connect() failed
Home directory not accessible: Permission denied
random: nonblocking pool is initialized
qml: music-qml appCurrtentDir is : /opt
mediaListModel add paths is "/opt/src/videos/"
Home directory not accessible: Permission denied
Sat Jul 31 10:10:28 UTC 2021

====== AIUR: 4.1.6 build on Nov 17 2020 14:35:51. ======
        Core: MPEG4PARSER_06.10.03  build on Nov  9 2016 08:40:21
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2
------------------------
    Track 00 [video_0] Enabled
        Duration: 0:04:12.400000000
        Language: und
    Mime:
        video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)1920, height=(int)1080, framerate=(fraction)25/1, codec_data=(buffer)01640028ffe1001b27640028ac2d900780227e5c0440000003004000000ca76870c64801000428ee3cb0
------------------------

====== BEEP: 4.1.6 build on Nov 17 2020 14:36:01. ======
        Core: MP3 decoder Wrapper  build on Mar 21 2014 15:04:50
file: /usr/lib/imx-mm/audio-codec/wrap/lib_mp3d_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_MP3D_ARM_02.13.00_CORTEX-A8  build on Jul 12 2016 13:15:30.
------------------------
    Track 01 [audio_0] Enabled
        Duration: 0:04:12.416000000
        Language: und
    Mime:
        audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)128510, stream-format=(string)raw, codec_data=(buffer)119056e500
------------------------

====== BEEP: 4.1.6 build on Nov 17 2020 14:36:01. ======
        Core: AAC decoder Wrapper  build on May 30 2016 12:33:44
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 Oct 13 2016 13:34:40.
qml: main.qml-mainswipeview currentItem is : Media_QMLTYPE_67(0x557140)
Home directory not accessible: Permission denied

====== AIUR: 4.1.6 build on Nov 17 2020 14:35:51. ======
        Core: MPEG4PARSER_06.10.03  build on Nov  9 2016 08:40:21
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2
------------------------
    Track 00 [video_0] Enabled
        Duration: 0:03:44.599008000
        Language: und
    Mime:
        video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)1920, height=(int)1080, framerate=(fraction)24000/1001, codec_data=(buffer)01640028ffe1001a27640028ac2d900780227e5c04400000fa40002ee0276870c64801000428ee3cb0
------------------------
------------------------
    Track 01 [audio_0] Enabled
        Duration: 0:03:44.660992000
        Language: und
    Mime:
        audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)127735, stream-format=(string)raw, codec_data=(buffer)119056e500
------------------------

====== BEEP: 4.1.6 build on Nov 17 2020 14:36:01. ======
        Core: AAC decoder Wrapper  build on May 30 2016 12:33:44
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 Oct 13 2016 13:34:40.
Warning: "A lot of buffers are being dropped.",出现这个警告

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165309
金钱
165309
注册时间
2010-12-1
在线时间
2108 小时
发表于 2021-8-1 02:05:08 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-22 15:19

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表