Page 1 of 1

Problems with secured shoutcast streams

PostPosted: Sat Jul 14, 2012 10:18 pm
by Satras
Hi,

I'm a premium Member of di.fm. For paying customers, they offer 128K and 256K Audio streams in the following format

  Code:
http://1.2.3.4:80/trance_hi?mysecurehash


Till earlier this week, this all worked fine. Starting this week I got a new playback device which is connected using Wifi and the 256K stream was too high for it (bad coveradge of wifi signal), so I started to play around with their low streams and after a bit of testing, I was no longer able to add any of the secured streams. I mean I was able to add them but none of my playback devices could connect to this stream.
The standard low streams are working fine and if I copy and paste the above code into Winamp, it starts to play.
I'm out of ideas.


Image

Any Help ? thanx !

Re: Problems with secured shoutcast streams

PostPosted: Tue Jul 17, 2012 12:39 pm
by zip
provide detailed log (and make sure you remove any mention of your secure hashtag from it) :-)

Re: Problems with secured shoutcast streams

PostPosted: Tue Jul 17, 2012 1:44 pm
by Satras
Sorry, forgotten to attach it.
Will do it when I'm back home later

Re: Problems with secured shoutcast streams

PostPosted: Tue Jul 17, 2012 3:35 pm
by Satras
This should be it, I was able to do this remotely.

Re: Problems with secured shoutcast streams

PostPosted: Tue Jul 17, 2012 4:27 pm
by zip
there is nothing with 'trance_hi' in the log

Re: Problems with secured shoutcast streams

PostPosted: Tue Jul 17, 2012 7:28 pm
by Satras
Its
  Code:
http://1.2.3.4:80/trance?mysecureid


Not sure why it was trance_hi in my first tests.

But I guess its working now ?! Cause one of my Playback devices started playing the streams again. But the new kitchen Radio does not. This is odd now.
Before I started playing around both where streaming ok. I will do some more tests on the weekend.

Re: Problems with secured shoutcast streams

PostPosted: Wed Jul 18, 2012 7:30 am
by Satras
Did some more tests yesterday evening and my WDTVLive could play the stream therefore I believe everything with Serviio is ok.
Just my Kitchen Radio refuses to play the streams... any Idea why this is the case ?
It does not even show the radio stream in the Online Menu

Re: Problems with secured shoutcast streams

PostPosted: Wed Jul 18, 2012 12:20 pm
by zip
post result of

  Code:
ffmpeg -i "http://........ stream url here ..."

Re: Problems with secured shoutcast streams

PostPosted: Thu Jul 19, 2012 7:33 am
by Satras
Hi,

not sure what you want me to do. Sorry

Re: Problems with secured shoutcast streams

PostPosted: Thu Jul 19, 2012 2:23 pm
by zip
viewtopic.php?f=5&t=1123

use you stream's URL as the file name and wrap it in quotes, as in my previous post, like:

  Code:
ffmpeg -i "http://1.2.3.4:80/trance_hi?mysecurehash"

Re: Problems with secured shoutcast streams

PostPosted: Thu Jul 19, 2012 6:50 pm
by Satras
  Code:
C:\Users\Administrator>"C:\Program Files (x86)\Serviio\lib\ffmpeg.exe" -i http:/
/1.2.3.4:80/trance?mysecurehash
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 13 2011 20:46:11 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
[aac @ 00388460] max_analyze_duration 5000000 reached at 5015510
[aac @ 00388460] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from 'http://1.2.3.4:80/trance?mysecurehash':
  Duration: N/A, bitrate: 124 kb/s
    Stream #0:0: Audio: aac, 44100 Hz, stereo, s16, 124 kb/s
At least one output file must be specified

C:\Users\Administrator>


you might want to change the board setting to start a new page at 20 or 35 posts.. makes it easier to read.. but this is just my oppinion :)

Re: Problems with secured shoutcast streams

PostPosted: Fri Jul 20, 2012 12:56 pm
by zip
It's an AAC stream, so depends if the device can play that. Serviio currently cannot transcode AAC streams, so they can only be played natively. It's possible that the other bitrates are served as mp3.

Re: Problems with secured shoutcast streams

PostPosted: Fri Jul 20, 2012 2:38 pm
by Satras
Damn.. those Idiots :(

Thanx for your help !

this indicates a MP3 Stream right ?

Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\Administrator>"C:\Program Files (x86)\Serviio\lib\ffmpeg.exe" -i http:/
/1.2.3.4:80/trance_hi?mysecurehash
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 13 2011 20:46:11 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
[mp3 @ 016c84a0] max_analyze_duration 5000000 reached at 5015510
[mp3 @ 016c84a0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'http://1.2.3.4:80/trance_hi?mysecurehash0':
Duration: N/A, start: 0.000000, bitrate: 256 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16, 256 kb/s
At least one output file must be specified

C:\Users\Administrator>

Re: Problems with secured shoutcast streams

PostPosted: Fri Jul 20, 2012 3:14 pm
by zip
yes

  Code:
Input #0, mp3, from 'http://1.2.3.4:80/trance_hi?mysecurehash0':

Re: Problems with secured shoutcast streams

PostPosted: Sat Jul 21, 2012 3:18 pm
by Satras
Thanx for your help ! this really helped me fixing it.