This forum has been archived. All content is frozen. Please use KDE Discuss instead.

bad sound with last.fm stream

Tags: None
(comma "," separated)
User avatar
solsTiCe
Registered Member
Posts
7
Karma
0

bad sound with last.fm stream

Sun Feb 11, 2007 9:23 am
hi.
i have already filled a bug report http://bugs.kde.org/show_bug.cgi?id=135951 but get no help or attention. :mad:

go to the bug report and listen to the attachement at the bottom of the page to listen to that mess of a sound. You can hear the music but there is many sound artifact. as if it lacks some packet or something like that.

it happened previously with xinelib 1.1.3 and now xinelib 1.1.4 and since amarok 1.4.3. I use now 1.4.5

as i read some post here i may try with xinelib 1.1.2 to see if there is a difference.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: bad sound with last.fm stream

Sun Feb 11, 2007 11:21 am
Try posting some helpful info like debug output etc...
Try helix engine.
Try setting xine engine to alsa or oss, whichever is different to what you're using now.
Can't say I've ever heard this before - it's not amarok itself that produces the sound - it's the engine, so sound production problems will more than likely be a backend problem. Can you play the stream using xine itself? Does it do it for every last.fm stream?

So many questions, so little information provided.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
User avatar
solsTiCe
Registered Member
Posts
7
Karma
0

Re: bad sound with last.fm stream

