View Single Post
Posts: 3,074 | Thanked: 12,964 times | Joined on Mar 2010 @ Sofia,Bulgaria
#743
Originally Posted by marbleuser View Post
that's exactly the problem, it seems without the 720p codecs, all is fine. looking through the source code the 'connection error' is misleading, and appears if it's unable to play 3 songs in a row.

......snip.....
if (!audio_started) http_req_success = FALSE;
......snip.............
static int failed_tracks = 0;
if (http_req_success) {
failed_tracks = 0;
controller_skip_track ();
} else if (++failed_tracks == 3) {
failed_tracks = 0;
controller_stop_playing ();
controller_show_warning ("Connection error");
} else {
controller_skip_track ();
}
return FALSE;


i'm using the vegalume from the repos.
Well, that is what i got when run "-DDEBUG" compiled vagalume
Code:
Dec 16 15:02:22 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Initializing D-Bus...
Dec 16 15:02:23 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Unable to read /home/user/.vagalume/servers.xml, skipping
Dec 16 15:02:23 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Parsing server file /opt/vagalume/servers.xml
Dec 16 15:02:23 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Parsed server: Libre.fm
Dec 16 15:02:23 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Creating GStreamer element mp3parse: success
Dec 16 15:02:23 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Creating GStreamer element nokiamp3dec: success
Dec 16 15:02:23 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Creating GStreamer element pulsesink: success
Dec 16 15:02:39 Nokia-N900 kernel: [55686.843902] kb_lock (GPIO 113) is now closed
Dec 16 15:02:40 Nokia-N900 kernel: [55686.976409] kb_lock (GPIO 113) is now open
Dec 16 15:02:45 Nokia-N900 kernel: [55692.647857] slide (GPIO 71) is now open
Dec 16 15:02:50 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://alpha.libre.fm/2.0/?api_key=db2c2184ad684eac4adce3ed1bb4a3a0&authToken=c17bd1feb223038fa289c5aed2691c66&method=auth%2EgetMobileSession&username=freemangordon&api_sig=d676beb6c7e2b650a145a58bcc63f574
Dec 16 15:02:51 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://alpha.libre.fm/radio/handshake.php?version=1.5&platform=linux&username=freemangordon&passwordmd5=<hidden>
Dec 16 15:02:52 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://alpha.libre.fm/radio/adjust.php?session=2538f7153d9d48a5ea799ff76601c0ae&lang=en&url=lastfm%3A%2F%2Fglobaltags%2Frock
Dec 16 15:02:52 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://alpha.libre.fm/2.0/?api_key=db2c2184ad684eac4adce3ed1bb4a3a0&limit=0&method=user%2EgetFriends&recenttracks=0&user=freemangordon
Dec 16 15:02:52 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Unable to get friend list
Dec 16 15:02:52 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting friend list
Dec 16 15:02:52 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://alpha.libre.fm/radio/xspf.php?sk=2538f7153d9d48a5ea799ff76601c0ae&discovery=0&desktop=1.5
Dec 16 15:02:52 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://alpha.libre.fm/2.0/?api_key=db2c2184ad684eac4adce3ed1bb4a3a0&method=user%2EgetTopTags&user=freemangordon
Dec 16 15:02:53 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Tag list ready
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://gigue.rrbone.net/310833.ogg2
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error: No valid frames found before end of stream
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting URL http://gigue.rrbone.net/310833.ogg2
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://gigue.rrbone.net/263659.ogg2
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error: No valid frames found before end of stream
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting URL http://gigue.rrbone.net/263659.ogg2
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://gigue.rrbone.net/141730.ogg2
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error: No valid frames found before end of stream
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting URL http://gigue.rrbone.net/141730.ogg2
Dec 16 15:02:55 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://api.jamendo.com/get2/image/album/redirect/?id=48745&imagesize=200
Dec 16 15:02:55 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://gigue.rrbone.net/385639.ogg2
Dec 16 15:02:55 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting URL http://gigue.rrbone.net/385639.ogg2
Dec 16 15:02:55 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error: No valid frames found before end of stream
Dec 16 15:02:55 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL
Dec 16 15:02:55 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting URL
Dec 16 15:02:55 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting cover image
Dec 16 15:02:55 Nokia-N900 vagalume[4064]: GLIB CRITICAL ** default - get_audio_thread: assertion `userdata != NULL && http_pipe[1] > 0' failed
Dec 16 15:03:53 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://alpha.libre.fm/2.0/?api_key=db2c2184ad684eac4adce3ed1bb4a3a0&limit=0&method=user%2EgetFriends&recenttracks=0&user=freemangordon
Dec 16 15:03:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Unable to get friend list
Dec 16 15:03:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting friend list
Dec 16 15:04:54 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://alpha.libre.fm/2.0/?api_key=db2c2184ad684eac4adce3ed1bb4a3a0&limit=0&method=user%2EgetFriends&recenttracks=0&user=freemangordon
Dec 16 15:04:55 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Unable to get friend list
Dec 16 15:04:55 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting friend list
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB DEBUG default - Requesting URL http://gigue.rrbone.net/310833.ogg2
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error: No valid frames found before end of stream
Dec 16 15:02:54 Nokia-N900 vagalume[4064]: GLIB WARNING ** default - Error getting URL http://gigue.rrbone.net/310833.ogg2


The above sequence of messages comes from http.c and has nothing to do with gstreamer, it is curl that fails for some reason. Are you sure after you restore stock codecs vagalume works ok? If that is the case, what exactly do you restore to make it working.

BTW opening the same url with gstreamer0.10-launch works like charm so gstreamer is not broken.

Code:
gst-launch-0.10 playbin2 uri=http://gigue.rrbone.net/310833.ogg2
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Prerolled, waiting for buffering to finish...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 10070404056 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
 

The Following 2 Users Say Thank You to freemangordon For This Useful Post: