Falcon Christmas

Falcon Christmas => Falcon Player (FPP) => Topic started by: Keebler on November 01, 2013, 10:43:49 AM

Title: Raspberry PI
Post by: Keebler on November 01, 2013, 10:43:49 AM
OMG
i got mine the other day
after a quick install (ok it was not quick took about 30 mins or so) of the FPP software

i had BLINKY FLASHY to a completed song for christmas
ABSOLUTELY AMAZING

here is my commbox (communications box)
it houses
1 x router board (flashed)
1 x 1.31 bridge
1 x .5W transmitter
1 x GLI (ground loop isolator)
1 x Raspberry PI loaded with FPP

i have a pic that goes here,  but i guess i dont have access to upload pics..

this thing is AMAZING
it plays directly to the transmitter

amazing!!!!


[attachment deleted by admin]
Title: Re: Raspberry PI
Post by: jnealand on November 01, 2013, 11:02:23 AM
That is a lot of stuff in one box.  I keep thinking about trying to do something like that, but it is to easy to just keep everything in my house and run one cat5 cable out a window. 
Title: Re: Raspberry PI
Post by: Keebler on November 01, 2013, 11:08:26 AM
my yard is too big (over 500 ft from the front of my house to the edge of the road)
plus with everything consolidated makes it REAL easy to do any maintenance or upgrades..
add to that, i can access the entire show from my droid and work on specific sections.
ill post pics of the commbox in the tree
Title: Re: Raspberry PI
Post by: mms on November 01, 2013, 11:33:48 AM
Does your FM transmitter pick up interference from anything?
Title: Re: Raspberry PI
Post by: JonB256 on November 01, 2013, 11:42:27 AM
Radio noise occurred to me, too. I'd at least reroute the audio cable. It goes over a lot of AC power cords.

sent from my Galaxy Note

Title: Re: Raspberry PI
Post by: arw01 on November 01, 2013, 01:39:32 PM
Well I'm pretty impressed with the work and the thought of the box.  How about a guided tour with labels?

How far does the radio go out, past the 200' with the .5?  Still need to buy the transmitter radio, deciding yet on what, when, where, and how strong.

Alan
Title: Re: Raspberry PI
Post by: David Pitts on November 01, 2013, 01:54:18 PM
Keebler your setup looks compact and easy to setup. Very nice.
Title: Re: Raspberry PI
Post by: Keebler on November 02, 2013, 06:38:40 AM
that is why i use the GLI.
no interference at all

thanks Dave :)

Alan, the law says that legally i can only use a maximum of .5W (500mW) transmitter
it will carry upto 1 mile away.
i just put it all together simply because it looked REALLY cool and i wanted things as compact as possible (easier to hide lol)
i will submit a pic with labels :)

thank you all :)

so i gotta ask, is there a way to get the Raspberry PI to read music files (ogg or mp3) from a network drive and play them?
what i am wanting to do is play some music files BEFORE my show starts with little promos about the light show and music station, etc.
then at start time, shut the music off and begin the light show

my PI is in an all in one unit now, and it will be located high in a tree. it would be nice if i could have it start about 30 mins or so before playing music and promos before the show starts.
it is NETWORK accessible and has internet access the entire time it is plugged in.

so in this case, do i need the ras clock or will the NTP work just fine?
Title: Re: Raspberry PI
Post by: Steve Gase on November 02, 2013, 07:07:45 AM
so i gotta ask, is there a way to get the Raspberry PI to read music files (ogg or mp3) from a network drive and play them?
what i am wanting to do is play some music files BEFORE my show starts with little promos about the light show and music station, etc.
then at start time, shut the music off and begin the light show

my PI is in an all in one unit now, and it will be located high in a tree. it would be nice if i could have it start about 30 mins or so before playing music and promos before the show starts.
it is NETWORK accessible and has internet access the entire time it is plugged in.

so in this case, do i need the ras clock or will the NTP work just fine?

Your Pi contains that network drive.  It is shared so that you can upload files to it.  Are you looking to add new content while the show is running?

