Open bnelson333 opened 2 years ago
I installed the latest beta of sdrtrunk today and was happy to see additional options for higher quality mp3 stream, but unfortunately it still doesn't go high enough. I believe my problem is related to this: https://stackoverflow.com/questions/32441979/google-chrome-no-longer-plays-certain-audio-files
Would it be possible to allow higher bitrates in sdrtrunk? I tried to manually force it in default.xml and found that it did nothing. E.g.:
sample_rate="44100" user_name="source" bitrate="128" channels="2"
But it has no effect. After I restart everything and pick up the stream, it's still streaming with the default options. Would it be possible to correct this so that the parameters defined in default.xml will determine the feed to icecast?
I'm having a strange problem when listening to the streaming version of sdrtrunk via chrome. It's almost as if chrome sometimes doesn't see it as a valid mpeg stream so it just sits there and spins. Do we have any documentation on the available options below to tweak? (this from the default.xml file)
<stream type="icecastHTTPConfiguration" xmlns:wstxns1="http://www.w3.org/2001/XMLSchema-instance" wstxns1:type="ICECAST_HTTP" description="MyCounty" url="/myscanner.mp3" sample_rate="8000" user_name="source" bitrate="16" channels="1" mount_point="/myscanner.mp3" genre="PoliceScanner" public="false" enabled="true" delay="0" host="localhost" port="8000" password="password" maximum_recording_age="600000" name="MyCounty">
Some more background on this. I used to run sdrtrunk without the streaming part of it turned on. I just listened to the audio and picked it up via darkice and everything was fine, never had a single problem like what I've described above. Same icecast2 server running, but now I've disabled the darkice part and am trying to connect sdrtrunk straight through to icecast2. It works fine a lot of the time. But it happens often enough where Chrome just doesn't seem to "catch" the stream, so it spins, and then maybe 30-60 seconds later it will finally get it and start playing it.
Again, I never had this problem when I was piping sdrtrunk via darkice to icecast2. And within the darkice.cfg file I have more control over setting things like sampling rate, bitrate, bitrate mode, cbr/vbr, quality etc. I suspect if I were to tweak my default.xml file above to match those settings, it'd probably work. But whenever I try to tweak that line in .xml, it works fine as long as I only change existing attributes. If I, for example, try to include something like bitrate_mode="cbr" in that stream type declaration, sdrtrunk basically corrupts the default.xml file. Is there a list of specific syntax I'm allowed to use on that line?
I'm thinking if I can set sdrtrunk to use all the same properties as darkice, it should work like it used to. Also note, this only seems to happen in Chrome. Edge, VLC, and WMP don't do this.