As for the randomly stopping: I found that forked-daap would crash
when it tried to scan certain files. I put logging on 'spam', and then
removed (or I could have moved) the last file it scanned before it
crashed.
As for setting it to start on bootup: I had the same problem on the
web interface, but I was able ssh in and chmod +x the /etc/init.d
file. Is that dangerous? Curious why I could do it on the shell, but
not on the web.
> --
> You received this message because you are subscribed to the Google Groups "Alt-F" group.
> To post to this group, send email to al...@googlegroups.com.
> To unsubscribe from this group, send email to alt-f+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/alt-f?hl=en.
>
>
forked-daap needs avahi-daemon who needs dbus.
Make sure they are running, first dbus, then avahi-daemon, then forked-daapd.
On the cmd line:
rcdbus start
rcavahi-daemon start
rcforked-daapd start
to stop them all, proceed in the reverse order.
Notice that dbus is not an end-user service, it does not appear in any of the
web pages.
Also, mt-daapd is incompatibe with forked-daapd, so don't start it.
I'm changing how the initscripts infrastructure works to accomplish this
automatically, but it is not something that can be easily changed.
> Default puts forked log file in /var/log/forked
That is the standard. In B7 you can access all log files from the web
interface.
> which is not under Alt-f directory
> so you can't get to it via the samba share,
Don't do that... read the README.txt in the ALt-F directory.
> which is
> kinda a hassle, perhaps its worth mapping that, note that the database
> file is mapped to /var/lib/daapd which holds song3.db
That is also standard, /var/lib is where package "users" has its "home"
directory, for persistent storage.
> Had lots of trouble with the iphone remote, until I read on the
> authors site that remote 2.0 is not supported yet. No way to
> downgrade to ver 1.3.3.3 so will have to wait for forked to support
> the new one and for the new forked to make it over to alt-
> f.......hmmmm now found http://forum.qnap.com/viewtopic.php?f=177&t=37472
> where it's been put on QNAP, it suggests remote v2 is supported, is
> the ALT-F an older version of forked?
No, it is the latest stable release.
Perhaps the QNAP version is build from the dev version?
> I've made the logging more verbose and get this:
>
> [2011-02-18 21:13:49] remote: Adding Remote pin data: name 'Gitte',
> pin '9788'
> [2011-02-18 21:13:49] remote: Remote 'Gitte' found
> [2011-02-18 21:13:49] db: Running query 'SELECT * FROM inotify
> WHERE wd = 4;'
> [2011-02-18 21:13:49] scan: File event: 0x8, cookie 0x0, wd 4
> [2011-02-18 21:13:49] remote: Adding Remote pin data: name 'Gitte',
> pin '9788'
> [2011-02-18 21:13:49] remote: Remote 'Gitte' found
>
> but the remote on the iphone doesn't register that it's been
> recognised, so not sure where to go from there, there doesn't seem to
> be any support forums for forked.
>
> Without remote I don't think I can get airport express playing as
> don't know how to play anything without the remote, hmmm probably
> there are some manual commands, but can't find these anywhere. It
> says it needs ipv6 enabled, so have set that to yes on avahi conf to
> prepare.
Alt-F does not has IPV6 builtin... and the QNAP link you post above says to
enable IPV6 on the box.
But the forked README only says:
You should enable IPv6 on the host machine and the AirTunes devices for
AirTunes to work properly. You do not need to do any configuration on the
host machine
But it continues:
Avahi returns IPv4 link-local addresses more often than not when discovering
AirTunes devices. Any device discovered with only an IPv4 link-local address
will be ignored as it cannot work anyway.
Puzzled.
.
I have to see what consequences might arise to build Alt-F with IPV6
Thanks for your research and links, you saved me some time :-)
You found a bug.
You can't also set avahi-daemon or mt-daapd to start on boot.
They share a '-' in their names, and the shell doesn't accept a hyphen as a
valid character in a variable name.
Thanks
Unfortunately the indicated patch does not apply cleanly to 0.12.
> Looking at the discussion quoted it says either to build from trunk or
> wait for 0.13 (whever that is).
>
> I presume you picked up the stable rather than building from trunk?
> Would be a sensible thing to do.
If I only had forked-daapd to maintain, and an Mac and AirTunes, it wouldn't
be that hard to keep in sync with development, so yes, I'm using stable.
I have to see if the indicated patch can be hand-tuned to be applied to 0.12
Thanks again for the research and links.
> Haim
Its difficult to say if problems come from Alt-F build or are from forked
itself.
Unless there is a 0.12 binary release for linux or MSW to use as a reference.
As I said in the annoucement, some dirty patches have been applied to forked
(and the uClibc system library), to enable building it on Alt-F, and its
difficult to say if problems arise from them.
How severe are the issues? Is forked still usable?
> As for setting it to start on bootup: I had the same problem on the
> web interface, but I was able ssh in and chmod +x the /etc/init.d
> file. Is that dangerous? Curious why I could do it on the shell, but
> not on the web.
I have already answered that question.
You have done the right thing:
chmod +x /etc/init.d/S<whatever>
loadsave_settings -sf
Thanks
On Tuesday, February 22, 2011 09:00:04 Hamish Campbell wrote:
> On Feb 21, 1:53 am, Joao Cardoso <whoami.jc...@gmail.com> wrote:
> > On Feb 20, 9:25 pm, bobcote <baril...@gmail.com> wrote:
> > > Does the included Forked-daapd in experimental have the ability to
> > > transcode Flac like this one for ffp ? (http://files.hesse-n.com/
> > > ch3snas/)
> >
> > It was compiled with flac and musepack support, but I'v not tried it.
> > Will you?
>
> I guess that transcoding only occurs during playing out locally (sound
> card) or sending to airport express. If itunes is playing it I guess
> the itunes client is transcoding (or playing natively) ?
I'm not sure about that.
The readme says:
It uses ffmpeg to extract metadata and
decode the files on the fly when the client doesn't
support the format.
I setup the force_transcode on the configuration file, together with the loglevel to info (or warning?) and saw in the log a transcoding message.
The message implied that ffmpeg was doing the transcoding, but there was no ffmpeg process running, and I could listen the flac (and others) encoded tracks. (this was not done with the packages in the experimental feed, see bellow)
The flac track appears in MSW-iTunes as a wav file, as do vob files (that can be listen); aac and m4a files can't be played, as well as wma (Microsoft ASF) ones... odd!
When invoked from the cmdline ffmpeg-0.6.1 can decode them all.
oh well
> If this is the case I'll need to wait until/if the airport express is
> working to try this.
Actually I'm in the final tests for IPV6, and it seems to be working fine.
Most packages that support ipv6 were recompiled to support it.
Looks like Apple is promoting ipv6, using it in their products.
I have also applied to forked the patch that you found, and I hope that with it plus ipv6 you can use airport with remote V2. (Not that I know what I'm talking about :-! )
A negative side effect of the patch is that one of the apps I use in linux to test forked, banshee, ceased working, with a message saying that probably the server was iTunes 7 and that some changes made by Apple had the purpose of making difficult to use it with non-Apple apps...
> Oh, and I agree, maintaining patches etc for this package should be
> kept to a minimum, how about we wait for the 0.13 release of forked
> before you use more time on remote and airport express (as much as I
> would like to play with it :) )
Too late, it's done :-)
Right.
But other packages have been rebuilt, because of ipv6. Avahi is one of them,
you should reinstall it also, at least for the airport tests.
> then I tried ipv6 firmware again.
>
> Issues:
>
> Remote still not working. Still getting the same logs saying that it
> found the iphone and has added it (perhaps the is an inotify log there
> too?), but then nothing happening on the iphone.
Perhaps the forked patch you found should be applied to the current (at the
time) development tree, and not to 0.12?
Have you increase forked log level, editing /etc/forked-daapd.conf? to
warning, or even info?
> Stop/start of forked via the web screens not working, comes back with
> a message saying it was requested but slow to finish. 'ps' still
> shows forked running. Using rcforked_daapd stop (noticed that '-'
> changed to '_') replies that it is successful however 'ps' still
> showing forked.
Some daemons take too long to stop after being signaled to do so. minidlna
might take up to one minute! fuppes also takes some time. But forked uses to
be fast -- wasn't it busy indexing folders?
You can see the log in the System->Utilities->logs web page.
> Reboot and poweroff on ipv6 firmware doens't seem to be working via
> web screens. Works fine via the front button.
You found a bug. Corrected now. Thanks.
> Didn't try the airport yet....though not sure how one chooses that
> output should go there, maybe it automatically does if it has been
> found? Don't think the remote will have any selection of speakers.
I can't help you here.
> Oh and presumably due to the change to '_' for forked, the new
> experimental package won't start in B6. off to bed now, but perhaps I
> can run it with command line??
As usual with the experimental feed, when running B6 you need the "common"
file in the /etc/init.d/ directory. But the "common" file that you can find in
the "Packages Update" topic is not valid anymore, I will post the current one
under the same topic.
But the updated forked does not work on B6. I noticed it now when trying to
reproduce your findings. I will fix it and announce in the Packages topic.
> Might need some guidance now as feeling I might be making some
> mistakes in my testing.
You are doing things just fine.
You could get more help, regarding remote or airport, in some forked forum.
I couldn't reproduce that.
The install script creates the "user" and its directory...
> Then on next start of forked the 'songs3.db' file was created
> successfully and I could see my music library in rythmbox on my ubuntu
> machine.
>
> in case its interesting:
> have the 'common' file from your post above. avahi and forked start
> and stop fine.
> deinstalled packages and then reinstalled again before trying the b7,
> experimental feed of course.
That is not really necessary, although desirable.
It is possible to force a reinstall of a package keeping its configuration
files. After changing the feed to the experimental feed and updating the
package list, type in the command line:
ipkg -force-reinstall -force-defaults install <pkgname>
and the other way around to return to the default feed. This should only be
done when the package version is the same.
> Next up is to try the remote on the iPhone, but might have to be
> another night.
>
> Oh and being able to access the log files in the web admin screens is
> very convenient, nice :)
>
> Haim
On Tuesday, March 22, 2011 09:05:47 Hamish Campbell wrote:
> Didn't have any luck with the remote, but afterwards I saw I had done
> something in the wrong order.
If you still don't succeed in the next attempt, try turning IPv6 on in Setup-
>Host, no reboot is needed (only to turn it off)
> Will try again tonight I hope.
>
> Oh and shutdown and reboot from the b7 web admin wasn't working,
Bug now fixed, thanks.
Joao, you might want to check how many people are actually interested
in this and weigh up against how much work it is. I seem to be the
only one trying this out, so perhaps I'm the only one who will use it!
[2011-04-03 12:39:12] main: Forked Media Server Version 0.14 taking off
[2011-04-03 12:39:12] main: mDNS init
[2011-04-03 12:39:12] mdns: Avahi state change: Client running
[2011-04-03 12:39:15] player: AirTunes 00145173D063@Home Stereo: no am field in TXT record!
[2011-04-03 12:39:35] remote: Remote 'Brady's iPhone' not known from mDNS, ignoring
[2011-04-04 19:16:21] remote: Invalid Remote pairing file /mnt/sda2/ClineShare/Media/Music/iTunes-NAS/iTunes Music/bphone.remote: device name too long or missing pin
[2011-04-04 22:37:28] scan: Could not lstat() '/mnt/sda2/ClineShare/Media/Music/iTunes-NAS/iTunes Music/bphone6.remote': No such file or directory
I only had a quick look late last night.
1. Reinstalled forked by uninstalling, updating packages and
installing again (only forked package, should I have done any
others?).
I'm still experiencing that /var/lib/daapd is not being
created,
so I need to create this and chown to daapd user. Forgot to
check the log to see if it tries to do this.
2. No change to Iphone Remote, not connecting, same log entries.
3. No change to Tunes Remote on android ( are we using the same one,
Tunes Remote by Jeff Sharkley...
note that I don't think this is
maintained any more, maybe I should try another one...any suggestions
anyone?). When I select the library I think a passcode screen should
come up, but nothing comes up at all, just goes to a blank screen with
'play' controls.
4. Installed Daapd music player on my android, it worked well.
5. I don' t think Iphone and Android remotes (i.e. NOT daapd music
player) can stream music, they just control the library and set it
playing where it is install. So makes some sense that you can't play
anything when there is no output to play to. So if I can get to where
you are then there's a good chance my airport express can be connect
too (thats the idea from the start)
and I can play via that. So no
need for alsa for me.....I also don't have a usb soundcard I could
play out of the dns323 to.
...
So it seems my main problem there is that the remote can't find and
display my tracks properly. Did that work for you ok Joao? I had a
mix of mp3's and mp4's.
Thats all I can think of for the moment. Have got a bit of a flu, so
am off to bed :)
[2012-12-31 14:27:39] db: Running query 'SELECT * FROM inotify WHERE wd = 2;'
[2012-12-31 14:27:39] scan: File event: 0x8, cookie 0x0, wd 2
[2012-12-31 14:27:39] remote: Adding Remote pin data: name 'APiPhone', pin '5409'
[2012-12-31 14:27:39] remote: Remote 'APiPhone' found--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To post to this group, send email to al...@googlegroups.com.
To unsubscribe from this group, send email to alt-f+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/alt-f?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/alt-f/-/6UANq6RAjgcJ.
I just gave this another shot and so far it isn't working, meaning iTunes on my PC does not see the share. I don't have interest in using remote. The log entries I see make me thing it's still scanning through the contents of the directory I shared. But thjat can't be still happening since it's been a few days. Does the share show up when it's scanning or does it need to finish first?