What people would normally do is have a playlist that plays music only for the time leading up to the start of the sequences.  Like other playlists, it would start at a defined time and it could loop until the time is ended.

The network is accessible while the show plays.  It allows you to get status, control the show (stop, start, change playlist, etc.)

If your Pi can reliably reach your internet-connected router, you can use NTP and you don't need the RAS clock.  NTP has an advantage over RAS clock -- ras clock is checked only at bootup.  NTP is regularly making adjustments to sync up with the time source.
Title: Re: Raspberry PI
Post by: jnealand on November 02, 2013, 07:46:04 AM
As I understand it all the data is stored on the USB flash drive so you could have a really big flash drive and load all kinds of music on it.  The SD card only contains the operating system.
Title: Re: Raspberry PI
Post by: JonB256 on November 02, 2013, 08:45:09 AM
As I understand it all the data is stored on the USB flash drive so you could have a really big flash drive and load all kinds of music on it.  The SD card only contains the operating system.

That is true, Jim. So I ask myself, why do I have a 32GB SD card (which almost empty) and a 4GB USB flash drive that is 1/2 full?

The current FPP software only plays OGG files. Perhaps a feature to be added would allow us load and play MP3 files but don't allow them to be associated with FSEQ sequencing files in a playlist.
Title: Re: Raspberry PI
Post by: Keebler on November 02, 2013, 11:58:31 AM
so i gotta ask, is there a way to get the Raspberry PI to read music files (ogg or mp3) from a network drive and play them?
what i am wanting to do is play some music files BEFORE my show starts with little promos about the light show and music station, etc.
then at start time, shut the music off and begin the light show

my PI is in an all in one unit now, and it will be located high in a tree. it would be nice if i could have it start about 30 mins or so before playing music and promos before the show starts.
it is NETWORK accessible and has internet access the entire time it is plugged in.

so in this case, do i need the ras clock or will the NTP work just fine?

Your Pi contains that network drive.  It is shared so that you can upload files to it.  Are you looking to add new content while the show is running?

What people would normally do is have a playlist that plays music only for the time leading up to the start of the sequences.  Like other playlists, it would start at a defined time and it could loop until the time is ended.

The network is accessible while the show plays.  It allows you to get status, control the show (stop, start, change playlist, etc.)

If your Pi can reliably reach your internet-connected router, you can use NTP and you don't need the RAS clock.  NTP has an advantage over RAS clock -- ras clock is checked only at bootup.  NTP is regularly making adjustments to sync up with the time source.

thank you Steve.
what i am after is being able to STREAM from a network folder various music files to fill the time before my show begins
or if it can not play right from a network folder, can i build a folder on the USB stick with say 20 songs, and have the FPP play these songs RANDOMLY, or do they have to follow a playlist?

cool on the NTP, yes it can see the root router! 192.168.1.1 even though the PI and the SHOW are on a subnet
that is why i asked if i could define a static IP, then i can set the GW and DNS :)
Title: Re: Raspberry PI
Post by: taybrynn on November 02, 2013, 02:02:41 PM
Normally transmitters are real sensitive to being around other electronics so if you have noise, just be aware.
Title: Re: Raspberry PI
Post by: Steve Gase on November 02, 2013, 07:12:46 PM
so i gotta ask, is there a way to get the Raspberry PI to read music files (ogg or mp3) from a network drive and play them?
what i am wanting to do is play some music files BEFORE my show starts with little promos about the light show and music station, etc.
then at start time, shut the music off and begin the light show

my PI is in an all in one unit now, and it will be located high in a tree. it would be nice if i could have it start about 30 mins or so before playing music and promos before the show starts.
it is NETWORK accessible and has internet access the entire time it is plugged in.

so in this case, do i need the ras clock or will the NTP work just fine?

Your Pi contains that network drive.  It is shared so that you can upload files to it.  Are you looking to add new content while the show is running?

What people would normally do is have a playlist that plays music only for the time leading up to the start of the sequences.  Like other playlists, it would start at a defined time and it could loop until the time is ended.

The network is accessible while the show plays.  It allows you to get status, control the show (stop, start, change playlist, etc.)

