Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpi 3 support? #10

Open
GillesC opened this issue Jun 4, 2016 · 10 comments
Open

rpi 3 support? #10

GillesC opened this issue Jun 4, 2016 · 10 comments

Comments

@GillesC
Copy link

GillesC commented Jun 4, 2016

I've tested it on a rpi 3 but I can't seem to make it work, is it because of the used technology, or is it a fault of mine?

@razurac
Copy link

razurac commented Jun 4, 2016

Well maybe this will help you:
Did you follow the instructions and installed the additional packages through apt-get?
(Note: ffmpeg isn't anymore in the raspbian repository)

@GillesC
Copy link
Author

GillesC commented Jun 4, 2016

I did, I've used the instructions on this README to complete all the instructions. I'm currenlty using this repo, but I thought that this repo could provide better quality so I thought why not give it a try ;)

FYI: I don't get any errors when playing a song, there is just no sound in the medium at the specified frequency.

@razurac
Copy link

razurac commented Jun 4, 2016

What antenna do you use?
Am 04.06.2016 14:09 schrieb "Gilles Callebaut" [email protected]:

I did, I've used the instruction on this README
https://github.com/somu1795/fm_transmitter to complete all the
instructions. I'm currenlty using this repo, but I thought that this repo
could provide better quality so I thought why not give it a try ;)

FYI: I don't get any errors when playing a song, there is just no sound in
the medium at the specified frequency.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#10 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ASaYR9zkldXt_By44_CqxP47KyomtiUXks5qIWsCgaJpZM4IuGfA
.

@GillesC
Copy link
Author

GillesC commented Jun 7, 2016

I've just used a small wire that connects with the GPIO 4.

I'm able to transmit FM signals by means of the fm_transmitter repo, but not with this repo.

@ghost
Copy link

ghost commented Oct 21, 2016

I am having the same problem.

Since FFMpeg is unavailable from the Debian repo I was forced to complle it from source (which was successful)

I was unable compile PiFMPlay.

Regardless when I issue command to transmit, the program appears to be working, however nothing actually transmits.

> sudo sh pifmplay . 95.9
DEBUG: its a folder!
DEBUG: playfolder
DEBUG: its a file!
DEBUG: playfile
PiFMPlaying: file ./Moby - Porcelain(Atlantic Connection Remix).mp3, frequency 95.9
DEBUG: playmp3
DEBUG: playmp3sox

I was able to successfully use the other FM transmitter repo however it doesn't support mp3 or have as many features as this one https://github.com/somu1795/fm_transmitter

For my antenna I am using a 15" 14AWG solid core copper wire with shielding soldered to a insulated DuPont connector.
@
The other program I receive good results. I really wish II knew how to fix this one though.

I will provide an update if I make progress or fix it.

@ghost
Copy link

ghost commented Oct 21, 2016

Output of `sudo gcc -lm pifm.c -o pifm

pi@kauro:~/PiFMPlay-master/pifmplay $ sudo gcc -lm pifm.c -o pifm
pifm.c:171:1: error: unknown type name ‘class’
 class SampleSink{
 ^
pifm.c:171:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
 class SampleSink{
                 ^
pifm.c:177:1: error: unknown type name ‘class’
 class Outputter : public SampleSink {
 ^
pifm.c:177:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class Outputter : public SampleSink {
                 ^
pifm.c:255:1: error: unknown type name ‘class’
 class PreEmp : public SampleSink {
 ^
pifm.c:255:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class PreEmp : public SampleSink {
              ^
pifm.c:283:1: error: unknown type name ‘class’
 class Resamp : public SampleSink {
 ^
pifm.c:283:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class Resamp : public SampleSink {
              ^
pifm.c:346:1: error: unknown type name ‘class’
 class NullSink: public SampleSink {
 ^
pifm.c:346:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class NullSink: public SampleSink {
               ^
pifm.c:355:1: error: unknown type name ‘class’
 class Mono: public SampleSink {
 ^
pifm.c:355:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class Mono: public SampleSink {
           ^
pifm.c:369:1: error: unknown type name ‘class’
 class StereoSplitter: public SampleSink {
 ^
pifm.c:369:21: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class StereoSplitter: public SampleSink {
                     ^
pifm.c:414:1: error: unknown type name ‘class’
 class RDSEncoder: public SampleSink {
 ^
pifm.c:414:17: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class RDSEncoder: public SampleSink {
                 ^
pifm.c:452:1: error: unknown type name ‘class’
 class StereoModulator: public SampleSink {
 ^
pifm.c:452:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token
 class StereoModulator: public SampleSink {
                      ^
pifm.c:524:48: error: unknown type name ‘bool’
 void playWav(char* filename, float samplerate, bool stereo)
                                                ^
pifm.c: In function ‘setupDMA’:
pifm.c:582:4: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
    for (int i=0; i<1024; i++)
    ^
pifm.c:582:4: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
pifm.c:594:6: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
      for (int i=0; i<4096/sizeof(struct CB); i++) {
       @^

>

@ghost
Copy link

ghost commented Oct 21, 2016

Everything up to date

sudo apt-get install sox libsox-fmt-all Reading package lists... Done Building dependency tree Reading state information... Done libsox-fmt-all is already the newest version. sox is already the newest version.

Verifying ffmpeg with command ffmpeg

`ffmpeg
ffmpeg version N-82056-ge3196b6 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
libavutil 55. 32.100 / 55. 32.100
libavcodec 57. 63.103 / 57. 63.103
libavformat 57. 52.100 / 57. 52.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 64.100 / 6. 64.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 2.100 / 2. 2.100
libpostproc 54. 0.100 / 54. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
`

@yo3hjv
Copy link

yo3hjv commented May 3, 2018

Same problem here!!! Any progress?

@osman-mohamad
Copy link

me too

@osman-mohamad
Copy link

I can not play mp3 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants