Thursday, February 27, 2020

Yet Another Raspi Media Player(YARMP)

There are tons of raspberry pi based media players, why another one?

  • Ready to use, buildroot based lightweight image < 65MB
  • In 3 easy steps, you can have Raspi playing media file in a loop(audio/video/images)
  • Media starts playing in less than 20seconds after power ON
  • Single image supports all variants of Pi-1(Pi-Zero/Pi-Zero-W/Pi-A/Pi-B/Pi-A+/Pi-B+)
  • Works on old raspi's with lowest 256MB ram variant and sd-card size of 1GB
  • Autoplays Video or Audio or Images which are found on internal sd-card or external-fat-formatted-usb-drive.

How to get the raspi playing media in 3 easy steps
  1. Download this raspi-yarmp.img.xz image to your PC
  2. Using balenaEtcher, write the image to sd-card.
  3. Plugin the sdcard and boot the raspi... Thats it!!! default included video starts playing in a loop.







Ok, I have the default bbc-motion-gallery-video playing now, how do I replace this video with my own on raspi sd-card?
  1. Remove the sd-card from raspi, and plug it into your windows-PC
  2. On your windows-PC, multiple new drives will show-up, browse to the drive USRDAT:\media-files\ and look for file "sample-video.mkv", if your PC doesn't  show USRDAT drive, then try using usb-to-sdcard reader or try sd-card mounting on a Linux-PC.
  3. delete this file(or take a backup) and add your own media file(audio/video or image) under "media-files" directory.
  4. Insert the sd-card onto raspi, and power ON, raspi shall play your newly added media(s) in a loop
Note: In step-2, if you are unable to find USRDAT drive, then just copy your video file to a fat formatter usb-drive insert it on to raspi, and power-cycle(Raspi upon bootup, checks if any media files exists on external-usb-drive, if found, then it will pay this instead of internal sdcard video)


If I attach USB drive having media files to Raspi, can it play the content of my usb-drive instead of internal default video?

  1. Yes, if external USB drive on raspi is found, then playback preference is given to the media files of external USB drive.
  2. Ensure that your USB drive is fat formatted(vfat), and copy single or multiple video/audio/image files to this USB drive, insert it onto Raspi's usb connector, and reboot.

Can I use Raspi-yarmp image as digital album to play my photos?
  1. Yes, copy your photos onto fat-formatted usb-drive or usb-stick, plug it in to raspi usb connector and restart the raspi.
  2. If playback delay is not sufficient or needs adjustment, then edit the /mnt/userdata/rc.local on raspberry pi(check for the section where fbv commandline utility is called)

What If my external USB drive contains Video-Files/Audio-Files/Images, which one will play in a loop?
  1. First preference is given to video files
  2. Second preference is given to audio files(e.g mp3)
  3. Third preference is given to image files (e.g jpg/png/etc)
  4. If none of the files are found, or no external usb drive is found, then default sd-card included bbc-motion-gallery video will play.

Can Raspi-yarmp play videos in a seamless loop? means, when playback switches from one video to another(or when video rewinds to beginning), usually screen goes black for few seconds, can this be avoided?
  1. Yes, by default, if single video file is found, then raspi will play this file in a seamless-loop, means screen going black will not happen when video rewinds to beginning.
  2. Incase if you have multiple video files which needs to be played in a seamless manner, then merge all your videos into one single video using melt-tool

What's the use of Raspi-yarmp like media player? who needs this? where is it applicable?

  1. Can be used as a media-player for digital signage application
  2. If you are a audio/video technician who needs a handy tool to test your audio/video setup, you can use raspi-yarmp on Pi-Zero powerd by battery-bank and use it as hdmi audio-video source when needed.
  3. As an artist, you can show your work on a display running your content in a loop.
  4. In Museum, you can find such a low cost media player handy.
  5. For your science project, you can have a small hdmi display with raspi playing your own content.
  6. Use raspi-yarmp to play your photos  in a loop on a hdmi display(digital photo album)
  7. Many more...!!!

Here is my battery-powered Pi-Zero running raspi-yarmp as digital photo album on a 7inch LCD setup costing <$50






Let me know in comments section if you have suggestions/improvements/question.
Happy hacking...