This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DLPDLCR2000EVM视频示例视频无法播放问题?

Other Parts Discussed in Thread: DLP2000, DLPDLCR2000EVM

根据用户向导手册,用apt-get 安装mplayer后,执行python MplayerTest.py后无法播放视频?其具体执行情况如下所示:

machinekit@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000$ python MplayerTest.py
set slave address: 27
Make sure the display port is set. For example export DISPLAY=:0

1
SourceSel.EXTERNAL_VIDEO_PARALLEL_I_F_
2
Resolution.NHD_LANDSCAPE
##################################################################
play video
nhd_test.mp4
MPlayer2 2.0-728-g2c378c7-4+b1 (C) 2000-2012 MPlayer Team
Cannot open file '/home/machinekit/.mplayer/input.conf': No such file or directory
Failed to open /home/machinekit/.mplayer/input.conf.
Cannot open file '/etc/mplayer/input.conf': No such file or directory
Failed to open /etc/mplayer/input.conf.

Playing nhd_test.mp4.
Detected file format: QuickTime / MOV (libavformat)
[lavf] stream 0: video (h264), -vid 0
Clip info:
 major_brand: mp42
 minor_version: 1
 compatible_brands: mp42avc1
 creation_time: 2017-07-07 14:32:35
Load subtitles in .
vo: couldn't open the X11 display (:0)!
vo: couldn't open the X11 display (:0)!
vo: couldn't open the X11 display (:0)!
commandline read: mplayer
commandline read: -fs
commandline read: nhd_test.mp4

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-21 10:21)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
vo: couldn't open the X11 display (:0)!

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-21 10:21)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
vo: couldn't open the X11 display (:0)!

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.10 |~~~~~~~~~~~~~~~~~~~~~~~~~~
        (c) 2001-2008  The world wide DirectFB Open Source Community
        (c) 2000-2004  Convergence (integrated media) GmbH
      ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2014-10-21 10:21)
(!) Direct/Util: opening '/dev/fb0' and '/dev/fb/0' failed
    --> No such file or directory
(!) DirectFB/FBDev: Error opening framebuffer device!
(!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
[VO_SDL] SDL initialization failed: DirectFBCreate: Initialization error!.
vo_caca: failed to initialize
VO: [v4l2] No such file or directory
[ass] auto-open
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Audio: no sound
Starting playback...
VIDEO:  640x360  30.000 fps  3600.5 kbps (450.1 kB/s)
VO: [null] 640x360 => 640x360 Planar YV12  [fs]
V:   0.0   0/  0 ??% ??% ??,?% 0 0
Dead key input on file descriptor 0
V:  22.9   0/  0 203% 23%  0.0% 0 0


Exiting... (End of file)
None
Does the video play on the screen? (Pass/Fail/Stop) (Pass/Fail/Stop) and comment: Test passed

  • 您好!
    您可以尝试使用mplayer手动播放视频,看是否可以正常工作。
    如果无法正常工作应该是播放器安装的问题,您可以尝试使用root权限重新安装和播放。
  • 你好!
    我用VNC远程登录BB-Black桌面,使用如下命令 sudo mplayer nhd_test.mp4可以在远程桌面上看到nhd_test.mp4视频的播放,但是投影仪投影的画面还是projector的开机画面,使用命令export DISPLAY=:0 和命令python MplayerTest.py后,远程桌面没有出现视频,投影仪还是projector的开机画面。
    使用命令i2cdetect -l显示如下:
    debian@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000$ i2cdetect -l
    i2c-2 i2c OMAP I2C adapter I2C adapter
    i2c-0 i2c OMAP I2C adapter I2C adapter
    debian@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000$ i2cdetect -y -r 2
    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: -- -- -- -- -- -- -- -- -- -- -- -- --
    10: -- -- -- -- -- -- -- -- -- -- -- 1b -- -- -- --
    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- --
    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
    70: -- -- -- -- -- -- -- --
    debian@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000$ i2cset -y 2 0x1b 0x0b 0x00 0x00 0x00 0x00 i
    debian@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000$ i2cset -y 2 0x1b 0x0c 0x00 0x00 0x00 0x1b i
    debian@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000$
    也把48脚设置为输出高电平了,但是投影仪还是没反应,这个是怎么回事呢?
  • 怀疑您的I2C没有正常工作,请确认BB-black和DLP2000 EVM之间的充分连接,可以检查硬件通路上是否正常。
    根据编程手册发送检单的I2C命令,看是否有工作,比如切换信号源到内部的pattern,做图片的反转等
  • 你好!就是我在使用dlpdlcr2000evm模块时,出现了以下问题,当SD卡装8.9系统时,使用i2cset命令可以切换视频源,但是用apt-get 安装的播放器mplayer无法播放视频;当SD卡装9.1及以上的系统时,用apt-get下载的mplayer可以实现视频的手动播放,但是发送i2cset命令无效,及无法实现外部信号源的切换。