If your Pi can reliably reach your internet-connected router, you can use NTP and you don't need the RAS clock.  NTP has an advantage over RAS clock -- ras clock is checked only at bootup.  NTP is regularly making adjustments to sync up with the time source.

thank you Steve.
what i am after is being able to STREAM from a network folder various music files to fill the time before my show begins
or if it can not play right from a network folder, can i build a folder on the USB stick with say 20 songs, and have the FPP play these songs RANDOMLY, or do they have to follow a playlist?

cool on the NTP, yes it can see the root router! 192.168.1.1 even though the PI and the SHOW are on a subnet
that is why i asked if i could define a static IP, then i can set the GW and DNS :)

the features that you ask for may not be in the product yet...  maybe there will be technical reasons why they never can be done.

still, you should be able to accomplish what you want with some special handling on your end.
the player will have a playlist that refers to a list of songs, and it plays them in order.  there is no random feature (yet).

so, taking this behavior, build your own random capabilities...

create a playlist of (let's say 20) songs, and each name should be generic.  let's say Song01.ogg, Song02.ogg, Song03.ogg, etc.

Start the player... 

From another PC (that can access the Pi's share) you can replace the files with new ones that use the same names, but contain different songs.
Title: Re: Raspberry PI
Post by: Keebler on November 03, 2013, 04:53:38 AM
HMMMM,
sounds like an idea there

thank you :)
Title: Re: Raspberry PI
Post by: Steve Gase on November 03, 2013, 06:43:27 AM
There was a caution in one of the threads about replacing a file while it is in use.
I assume that it is a standard Linux file system issue.
Often you can rename a file and the application above will continue to access the file through the handle -- even if the name is changes.

So, modify my suggestion above... with the 20 songs (or 40, or 100...) rename them, swapping them with each other, instead of copying up new files...  the goal is to avoid replacing a file while it is in use.
Title: Re: Raspberry PI
Post by: Keebler on November 03, 2013, 04:13:16 PM
FEATURE REQUEST
add random playlists
add ability to play mp3's
Title: Re: Raspberry PI
Post by: Steve Gase on November 03, 2013, 06:35:59 PM
Maybe mp3s can again be supported for music-only.

But, the move to ogg was to address synchronization problems with the sequence.  If mp3 was re-introduced with sequences then folks would start seeing the problems again.
Title: Re: Raspberry PI
Post by: David Pitts on November 03, 2013, 06:42:21 PM
Maybe mp3s can again be supported for music-only.

But, the move to ogg was to address synchronization problems with the sequence.  If mp3 was re-introduced with sequences then folks would start seeing the problems again.

Well yes and no. MP3 had sync problems so we moved to ogg which was better but still had problems. Then Captain Murdoch fixed the sync issue with some great code. After Christmas we will revisit the MP3 file format using new sync code. If we can get it to work some people will be very happy( MaterDaddy :) ). It is just too close to Christmas now for any major changes.
Title: Re: Raspberry PI
Post by: Materdaddy on November 04, 2013, 10:34:40 AM
For the record, I do love ogg as a format.  I support open standards and all.  My issue here is the ogg123 executable and it's different audio system handling issues, paired with the fact that pretty much all sequencing software we all use doesn't use ogg, so we have to have multiple files of everything maintained.  Not a big deal from the file handling part, but the ogg123 stuff makes things a little more painful for my own development purposes on a non-PI environment.

I was thinking we could abstract the code and make supported formats user selectable if this is a "next year" type of thing.
Title: Re: Raspberry PI
Post by: CaptainMurdoch on November 04, 2013, 01:55:48 PM
I was thinking we could abstract the code and make supported formats user selectable if this is a "next year" type of thing.

Definitely next year and "s/selectable/auto-detected/"   :)

I'd like to have a more pluggable architecture in place for next year.  Have the ability to support MP3 and OGG auto-detected and use the appropriate set of functions.  Ditto for the lighting output side of things to give the ability to add in support for other output methods by adding a few functions in a new output 'plugin'.  I don't foresee any major issues getting MP3's or A/V files synced.