To continue building your infinite player you must already have all the software installed as in my other posts.
First I configure PiPresents defaults in a way that I prefer. It will save a lot of manual changes later. How to display images and videos etc. will have already been defined. Copy and paste the entire block below into a terminal window.
1 2 3 4 5 6 7 8 9 10 11 12 |
sed -i "s,warp 300 300 655 500,original," /home/pi/pipresents/pp_definitions.py sed -i "s,image-window':'original',image-window':'fit'," /home/pi/pipresents/pp_definitions.py sed -i "200s,ordered,shuffle," /home/pi/pipresents/pp_definitions.py sed -i "s,ordered,shuffle," /home/pi/pipresents/pp_resources/pp_templates/ppt_liveshow_1p3/pp_showlist.json rm /home/pi/pipresents/pp_resources/pp_templates/ppt_mediashow_1p3/mediashow.json echo $'{\n \"issue\": \"1.3\",\n \"tracks": []\n}' > /home/pi/pipresents/pp_resources/pp_templates/ppt_mediashow_1p3/main.json sed -i "s,warp 300 300 655 500,original," /home/pi/pipresents/pp_resources/pp_templates/ppt_mediashow_1p3/pp_showlist.json sed -i "s,image-window':'original',image-window':'fit'," /home/pi/pipresents/pp_resources/pp_templates/ppt_mediashow_1p3/pp_showlist.json sed -i "s,\"start-show\": \"mediashow\",\"start-show\": \"main\"," /home/pi/pipresents/pp_resources/pp_templates/ppt_mediashow_1p3/pp_showlist.json sed -i "s,\"show-ref\": \"mediashow\",\"show-ref\": \"main\"," /home/pi/pipresents/pp_resources/pp_templates/ppt_mediashow_1p3/pp_showlist.json sed -i "s,\"title\": \"mediashow\",\"title\": \"main\"," /home/pi/pipresents/pp_resources/pp_templates/ppt_mediashow_1p3/pp_showlist.json sed -i "s,mediashow.json,main.json," /home/pi/pipresents/pp_resources/pp_templates/ppt_mediashow_1p3/pp_showlist.json |
Open PiPresents Editor.
1 |
cp /home/pi/pipresents/pp_editor.desktop ~/Desktop/ |
Create the main show.
Menu > Profile > New From Template > Media Show > (Name the show as you want. e.g. infinite)
Menu > Profile > Open > (Double click your show folder name then ) OK
(The ‘Shows’ pane should contain Start [start] and main [main] and ‘Medialists’ main.json)
Main is the container that all subsequent shows run in. The will all need entries in main.json (later)
There will be two types of LiveShow’s. One type will play a specified number of tracks and the other will play endlessly until told to stop. E.g. a music show might specify 10 audio tracks but the video/image concurrent show will just play endlessly in the background.
Create LiveShow’s for each media folder(category).
Menu > Show > Add > LiveShow > (Name as required. eg music-live, broadcast-live etc.
Select the show name, (goes red) then click ‘Edit Show’ button in center.
Live Tracks Directory 1
Set to appropriate folder for the current category. e.g. /home/pi/pp_home/media/music
Track Count
If this is a controlled show such as a Feature or Broadcast then set to 1
If this is a controlled show such as a music then set to number desired
If this is a background show ie. images or video leave at 0
Repeat/Single
If this is a controlled show such as a Feature , Broadcast or music then set to single-run
If this is a background show ie. images or video leave at repeat
Select Tab > Controls
If this is a background show then remove all but ‘pp-pause pause’. Otherwise no changes.
Do this for every category. A *.json file will be created automatically for each category. They will not be used at anytime but must exist. The only one we will use is main.json.
Naming shows. Keep the names simple. e.g music6-live, music12-live (The number is how many tracks it will play. This helps later when planning the order of play.)
Exception.
As was mentioned in my other post, any video such as relaxation or nature video can provide background imagery for audio content. If this LiveShow is for that purpose then set Tab > Track Defaults > Video Player Volume > -60. This will play a silent video allowing you to play your own audio show concurrently.
Building The Playlist (All following work is done in main.json)
Example 1.Adding the Monthly broadcast or a Feature-length etc. You may have created broadcasts-live as a LiveShow. If so, to have it play.
- Select main.json in the Medialists pane (goes red).
- Menu > Track > New > Show. A ‘New Show’ track will appear in the right pane.
- Select the Edit button on the right.
- Change the title to the same name as the LiveShow. e.g. broadcasts-live.
- Click ‘Show to Run’ button and select the corresponding show, broadcasts-live.
- OK
Example 2.
Playing audio with images or video in the background.
- Select main.json. On the right click ‘Add’ button.
- Browse to and select the black.png or jpeg that you hopefully have downloaded or generated.
- Click the ‘Edit’ button.
- Change its Title to ‘open relaxing-live’ or ‘open illustrations-live’ etc.
- Set the ‘Duration(secs) to 1.
- Copy the title and select the ‘Show Control’ Tab.
- Paste the ‘open relaxing-live’ or whatever into the ‘Show Control at End’ window.
- OK.
- Menu > Track > New > Show. A ‘New Show’ track will appear in the right pane.
- Select the Edit button on the right.
- Change the title to the same name as the audio only LiveShow. e.g music8-live or magazines-live etc.
- Click ‘Show to Run’ button and select the corresponding show.
- OK
- Again browse to and select the black.png or jpeg file.
- Click the ‘Edit’ button.
- Change its Title to ‘close relaxing-live’ or ‘close illustrations-live’ etc.
- Set the ‘Duration(secs) to 1.
- Copy the title and select the ‘Show Control’ Tab.
- Paste the ‘close relaxing-live’ or whatever into the ‘Show Control at Beginning’ window.
- OK.
What happens is this:
- The first black image is just a placeholder to command the background show to open.
- The audio show starts and plays according to the specification set in its show settings.
- The second black image is just a placeholder to command the background show to close.
By adding and ordering Live shows in this manner you end up with a very unpredictable program. A video used for background will have a different sound track every time it plays.
There is no actual limit to the number of shows, it just gets hard to configure in the first place.
Files can be added to the folders and they will play at sometime without changing the structure. You can even add them while it is running by SSH etc.
Run the show.
python /home/pi/pipresents/pipresents.py -p infinite -f -b