Sun Feb 11, 2007 12:22 pm
well all my other app works fine with alsa. even in amarok all is fine expect last.fm stream. so the change to oss is not a usefull tip. (i try it anyway and it's the same)

about more info you wanted. i provide what i can: below is the console output from where i run amarok nothing special

and YES it is like that for every last.fm stream and only last.fm stream
i will try helix engine.

and last.fm stream are played very WELL with xine. no problem at all ! i used the url in code snippet below
so you could ruled out the backend problem. [edit]and moreover if i point amarok to same url i used in xine it works too. so something in the pipe of treating last.fm stream cause the problem i have. not the backend or whatever is related to sound.  [/edit]

amarok use a ruby proxy for last.fm stream. could it be that the problem ?

Code: Select all
$ amarok: BEGIN: ScanController::ScanController(CollectionDB*, bool, const QStringList&)
amarok: BEGIN: void ScanController::initIncremental()
amarok:         [ThreadManager] Job completed: UrlUpdateJob. Jobs pending: 0
amarok:         [ScriptManager] Loaded: Web Control
amarok:         [ScriptManager] Loaded: Impulsive
amarok:         [ScriptManager] Loaded: playlist2html.py
amarok:         [ScriptManager] Loaded: PlaylistServer.py
amarok:         [ScriptManager] Loaded: Default
amarok:         [ScriptManager] Loaded: Lyrc
amarok:         [ScriptManager] Auto-running script: Default
amarok:         [ScriptManager] Running script: /opt/kde/share/apps/amarok/scripts/score_default/score_default.rb
amarok:         [ScriptManager] Auto-running script: Lyrc
amarok:         [ScriptManager] Running script: /opt/kde/share/apps/amarok/scripts/lyrics_lyrc/lyrics_lyrc.rb
amarok:         [Scrobbler] Handshake result parsed: challenge=a520954d6663d85faccab4f237b37756, submitUrl=http://87.117.229.205:80/protocol_1.1
amarok:         [Scrobbler] Nothing to schedule
amarok: END__: void ScanController::initIncremental() - Took 0.42s
amarok: END__: ScanController::ScanController(CollectionDB*, bool, const QStringList&) - Took 0.42s
amarok: END__: void App::continueInit() - Took 2.9s
amarok: END__: virtual void ThreadManager::Thread::run() - Took 0.84s
amarok: BEGIN: virtual void ThreadManager::Thread::run()
amarok: BEGIN: virtual bool ScanController::doJob()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.00083s
amarok: END__: virtual bool ScanController::doJob() - Took 0.0016s
amarok: END__: virtual void ThreadManager::Thread::run() - Took 0.0022s
amarok: [ThreadManager] Job completed: CurrentTrackJob. Jobs pending: 0
amarok: [CollectionDB] JobFinishedEvent from Incremental ScanController received.
amarok: [ThreadManager] Job completed: CollectionScanner. Jobs pending: 0
amarok: BEGIN: virtual ScanController::~ScanController()
amarok: END__: virtual ScanController::~ScanController() - Took 0.00038s
amarok: BEGIN: UrlLoader
amarok:   [KDE::ProgressBar::ProgressBar(QWidget*, QLabel*)]
amarok: ERROR: : couldn't create slave : Impossible de créer le module d'entrées/sorties :
klauncher a retourné : Problème de chargement de «amarok "%u"».
amarok:
amarok: BEGIN: virtual void ThreadManager::Thread::run()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.00051s
amarok: END__: virtual void ThreadManager::Thread::run() - Took 0.016s
amarok: BEGIN: void EngineController::play(const MetaBundle&, uint)
amarok:     [controller] Loading URL: lastfm://user/zebul666/neighbours
amarok:     [controller] Connecting to protocol: lastfm
amarok: BEGIN: KURL LastFm::Controller::getNewProxy(QString)
amarok:       [LastFm] Initialising Web Service
amarok: BEGIN: bool LastFm::WebService::handshake(const QString&, const QString&)
amarok: BEGIN: virtual void UrlLoader::completeJob()
amarok: END__: virtual void UrlLoader::completeJob() - Took 0.00012s
amarok:         [ThreadManager] Job completed: UrlLoader. Jobs pending: 0
amarok: END__: UrlLoader - Took 0.067s
amarok:       [virtual KDE::ProgressBar::~ProgressBar()]
amarok:       [xine-engine] XINE_PARAM_EARLY_FINISHED_EVENT disabled
amarok:       [LastFm] result: session=d7421dd93757132ecb3d58ecc3456172
stream_url=http://87.117.229.84:80/last.mp3?Session=d7421dd93757132ecb3d58ecc3456172
subscriber=0
framehack=0
base_url=ws.audioscrobbler.com
base_path=/radio
amarok:       [LastFm] Proxy server using port: 60692
amarok: END__: bool LastFm::WebService::handshake(const QString&, const QString&) - Took 2.5s
amarok:     [LastFm] Changing station:lastfm://user/zebul666/neighbours
amarok: END__: KURL LastFm::Controller::getNewProxy(QString) - Took 3.4s
amarok:   [controller] New URL is http://localhost:60692/lastfm.mp3
amarok: BEGIN: virtual bool XineEngine::load(const KURL&, bool)
amarok:     [xine-engine] Before xine_open() *****
amarok:     [xine-engine] After xine_open() *****
amarok:     [xine-engine] XINE_PARAM_EARLY_FINISHED_EVENT disabled
amarok: END__: virtual bool XineEngine::load(const KURL&, bool) - Took 1.2s
amarok: BEGIN: virtual bool XineEngine::play(uint)
amarok: BEGIN: void EngineSubject::stateChangedNotify(Engine::State)
amarok:       [virtual void Amarok::StatusBar::engineStateChanged(Engine::State, Engine::State)] Line: 153
amarok: BEGIN: virtual void ContextBrowser::engineStateChanged(Engine::State, Engine::State)
amarok: END__: virtual void ContextBrowser::engineStateChanged(Engine::State, Engine::State) - Took 0.00031s
amarok: END__: void EngineSubject::stateChangedNotify(Engine::State) - Took 0.012s
amarok: END__: virtual bool XineEngine::play(uint) - Took 0.012s
amarok: BEGIN: void EngineSubject::newMetaDataNotify(const MetaBundle&, bool)
amarok:     [Moodbar] Resetting moodbar: /zebul666/neighbours
amarok: BEGIN: virtual void ThreadManager::Thread::run()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.00046s
amarok: END__: virtual void ThreadManager::Thread::run() - Took 0.0055s
amarok: END__: void EngineSubject::newMetaDataNotify(const MetaBundle&, bool) - Took 0.11s
amarok: END__: void EngineController::play(const MetaBundle&, uint) - Took 4.7s
amarok: [ThreadManager] Job completed: CurrentTrackJob. Jobs pending: 0
amarok: [LastFm] AMAROK_PROXY: host 87.117.229.84
amarok: [LastFm] AMAROK_PROXY: 60692
amarok: [LastFm] AMAROK_PROXY: running with port: 80 and host: 87.117.229.84
amarok: [LastFm] AMAROK_PROXY: "GET /lastfm.mp3 HTTP/1.0\r\n"
amarok: [LastFm] AMAROK_PROXY: "GET http://87.117.229.84/last.mp3?Session=d7421dd93757132ecb3d58ecc3456172 HTTP/1.1\r\nHost: 87.117.229.84:80\r\n\r\n"
amarok: [LastFm] AMAROK_PROXY: GET /lastfm.mp3 HTTP/1.0
amarok: [LastFm]  but sending GET http://87.117.229.84/last.mp3?Session=d7421dd93757132ecb3d58ecc3456172 HTTP/1.1
amarok: [LastFm] Host: 87.117.229.84:80
amarok: [LastFm]
amarok: [LastFm] AMAROK_PROXY: COPY from amarok -> serv
amarok: [LastFm] AMAROK_PROXY: cp_to_empty_outward( income => #<TCPSocket:0xb7f5e5e4>, output => #<TCPSocket:0xb7f5e454>
amarok: [LastFm] AMAROK_PROXY: Host: localhost:60692
amarok: [LastFm] AMAROK_PROXY: data sent.
amarok: [LastFm] AMAROK_PROXY: Found xine user agent version 1.1.4
amarok: [LastFm] AMAROK_PROXY: User-Agent: xine/1.1.4
amarok: [LastFm] AMAROK_PROXY: data sent.
amarok: [LastFm] AMAROK_PROXY: Accept: */*
amarok: [LastFm] AMAROK_PROXY: data sent.
amarok: [LastFm] AMAROK_PROXY: Icy-MetaData: 1
amarok: [LastFm] AMAROK_PROXY: data sent.
amarok: [LastFm] AMAROK_PROXY:
amarok: [LastFm] AMAROK_PROXY: data sent.
amarok: [LastFm] AMAROK_PROXY: COPY from serv -> amarok
amarok: [LastFm] AMAROK_PROXY: cp_to_empty_inward( income => #<TCPSocket:0xb7f5e454>, output => #<TCPSocket:0xb7f5e5e4>
amarok: [LastFm] AMAROK_PROXY: HTTP/1.1 200 OK
amarok: [LastFm] AMAROK_PROXY: Cache-control: no-cache
amarok: [LastFm] AMAROK_PROXY: Content-type: audio/mpeg
amarok: [LastFm] AMAROK_PROXY: Pragma: no-cache
amarok: [LastFm] AMAROK_PROXY: Server: last.fm Streaming Server
amarok: [LastFm] AMAROK_PROXY: Transfer-Encoding: chunked
amarok: [LastFm] AMAROK_PROXY:
amarok: [LastFm] AMAROK_PROXY: Before cp_all()
amarok: [LastFm] AMAROK_PROXY: cp_all( income => #<TCPSocket:0xb7f5e454>, output => #<TCPSocket:0xb7f5e5e4>
amarok: [LastFm] AMAROK_PROXY: SYNC
amarok: BEGIN: void LastFm::WebService::metaDataFinished(int, bool)
amarok:   [LastFm] price=
shopname=
clickthrulink=
streaming=true
discovery=-1
station=zebul666's Neighbour Radio
station_url=http://www.last.fm/user/zebul666/
artist=Dr. Dre
artist_url=http://www.last.fm/music/Dr.+Dre
track=Still D.R.E.
track_url=http://www.last.fm/music/Dr.+Dre/_/Still+D.R.E.
album=2001 Instrumental
album_url=http://www.last.fm/music/Dr.+Dre/2001+Instrumental
albumcover_small=http://images.amazon.com/images/P/B000023VR6.01.THUMBZZZ.jpg
albumcover_medium=http://images.amazon.com/images/P/B000023VR6.01.MZZZZZZZ.jpg
albumcover_large=http://images.amazon.com/images/P/B000023VR6.01.LZZZZZZZ.jpg
trackduration=274
radiomode=1
recordtoprofile=1
amarok:
amarok: END__: void LastFm::WebService::metaDataFinished(int, bool) - Took 0.0037s
amarok: BEGIN: void LastFm::WebService::fetchImageFinished(KIO::Job*)
amarok: BEGIN: void EngineSubject::newMetaDataNotify(const MetaBundle&, bool)
amarok:     [Scrobbler] It's still the same track.
amarok:     [Moodbar] Resetting moodbar: /zebul666/neighbours
amarok:     [Moodbar] Resetting moodbar:
amarok: BEGIN: virtual void ThreadManager::Thread::run()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.00075s
amarok: END__: virtual void ThreadManager::Thread::run() - Took 0.033s
amarok: END__: void EngineSubject::newMetaDataNotify(const MetaBundle&, bool) - Took 0.11s
amarok: END__: void LastFm::WebService::fetchImageFinished(KIO::Job*) - Took 0.17s
amarok: [xine-engine] XINE_PARAM_EARLY_FINISHED_EVENT disabled
amarok: [ThreadManager] Job completed: CurrentTrackJob. Jobs pending: 0
amarok: [Scrobbler] Suggestions retrieved (30)
amarok: [CollectionDB] Received similar artists
amarok: BEGIN: virtual void ThreadManager::Thread::run()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.0025s
amarok:   [ThreadManager] Job completed: SimilarArtistsInsertionJob. Jobs pending: 0
amarok: BEGIN: virtual void ThreadManager::Thread::run()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.00081s
amarok: END__: virtual void ThreadManager::Thread::run() - Took 0.2s
amarok:   [ThreadManager] Job completed: CurrentTrackJob. Jobs pending: 0
amarok: END__: virtual void ThreadManager::Thread::run() - Took 0.28s
amarok: [Scrobbler] Won't submit: No artist, no title, or less than 30 seconds.
amarok: [CollectionDB] track ended: lastfm://user/zebul666/neighbours
amarok: BEGIN: void EngineSubject::stateChangedNotify(Engine::State)
amarok:   [Moodbar] Resetting moodbar:
amarok: BEGIN: virtual void ContextBrowser::engineStateChanged(Engine::State, Engine::State)
amarok: END__: virtual void ContextBrowser::engineStateChanged(Engine::State, Engine::State) - Took 0.00039s
amarok:   [Moodbar] Resetting moodbar:
amarok: BEGIN: virtual void ThreadManager::Thread::run()
amarok: BEGIN: SqliteConnection::SqliteConnection(const SqliteConfig*)
amarok: END__: SqliteConnection::SqliteConnection(const SqliteConfig*) - Took 0.00092s
amarok: END__: void EngineSubject::stateChangedNotify(Engine::State) - Took 0.054s
amarok:   [LastFm] AMAROK_PROXY: error from output.write, Connection reset by peer
amarok:   [LastFm] AMAROK_PROXY: ["/opt/kde/bin/amarok_proxy.rb:109:in `write'", "/opt/kde/bin/amarok_proxy.rb:109:in `safe_write'", "/opt/kde/bin/amarok_proxy.rb:164:in `cp_all_inward'", "/opt/kde/bin/amarok_proxy.rb:162:in `loop'", "/opt/kde/bin/amarok_proxy.rb:162:in `cp_all_inward'", "/opt/kde/bin/amarok_proxy.rb:98:in `initialize'", "/opt/kde/bin/amarok_proxy.rb:228:in `new'", "/opt/kde/bin/amarok_proxy.rb:228"]
amarok:   [LastFm] AMAROK_PROXY: error from o.write, unexpected break
amarok:   [LastFm] exiting
amarok: BEGIN: virtual LastFm::WebService::~WebService()
amarok: END__: virtual LastFm::WebService::~WebService() - Took 0.00011s
amarok:   [ThreadManager] Job completed: CurrentTrackJob. Jobs pending: 0
amarok: END__: virtual void ThreadManager::Thread::run() - Took 0.59s
amarok: BEGIN: virtual App::~App()
amarok:   [CollectionDB] track ended:
amarok:   [static void PluginManager::unload(Amarok::Plugin*)]
amarok:   [PluginManager] Unloading library: libamarok_void-engine_plugin
amarok: BEGIN: void Playlist::saveXML(const QString&)
amarok: END__: void Playlist::saveXML(const QString&) - Took 0.0017s
amarok: BEGIN: virtual ContextBrowser::~ContextBrowser()
amarok: END__: virtual ContextBrowser::~ContextBrowser() - Took 0.017s
amarok:   [virtual CollectionView::~CollectionView()]
amarok: BEGIN: virtual PlaylistBrowser::~PlaylistBrowser()
amarok: END__: virtual PlaylistBrowser::~PlaylistBrowser() - Took 0.00017s
QObject::disconnect: Unexpected null parameter
QObject::connect: Cannot connect (null)::activePartChanged( KParts::Part * ) to KHTMLPart::slotActiveFrameChanged( KParts::Part * )
amarok:   [MediaBrowser] having to remove 1 devices
amarok: BEGIN: void MediaBrowser::removeDevice(MediaDevice*)
amarok:     [MediaBrowser] remove device: type=dummy-mediadevice
amarok: BEGIN: void MediaBrowser::unloadDevicePlugin(MediaDevice*)
amarok: END__: void MediaBrowser::unloadDevicePlugin(MediaDevice*) - Took 0.00049s
amarok: END__: void MediaBrowser::removeDevice(MediaDevice*) - Took 0.001s
amarok: BEGIN: virtual ScriptManager::~ScriptManager()
amarok: END__: virtual ScriptManager::~ScriptManager() - Took 0.0032s
amarok: BEGIN: virtual ThreadManager::~ThreadManager()
amarok:     [ThreadManager] Waiting on thread...
amarok:     [ThreadManager] Waiting on thread...
amarok: END__: virtual ThreadManager::~ThreadManager() - Took 0.00022s
amarok:   [static void PluginManager::unload(Amarok::Plugin*)]
amarok:   [xine-engine] xine closed
amarok:   [xine-engine] Scope statistics:
amarok:   Average list size: 0
amarok:   Buffer failure:    0%
amarok:   [PluginManager] Unloading library: libamarok_xine-engine
amarok: END__: virtual App::~App() - Took 0.36s
amarok: BEGIN: virtual CollectionDB::~CollectionDB()
amarok: END__: virtual CollectionDB::~CollectionDB() - Took 0.00013s
amarok: [virtual EngineController::~EngineController()]

Last edited by solsTiCe on Sun Feb 11, 2007 12:46 pm, edited 1 time in total.
User avatar
solsTiCe
Registered Member
Posts
7
Karma
0

Re: bad sound with last.fm stream

Wed Feb 14, 2007 8:20 pm
the help forum is not very helpfull  :biggrin:

how can i do a debug trace or the blurb you talked about ? assuming someone will care about it after i 've done that .
User avatar
solsTiCe
Registered Member
Posts
7
Karma
0

Re: bad sound with last.fm stream

Thu Feb 15, 2007 9:45 pm
it does work either with xine-lib 1.1.2

where are you dangle_wtf.
i have provided some information
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: bad sound with last.fm stream

Thu Feb 15, 2007 10:00 pm
does, or doesn't?

to get output, compile and install amarok yourself with --debug=full as part of the configure parameters. You should be able to find instructions for this on the wiki - along with how to provide trouble-shooting information.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
User avatar
solsTiCe
Registered Member
Posts
7
Karma
0

Re: bad sound with last.fm stream

Fri Feb 16, 2007 8:42 pm
ooookeyyy  :rolleyes:
i have found that the proxy i used bfilter is the cause of my problem. if i disable it in my konqueror configuration, last.fm stream are ok.

the proxy was used by the amarok_proxy.rb

i have tried to change the config of bfilter so that it does not filter last.fm stream but that does not seem to work (yet ?)
User avatar
solsTiCe
Registered Member
Posts
7
Karma
0


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot]