ron123456

Members
  • Content count

    5
  • Joined

  • Last visited

  1. ron123456

    Service file not playing video

    I have written a Python script that receives an online link from the server and downloads it and plays it simultaneously. After that, it plays it from the device unless it receives a new video link. I have written a service file that runs this code once the device boots. Service Script [Unit] Description=My device boot script service After=multi-user.target [Service] Type=idle User=root Environment=DISPLAY=:0 Restart=on-failure ExecStart=/root/Video_project/start.sh [Install] WantedBy=multi-user.target start.sh script #!/bin/bash #exec 1> >(logger -s -t $(basename $0)) 2>&1 python /root/Video_project/main.py Python function to play video I have these 3 functions running which displays the image and the video def image_func(): img_link = "https://i.ytimg.com/vi/o4IVan08VvI/maxresdefault.jpg" img_cmd = "feh -F %s"%(img_link) os.system(img_cmd) def play_video_from_server(link): print("Playing video from server") cmd = "mplayer -fs ffmpeg://%s" %(link) #link is read from JSON file os.system(cmd) def play_video_from_device(link_ID): print("Playing video from Device") cmd = "mplayer -fs %s.mp4" %(link_ID) #link_ID .mp4 is the name of the downloaded video os.system(cmd) The video player and image viewer never open in the front screen. How should I make it run to view the image and video?
  2. ron123456

    Mplayer unable to play stream

    I am trying to stream a video using NanoPi M1 Plus device from a URL using mplayer https://someurl.com/video.mp4 But it throws an error No stream found to handle url https://someurl.com/video.mp4 What is the issue?
  3. ron123456

    Nanopi M1 plus WiFi

    Hello as I have been experimenting with my NanoPi M1+, I want to know how to turn my nanopi device into a wifi access point. Also, how will it automatically start transmitting wifi signals immediately after boot?
  4. ron123456

    Nanopi M1 plus WiFi

    Hello, I am new to Nanopi platform. I want to use nanopi m1+ as a wifi access point. How should I go after it from starting?
  5. Hello I am new to Nanopi m1 plus development board. I followed the instruction as on friendlyarm's wiki page. I loaded the image from my Ubuntu OS and connected my device to the pc. The blue led was blinking normally. I used Putty to view the logs. While booting it is showing: resize2fs 1.42.12 (29-Aug-2014) resize2fs: Bad magic number in super-block while trying to open /dev/mmcblk0p2 Couldn't find valid filesystem superblock. resize2fs exited with status code 1 done. mount: mounting /dev/mmcblk0p2 on /root failed: Invalid argument done. Target filesystem doesn't have requested /sbin/init. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory done. No init found. Try passing init= bootarg. Rebooting automatically due to panic= boot argument [ 45.460839] reboot: Restarting system I uploaded nanopi-m1-plus_friendlycore-xenial_3.4.y_YYYYMMDD.img.zip image. What is the issue and how can it be resolved?