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.

Linux的/ DLPDLCR2000EVM:Can Beaglebone green make the DLPDLCR2000EVM play a sample video on the User Guide?

Part Number: DLPDLCR2000EVM


Tool/software: Linux

Dear Forum,

The development board I use is Beaglebone green from SeeedStudio.

And my Debian version is Debian 9.2 (2017/10/10) from BeagleBoard.org,
I follow the steps in the User Guide to enter the instructions and get the following error message:


root@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
Playing: nhd_test.mp4
(+) Video --vid=1 (*) (h264)
error: XDG_RUNTIME_DIR not set in the environment.
[vo/sdl] SDL_Init failed
Error opening/initializing the selected video_out (--vo) device.
Video: no video
No video or audio streams selected.


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

I'm not sure if it is a system version compatibility issue or is this sample video directive only valid for Beaglebone Black.

Thanks for your help

Min-Xu 

  • Hello user,

    Did you do all the setup steps as root? It looks like the error may be due to an environmental variable that differs between a user and root. If that doesn't fix it our expert in this area is out today but we will get back to you as soon as possible.

    Thanks,
    Kyle
  • Hi Kyle,

    root@beaglebone:~# i2cdetect -r -y 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: -- -- -- -- -- -- -- --
    root@beaglebone:~# i2cset -y 2 0x1b 0x0b 0x00 0x00 0x00 0x00 i
    root@beaglebone:~# i2cset -y 2 0x1b 0x0c 0x00 0x00 0x00 0x1b i

    These two lines of instructions I ran the red font did not get any response, is it because my system is non-GUI version?

    /

    /

    /

    root@beaglebone:~# apt-get install mplayer2
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    mplayer2 is already the newest version (3:0.23.0-2).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    root@beaglebone:~# cd /opt/scripts/device/bone/capes/DLPDLCR2000/
    root@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000# tar -xvf dlp_lightcrafter-1.0.19.tar.gz

    dlp_lightcrafter-1.0.19/
    dlp_lightcrafter-1.0.19/dlp_lightcrafter/
    dlp_lightcrafter-1.0.19/dlp_lightcrafter/datalog.py
    dlp_lightcrafter-1.0.19/dlp_lightcrafter/dpp2607.py
    dlp_lightcrafter-1.0.19/dlp_lightcrafter/enum.py
    dlp_lightcrafter-1.0.19/dlp_lightcrafter/i2c.py
    dlp_lightcrafter-1.0.19/dlp_lightcrafter/linuxi2c.py
    dlp_lightcrafter-1.0.19/dlp_lightcrafter/version.py
    dlp_lightcrafter-1.0.19/dlp_lightcrafter/__init__.py
    dlp_lightcrafter-1.0.19/dlp_lightcrafter.egg-info/
    dlp_lightcrafter-1.0.19/dlp_lightcrafter.egg-info/dependency_links.txt
    dlp_lightcrafter-1.0.19/dlp_lightcrafter.egg-info/PKG-INFO
    dlp_lightcrafter-1.0.19/dlp_lightcrafter.egg-info/SOURCES.txt
    dlp_lightcrafter-1.0.19/dlp_lightcrafter.egg-info/top_level.txt
    dlp_lightcrafter-1.0.19/PKG-INFO
    dlp_lightcrafter-1.0.19/README.txt
    dlp_lightcrafter-1.0.19/setup.cfg
    dlp_lightcrafter-1.0.19/setup.py
    root@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000# cd dlp_lightcrafter-1.0.19
    root@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000/dlp_lightcrafter-1.0.19# python setup.py install
    running install
    running bdist_egg
    running egg_info
    writing dlp_lightcrafter.egg-info/PKG-INFO
    writing top-level names to dlp_lightcrafter.egg-info/top_level.txt
    writing dependency_links to dlp_lightcrafter.egg-info/dependency_links.txt
    reading manifest file 'dlp_lightcrafter.egg-info/SOURCES.txt'
    writing manifest file 'dlp_lightcrafter.egg-info/SOURCES.txt'
    installing library code to build/bdist.linux-armv7l/egg
    running install_lib
    running build_py
    creating build/bdist.linux-armv7l/egg
    creating build/bdist.linux-armv7l/egg/dlp_lightcrafter
    copying build/lib.linux-armv7l-2.7/dlp_lightcrafter/enum.py -> build/bdist.linux-armv7l/egg/dlp_lightcrafter
    copying build/lib.linux-armv7l-2.7/dlp_lightcrafter/datalog.py -> build/bdist.linux-armv7l/egg/dlp_lightcrafter
    copying build/lib.linux-armv7l-2.7/dlp_lightcrafter/linuxi2c.py -> build/bdist.linux-armv7l/egg/dlp_lightcrafter
    copying build/lib.linux-armv7l-2.7/dlp_lightcrafter/dpp2607.py -> build/bdist.linux-armv7l/egg/dlp_lightcrafter
    copying build/lib.linux-armv7l-2.7/dlp_lightcrafter/version.py -> build/bdist.linux-armv7l/egg/dlp_lightcrafter
    copying build/lib.linux-armv7l-2.7/dlp_lightcrafter/i2c.py -> build/bdist.linux-armv7l/egg/dlp_lightcrafter
    copying build/lib.linux-armv7l-2.7/dlp_lightcrafter/__init__.py -> build/bdist.linux-armv7l/egg/dlp_lightcrafter
    byte-compiling build/bdist.linux-armv7l/egg/dlp_lightcrafter/enum.py to enum.pyc
    byte-compiling build/bdist.linux-armv7l/egg/dlp_lightcrafter/datalog.py to datalog.pyc
    byte-compiling build/bdist.linux-armv7l/egg/dlp_lightcrafter/linuxi2c.py to linuxi2c.pyc
    byte-compiling build/bdist.linux-armv7l/egg/dlp_lightcrafter/dpp2607.py to dpp2607.pyc
    byte-compiling build/bdist.linux-armv7l/egg/dlp_lightcrafter/version.py to version.pyc
    byte-compiling build/bdist.linux-armv7l/egg/dlp_lightcrafter/i2c.py to i2c.pyc
    byte-compiling build/bdist.linux-armv7l/egg/dlp_lightcrafter/__init__.py to __init__.pyc
    creating build/bdist.linux-armv7l/egg/EGG-INFO
    copying dlp_lightcrafter.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
    copying dlp_lightcrafter.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
    copying dlp_lightcrafter.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
    copying dlp_lightcrafter.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
    zip_safe flag not set; analyzing archive contents...
    creating 'dist/dlp_lightcrafter-1.0.19-py2.7.egg' and adding 'build/bdist.linux-armv7l/egg' to it
    removing 'build/bdist.linux-armv7l/egg' (and everything under it)
    Processing dlp_lightcrafter-1.0.19-py2.7.egg
    Removing /usr/local/lib/python2.7/dist-packages/dlp_lightcrafter-1.0.19-py2.7.egg
    Copying dlp_lightcrafter-1.0.19-py2.7.egg to /usr/local/lib/python2.7/dist-packages
    dlp-lightcrafter 1.0.19 is already the active version in easy-install.pth

    Installed /usr/local/lib/python2.7/dist-packages/dlp_lightcrafter-1.0.19-py2.7.egg
    Processing dependencies for dlp-lightcrafter==1.0.19
    Finished processing dependencies for dlp-lightcrafter==1.0.19

    root@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000/dlp_lightcrafter-1.0.19# cd /opt/scripts/device/bone/capes/DLPDLCR2000/
    root@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000# export DISPLAY=:0
    root@beaglebone:/opt/scripts/device/bone/capes/DLPDLCR2000# python MplayerTest.py

    The blue font above is the one I'm running, and I think there should be no error, but the result is the same as I described earlier.

    I first reviewed the content of MplayerTest.py, which mentioned "This function will play the Video on the display: 0 such this function should be executed under BBB".
    Is this script only applicable to the BBB?

    I have tested other scripts, such as TPGTest.py.
    Is able to work properly, only the sample video shows this problem...

    As for the environment variables you mentioned can give me some specific practices? I have just come into contact with your company's products, but also still learning beaglebone related knowledge.

    Anyway, thanks for your help.

  • Hello User,

    You are correct. This EVM expects GUI support on the operating system for the scripts to work. As such, you will need to install a linux GUI (as well as X11 as a video output driver) to get things running. This can be done using "apt-get" in your terminal. Be sure to review the associated documentation for your selected GUI to ensure everything is set up properly.

    I hope this helps.

    Best Regards,
    Philippe Dollo