[Pianod] Pianod2, Internal Server Error

Michael myntath at gmail.com
Sun Apr 26 16:18:30 PDT 2015


I am on Raspbian (Jessie) and my gcc is 4.9 which may have helped. I also
had compiled the latest libav from source.

On 19 April 2015 at 08:42, Peter Li <chinasaurli at gmail.com> wrote:

> What raspi distro are you on?
>
> I had to make some minor changes to fundamentals.cpp to get it to build
> under gcc4.7.
>
> But I'm not able to get audiooutput.cpp to build, apparently due to my
> libavfilter being too old and buffersink.h not having
> av_buffersink_get_frame.
>
> On Fri, Apr 10, 2015 at 5:07 AM, none none <myntath at gmail.com> wrote:
>
>> Thanks for the tips, I was on ffmpeg. Building LibAV and recompiling with
>> that has solved the problem! I do receive the following warning still:
>>
>> [resample @ 0x7f009808a2a0] First timestamp is missing, assuming 0.
>>
>> But there seems to be no ill effects.
>>
>> Before trying LibAV I also commented out the three lines you suggested
>> (in mediaunits not audiounits) which does get everything running. The
>> volume can't be set though as might be expected.
>>
>> ./pianod_unittest filesystem_playback gave the following:
>>
>>
>> tail: cannot open ‘+2’ for reading: No such file or directory
>> ==========================================================
>> Start of test filesystem_playback
>> ==========================================================
>> 2015-04-10 21:39:13: fb_utility.c:233 (fb_init_tls_support):
>> TestData/pianod2/x509-server.pem / TestData/pianod2/x509-server-key.pem:
>> gnutls_certificate_set_x509_key_file: Error while reading file.
>> 2015-04-10 21:39:13: TestData/pianod2/passwd: Userdata file not readable
>> (probably doesn't exist).
>> 2015-04-10 21:39:13: passwd: Userdata file not readable (probably doesn't
>> exist).
>> 2015-04-10 21:39:13: fb_service.c:107 (fb_setup_socket): bind: Address
>> already in use (IP6 port 5180)
>> 2015-04-10 21:39:13: fb_service.c:107 (fb_setup_socket): bind: Address
>> already in use (IP6 port 5181)
>> 2015-04-10 21:39:14: TestData/pianod2/filesystem-admin.xml: Userdata file
>> not readable (probably doesn't exist).
>> 2015-04-10 21:39:14:
>> /home/michael/pianod/pianod2/src/mediaunits/filesystem/._cookies.mp3:
>> Missing or corrupt audio tag data
>> Pattern okay (2=2): '111 .*'
>> Pattern okay (1=1): '114.*Cookies'
>> [mp3 @ 0x39c1860] Estimating duration from bitrate, this may be inaccurate
>> Input #0, mp3, from
>> '/home/michael/pianod/pianod2/src/mediaunits/filesystem/cookies.mp3':
>>   Metadata:
>>     title           : Cookies
>>     artist          : Red Brick Productions
>>     TCM             : Michelle Daemon
>>     encoded_by      : iTunes 12.1.0.50
>>     genre           : Words
>>     date            : 2015
>>   Duration: 00:00:02.77, start: 0.000000, bitrate: 54 kb/s
>>     Stream #0:0: Audio: mp3, 44100 Hz, mono, s16p, 48 kb/s
>> [volume @ 0x7fd0a402cae0] Value 1.000000 for parameter 'volume' out of
>> range [0 - 0]
>> Pattern okay (2=2): '111 .*'
>> Test passed.
>>
>>
>>
>> ==========================================================
>> Test Summary
>> ==========================================================
>> Tests were performed with:
>>     WORKING_TAIL=false
>>
>> Requested tests passed.
>>
>>
>> I hope this is useful.
>>
>> Thank you for helping me get pianod2 up and running. Now I can give it a
>> proper run through and have some fun trying out all the new goodies. If I
>> can help with any further tests on this please let me know.
>>
>> Cheers,
>> Michael
>>
>> On 10 April 2015 at 07:29, Perette Barella <perette at barella.org> wrote:
>>
>>> In the build directory, what’s the result of:
>>> ./pianod_unittest filesystem_playback
>>> (You should get an audio message about cookies.)
>>>
>>> libav, right?  Not ffmpeg?
>>>
>>> Comment lines 358–360 in src/audiounits/audio/audiooutput.cpp:
>>>         if (status < 0) {
>>>             throw AudioException ("avfilter_graph_send_command",
>>> status);
>>>         }
>>> I think the volume isn’t setting, and throwing an exception and aborting
>>> playback is too aggressive a response.
>>>
>>> Let us know how that goes.
>>>
>>> Perette
>>>
>>> --
>>> Perette Barella • perette at barella.org • 585-286-1312
>>> 176 Middlesex Road, Rochester NY 14610
>>>
>>> On 2015年04月09日, at 8:09, none none <myntath at gmail.com> wrote:
>>>
>>> Hi,
>>>
>>> I thought I would try out pianod2. So far I haven't had much success
>>> yet. I managed to compile and install without too many hassles on both my
>>> main Ubuntu machine and my raspberry pi (which I usually use for pianod).
>>> The tone generator works and Pandora seems to "almost" work.
>>>
>>> Pandora songs and details load and I have checked the links pianod2 is
>>> retrieving and these all seem valid but every track encounters an Internal
>>> Server Error (500). I also get:-
>>>
>>> [volume @ 0x7f4b14724500] Value 1.000000 for parameter 'volume' out of
>>> range [0 - 0]
>>>
>>> on the server at the same time, same problem on both machines. After a
>>> few dozen tracks pianod gives up with:-
>>>
>>> [volume @ 0x7f4b147b0440] Value 1.000000 for parameter 'volume' out of
>>> range [0 - 0]
>>> 2015-04-09 21:51:45: 500 Internal server error
>>> 2015-04-09 21:51:47: Playlist manager Pianod mix did not provide random
>>> tracks
>>> 2015-04-09 21:51:47: 501 Nothing to play
>>>
>>> I'm not quite sure how to go about tackling this and any help would be
>>> appreciated.
>>>
>>> Also I've started building an Android client for pianod which I will put
>>> up on github soon but would like to add support for pianod2 once I get it
>>> up and running.
>>>
>>> Cheers,
>>> Michael
>>> _______________________________________________
>>> Pianod mailing list
>>> Pianod at lists.deviousfish.com
>>> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>>>
>>>
>>>
>>> _______________________________________________
>>> Pianod mailing list
>>> Pianod at lists.deviousfish.com
>>> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>>>
>>>
>>
>> _______________________________________________
>> Pianod mailing list
>> Pianod at lists.deviousfish.com
>> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>>
>>
>
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20150427/d7049c37/attachment-0001.htm>


More information about the Pianod mailing list