I've been using a mixture of my personal work & downloading other's from GIPHY, Instagram, Behance, Youtube, & Vimeo. Vimeo/Youtube have higher quality renditions available usually, followed by Behance, followed by GIPHY/Instagram (usually).
Go to the Bonuses page to download some of the Loops I'm using.
Use any site that lets you scrape stuff (for Reddit, Vimeo, Youtube, etc)
/renditions
to the URL ;)I find its easiest to do these steps in larger batches, depending on how many loops you want on it.
These steps are only necessary if you care about your videos being sized properly, or if using portrait orientation, which you totally should. If you already know how to use After Effects, just go through your own motions to size all of your videos to match the screen dimensions (1280 x 800).
Drag your files into After Effects' project tab.
Select all of the source clips, right click & create a composition. Make sure "Multiple compositions" is selected & then click Ok.
Hit CMD+K
to open composition settings. Change the composition size to 1280
width & 800
height (or whatever your particular screen's dimensions are). I also recommend changing the background color to red or something obnoxious, so it's more obvious when things aren't perfect. Click OK.
Adjust scale to fill the composition. I've found that up to 200% scale looks fine on this display, especially for GIFs. 250% is pushing it, & anything higher you'll want to find a higher res clip for.
<aside> π¨ Depending on the loop's background, you can add a color matte behind it to avoid having to scale up too much.
If the loop doesn't have a solid background, a color matte doesn't look great, and the loop has some padding around its center of focus, you can duplicate the video twice, rotate 180 degrees, & drag above/below the main loop
</aside>
If screen is in portrait mode, rotate all your clips -90 degrees
Make sure that the timeline doesn't leave any empty frames at the end β sometimes when importing GIFs, there will be an extra frame at the end that'll be noticeable if looping
Making the comps
Adjusting to fit ur screen
file
& then Export -> Add to Adobe Media Encoder Queue
. AME should now open and after a little bit your compositions will load in to the queue*.* You could also just render normally thru After Effects, but I prefer AME because everything is a more decent size by default.cmd + a
& then click Match Source - High Bitrate
to enter export settings. Click Ok
if the multiple files warning appearsInclude Audio
. Even if your clips don't have audio, not checking this box sometimes adds an extra frame to the end, which can be a noticeably stutter when looping. I don't make the rulesOK
The "Hello_Video" player is fussy and only works with .h264 raw files. We use Hello_Video for the seamless loops. If you don't care about that you shouldn't have a Loopy Frame, but if you still want one you can use the default player (omx_player) from earlier in the tutorial & skip this step.
So we'll need to use another command line software called ffmpeg to extract the raw .h264 streams from their .mp4 containers. This'll be fun & probably a little annoying.
If you're using Windows, follow this guide to install ffmpeg
Install ffmpeg
The most straightforward way to install ffmpeg is with Homebrew. If already have Homebrew installed, skip to step 3.
Install Homebrew by pasting this in Terminal /bin/bash -c "$(curl -fsSL [<https://raw.githubusercontent.com/Homebrew/install/master/install.sh>](<https://raw.githubusercontent.com/Homebrew/install/master/install.sh>))"
Install ffmpeg with brew install ffmpeg
Extract .h264
cd ~/desktop
.
cd
changes directory. If your files are in a folder in your desktop, you'd use cd ~/desktop/name_of_folder
. If your files are somewhere else, you can start typing cd
and then drag the containing folder from Finder directly into Terminal. It should add the directory path.If using mac, paste this code
```bash
for i in *.mp4; do ffmpeg -i "$i" -vcodec copy -an -bsf:v h264_mp4toannexb "${i%.*}.h264"; done
```
If using Windows, paste this instead
```bash
FOR /F "tokens=*" %G IN ('dir /b *.mp4') DO ffmpeg -i "%G" -vcodec copy -an -bsf:v h264_mp4toannexb "%~nG.h264"
```
This should be fast as shit. It's not doing anything other than pulling the .h264 stream out of the .mp4 containers
If it worked, you should have a bunch of brand new .h264 files on your deskop. These are what we need.
It flies thru
<aside>
π‘ To convert a directory of h264 loopies back to mp4's, you can use this code (on Mac)
for i in *.h264; do ffmpeg -i "$i" -c:v copy -f mp4 "${i%.*}.mp4"; done
</aside>
This is the last real step!!!!!!! We need to connect to your Pi & send files to it. There's a few ways of doing this (sftp, flash drive, or sd card), but we'll be using sftp. To connect via sftp, you'll need Filezilla (or any ftp app).
First Time Setup
New Site
Protocol
from FTP β File Transfer Protocol
to SFTP β SSH File Transfer Protocol
Host
type your Pi's IP address from earlierPort
type 22
Connect
. After accepting the security fingerprint, you should be connected πSend in the Loops
video
foldersudo supervisorctl restart video_looper
If everything worked out, you should have a Loopy that's playing Loops! Forever!