# Make a USB Video Looper with a Raspberry Pi 4 Model B

**URL:** <https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861>\
**Category:** Guides\
**Created:** [26 November 2020 03:24 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861 "2020-11-26T03:24:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/tim/32/3324_2.png) [@Tim](https://forum.core-electronics.com.au/u/Tim)\
**Post date:** [26 November 2020 03:24 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/1 "2020-11-26T03:24:12Z")

</div>

Hey all new tutorial and video out **"[Video Looper with Raspberry Pi 4 Model B](https://core-electronics.com.au/tutorials/raspberry-pi-video-looper.html)"**

Follow along to create a small-footprint, low-power, high definition video looping monster that is capable of running 24/7. Just plug in a USB filled with videos and it will play automatically. No faffing around with controllers or settings. Everything you need and exactly how to do it all in a succinct package. Hope you dig it.

[![](https://core-electronics.com.au/media/kbase/Copy_of_Copy_of_Copy_of_Copy_of_Compute_Modules_Raspberry_Pi_Generations.png)](https://core-electronics.com.au/tutorials/raspberry-pi-video-looper.html)

Also, if you happen to be holding a Raspberry Pi board and not quite sure what it is? Then check out this guide [**Raspberry Pi Generations**](https://core-electronics.com.au/tutorials/raspberry-pi-generations.html) to identify it.

**[Read more](https://core-electronics.com.au/tutorials/raspberry-pi-video-looper.html)**

---

<div class="post-metadata">

**Author:** ![Roberto155600](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@Roberto155600](https://forum.core-electronics.com.au/u/Roberto155600)\
**Post date:** [24 February 2021 16:26 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/2 "2021-02-24T16:26:08Z")

</div>

Hello!  
  
i have successfully installed the video looper on a raspberry pi4b.  
  
  
  
I need to rotate the screen image 270 ° what can I do?  
  
  
  
I have already changed the screen settings but when the player starts it does not respect the settings I set for the screen.  
  
Thanks so much!  
  
  
  
R.

---

<div class="post-metadata">

**Author:** ![brian86770](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@brian86770](https://forum.core-electronics.com.au/u/brian86770)\
**Post date:** [24 February 2021 16:43 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/3 "2021-02-24T16:43:39Z")

</div>

> **[How to Rotate Raspberry Pi Video Display / Screen - Tutorial](https://core-electronics.com.au/tutorials/how-to-rotate-the-raspberry-pi-video-display.html)**
>
> Like many things in the Raspberry Pi ecosystem, functions such as rotating the display output can be a little unintuitive at first. Or perhaps you’re not sure how to get rid of that annoying black outline on your screen. So, we’ve put together a...

pls have a read here…

---

<div class="post-metadata">

**Author:** ![Owen](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/owen/32/2948_2.png) [@Owen](https://forum.core-electronics.com.au/u/Owen)\
**Post date:** [24 February 2021 22:22 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/4 "2021-02-24T22:22:33Z")

</div>

Hey Roberto,

Welcome to the forum! That tutorial Brian linked should have all the relevant info, if you run into any issues just jump back on here and we’ll do our best to help out.

---

<div class="post-metadata">

**Author:** ![Robert156756](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Robert156756](https://forum.core-electronics.com.au/u/Robert156756)\
**Post date:** [8 March 2021 07:26 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/5 "2021-03-08T07:26:19Z")

</div>

Hello!

This is a great program! It work at first, but when i unplugged the USB and replugged it, it doesn’t work anymore. It just goes to a black screen after the countdown. Please assist!

---

<div class="post-metadata">

**Author:** ![brian86770](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@brian86770](https://forum.core-electronics.com.au/u/brian86770)\
**Post date:** [8 March 2021 07:37 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/6 "2021-03-08T07:37:22Z")

</div>

go over all your wiring…

also check that if your screen has not defaulted to another input if it has multiple ones…

you may not have powered it down correctly…  
improper shutdowns if the sd-card is in a write cycle it may have corrupted your image and or program etc.etc… verify that your media is intact …you may need to re-flash it …do you have a backup copy sd-card …if not i suggest you make one and try it…  
and if also check your power supply…for 5 volts…  
i think if you look up the schem`s or diagrams and check voltages…

just a few things to consider for now…

---

<div class="post-metadata">

**Author:** ![Robert156756](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Robert156756](https://forum.core-electronics.com.au/u/Robert156756)\
**Post date:** [8 March 2021 07:43 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/7 "2021-03-08T07:43:32Z")

</div>

Thank you! This is my first time playin around with a Raspberry. I do have a copy of the files i’m trying to media. I believe the media is still working since i can plug the sd-card into my pc and run it. I do not have another display. I am using a 7" Raspberry Screen. But I will go over the wiring and power again.

Would there be another issues that might be causing it

---

<div class="post-metadata">

**Author:** ![Robert156756](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@Robert156756](https://forum.core-electronics.com.au/u/Robert156756)\
**Post date:** [8 March 2021 09:16 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/8 "2021-03-08T09:16:09Z")

</div>

Thank you! i got it to work. I dont know what i did wrong, but it is working. If i want to loop the video once it ends, is there a code i can add to loop the video indefinately?

---

<div class="post-metadata">

**Author:** ![Richard160222](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@Richard160222](https://forum.core-electronics.com.au/u/Richard160222)\
**Post date:** [13 April 2021 02:01 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/9 "2021-04-13T02:01:16Z")

</div>

Thanks for this, it works very well for me! Is it possible to run a dual screen version, with one video on HDMI-0 and a different video on HDMI-1?

---

<div class="post-metadata">

**Author:** ![Bryce](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/bryce/32/3631_2.png) [@Bryce](https://forum.core-electronics.com.au/u/Bryce)\
**Post date:** [13 April 2021 05:17 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/10 "2021-04-13T05:17:50Z")

</div>

Hey Richard,

It seems to be possible, however, you’ll likely notice a major drop in performance if you are able to set that up on a Pi 4.

> <https://github.com/adafruit/pi_video_looper/issues/100>
>
> Hi,
> Thanks for creating a great package. I'm using it with Rpi4 to create a media installation.
> Is there a way to use...

There’s actually a discussion in one of the issues on their repo about this exact question, I’ve linked it above for you. All the best with your project!

---

<div class="post-metadata">

**Author:** ![Sofie162063](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/sofie162063/32/4409_2.png) [@Sofie162063](https://forum.core-electronics.com.au/u/Sofie162063)\
**Post date:** [1 May 2021 17:07 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/11 "2021-05-01T17:07:09Z")

</div>

This is a great tutorial! Thank you! Everything is running smoothly, except the player seems to distort the proportions of my video. The video plays at the correct proportions using the pi’s vlc player, but not with the looper. Any ideas what is happening?

---

<div class="post-metadata">

**Author:** ![brian86770](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@brian86770](https://forum.core-electronics.com.au/u/brian86770)\
**Post date:** [1 May 2021 20:37 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/12 "2021-05-01T20:37:45Z")

</div>

`try switching to 720P and adjust the font sises…

---

<div class="post-metadata">

**Author:** ![Oliver33](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Oliver33](https://forum.core-electronics.com.au/u/Oliver33)\
**Post date:** [2 May 2021 04:39 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/13 "2021-05-02T04:39:22Z")

</div>

There’s an issue in the github - looks like it’s something to do with OMXPlayer

Here’s a fix:

> <https://github.com/adafruit/pi_video_looper/issues/64#issuecomment-530938379>
>
> Using a Raspberry Pi 4, with the latest 2019-07-10-raspbian-buster-lite, omxpla…yer distorts videos to always fill the entire space of the screen. (normal behavior would be to display black bars around the video if the aspect ratio doesn't match)
> 
> This happens with versions 1.0.3 and the latest v.1.0.4 of this script. The same SD card when booted on a Raspberry Pi 3b+ doesn't do that.
> 
> I wonder if maybe the Pi 4 hardware has problems recognizing the screen size, so I've tried various screens, using both HDMI-to-HDMI cables as well as HDMI-to-DVI cables (when using a desktop screen that only has DVI input). 
> This is the result of \`/opt/vc/bin/tvservice -s\`, which fits the hardware specs, so I'm thinking it's correctly identifying the screen:
> \`state 0x6 \[DVI CUSTOM RGB full unknown AR\], 1920x1200 @ 60.00Hz, progressive
> \`

For convenience:

> removing  
> `dtoverlay=vc4-fkms-v3d`  
> from /boot/config.txt
> 
> fixes the issue

---

<div class="post-metadata">

**Author:** ![Richard160222](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@Richard160222](https://forum.core-electronics.com.au/u/Richard160222)\
**Post date:** [4 May 2021 01:02 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/14 "2021-05-04T01:02:42Z")

</div>

Thanks for this looper, it’s working very well for me! Is there a way for me to control the volume out from the 3.5mm jack? I have it plugged into a powered amp system that doesn’t have convenient volume control, and changing the volume from the Rasparian GUI doesn’t seem to affect the output when the looper is playing, I assume it is bypassing the system volume settings. I could adjust the volume on the recording, but that’s a lot of trial and error compared to adjusting the volume of the system on-the-fly.

Cheers!

---

<div class="post-metadata">

**Author:** ![Oliver33](https://avatars.discourse-cdn.com/v4/letter/o/a9adbd/32.png) [@Oliver33](https://forum.core-electronics.com.au/u/Oliver33)\
**Post date:** [4 May 2021 06:29 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/15 "2021-05-04T06:29:19Z")

</div>

Hey Richard,

Did a bit of googling - perhaps try this:

> **[Ubuntu Linux: Increase decrease volume from command line & keyboard shortcut](http://blog.chapagain.com.np/ubuntu-linux-increase-decrease-volume-from-command-line-keyboard-shortcut/)**
>
> Here are some linux commands (pactl and amixer) to increase and decrease volume. You can also use these commands to set keyboard shortcut to increase and decrease volume. pactl

Worked for this guy apparently:  
[https://www.raspberrypi.org/forums/viewtopic.php?p=1785240#p1785240](https://www.raspberrypi.org/forums/viewtopic.php?p=1785240#p1785240)

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [4 May 2021 06:37 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/16 "2021-05-04T06:37:06Z")

</div>

Hi Guys,

Seems like adafruit added a volume config option in a recent release:

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/0/08bdc6b04dd2d44ac9cb760a614267dde5e8957e.png)  
However I’m not 100% across this project so I can’t give the needed usage tips unfortunately ☹

-James

Edit: Seems like you can do it on a per-video basis which seems really useful

---

<div class="post-metadata">

**Author:** ![Richard160222](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@Richard160222](https://forum.core-electronics.com.au/u/Richard160222)\
**Post date:** [5 May 2021 12:48 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/17 "2021-05-05T12:48:38Z")

</div>

Thanks James!

This seems to be the go, but I’m struggling with syntax. I’ve added volume text file reference to the video\_looper.ini file, and the file itself to the video directory. I’m pretty sure I’m getting that bit right because the file plays normally (at full volume) when I don’t have the name or location of the file right, but when the names match and the location is correct, the file won’t play, which I assume is because my syntax in the text file is wrong.

I’ve tried “-3000”, I’ve tried “50%”, and I’ve tried “amixer -c 1 – sset Master playback -20dB” all of which seem to make sense, but cause the player to fail.

If you can point me in the direction of the “per video” information, that might help me, because at the moment what I’m doing would only have a single .txt file referenced for the whole directory of videos.

Also, I understand that this should be asked in the Adafruit Q&A, and I will, but people here seem much more responsive…

Thanks again!

---

<div class="post-metadata">

**Author:** ![Aaron167638](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Aaron167638](https://forum.core-electronics.com.au/u/Aaron167638)\
**Post date:** [30 June 2021 13:45 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/18 "2021-06-30T13:45:53Z")

</div>

Hi!

I was able to try it out and it worked with my hdmi monitor but not with the 3.5 inch display(no hdmi port just the female pin thingies) i bought with raspberry.

Is there a way to make it work with the display or does the program only work with hdmi monitors?

To be clear, i’m a complete noob at any of this and literally only bought a raspberry pi a few days ago wahahahh

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [1 July 2021 00:30 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/19 "2021-07-01T00:30:43Z")

</div>

Hi Richard,

Sorry for leaving you hanging for so long! I put this on the back-burner and never took it off 😅

From the default config file found on [the GitHub for this project](https://github.com/adafruit/pi_video_looper/blob/master/assets/video_looper.ini):

```auto
# ALSA configuration follows.
# This only applies when using omxplayer with sound = alsa.
[alsa]

# ALSA hardware device to use for sound output. This consists of the card
# number and subdevice number separated by a comma, e.g. '1,0'. Run 
# 'aplay -l' to list available devices. If empty, the default output device is
# used.
hw_device = 
#hw_device = 1,0

# Volume of the hardware device can be set using a text file provided with the
# video files. If the file does not exist, the hardware volume will remain
# unchanged. This setting specifies the name of the text file.
# The file should contain a single line with an amixer-compatible volume value,
# such as '50%' or '-10db'.
hw_vol_file =
#hw_vol_file = alsa_volume

# Name of the ALSA control to use for adjusting volume. Typically this will be
# 'PCM'. Run 'amixer -c N scontrols' (where N is the card number of your output
# device) to list available controls.
hw_vol_control = PCM

```

I’d make sure you’re controlling the volume for the right sound device, and if that fails, just use the alsamixer command to set the volume before playing video with no volume control options selected in the looper.

Sorry to see it’s still giving you so much trouble! Adafruit are usually better than this in their documentation…  
-James

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [1 July 2021 00:32 UTC](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861/20 "2021-07-01T00:32:23Z")

</div>

Hi Aaron,

To my knowledge the 3.5" displays work on a different framebuffer to the HDMI or DSI, I’d look through the code of the video looper to see if you could modify it (but I’m not really sure where to start)

Keen to see you get this working!  
-James

[Next page](https://forum.core-electronics.com.au/t/make-a-usb-video-looper-with-a-raspberry-pi-4-model-b/8861.md?page=2)
