在开发板上使用出厂的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.",出现这个警告