aurena
aurena copied to clipboard
Song not playing
Hi
I can't seem to get a song to play.
On the server I created a conf file to a playlist with one filepath to an mp3
ie
[server] port=5457 playlist=/home/glenn/playlist.txt database=/home/glenn/media.db
running ./src/aurena-server test.conf
shows
Server ready on port 5457 ** Message: Adding service 'Aurena media server' on port 5457 media DB ready at /home/glenn/media.db with 1 entries Finished scanning playlist. Read 1 entries Service 'Aurena media server' successfully established. New player id 1
I also ran a client on a raspberry pi
ie
./src/aurena-simple-client In try_reconnect() Looking for new broadcast servers In connect_to_server(sonic.local,5457), client->flags 1, connecting 0 Attemping to connect player to server sonic.local:5457 In connect_to_server(sonic.local,5457), client->flags 1, connecting 1 Creating net clock at 192.168.1.6:58930 time 15:38:41.510243313
However, When going to the web interface and playing nothing plays. The server commandline outputs
Base time now 56386142893793
(aurena-server:6113): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
and I see
libsoup-CRITICAL **: soup_message_io_unpause: assertion 'io != NULL' failed
and the client
Debugging info: gstsouphttpsrc.c(1604): gst_soup_http_src_parse_status (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source: Not Found (404), URL: http://sonic.local:5457/resource/1, Redirect to: (NULL) ERROR from element source: Internal data flow error. Debugging info: gstbasesrc.c(2943): gst_base_src_loop (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source: streaming task paused, reason error (-5)
Am I doing anything wrong ?
PS. I was doing this to see how well two systems an sync. I tried my own example using GstNet.NetTimeProvider code at https://github.com/glennpierce/PartyZone/blob/master/partyzone
Music is synced but there is a definite echo which suggests few hundreds of millisecond error ? Do you find the music perfectly synced ?
Thanks
Try running both client and server with GST_DEBUG=3 and look for warnings. Off the top of my head, I'm not why the server would think it has a file available and then fail to return it via HTTP
Sync is generally much better than that. I replied to your comment on my blog too.
Odd. I don't see anything before
(aurena-server:25799): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
when settting GST_DEBUG to 3
In terms of the sync I have no idea why only I seem to hear echo. My network seems ok 64 bytes from partyzone-slave1.home (192.168.1.128): icmp_seq=1 ttl=64 time=0.523 ms 64 bytes from partyzone-slave1.home (192.168.1.128): icmp_seq=2 ttl=64 time=0.635 ms 64 bytes from partyzone-slave1.home (192.168.1.128): icmp_seq=3 ttl=64 time=0.568 ms
As it is meant to be fully synced I will continue debugging.