Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

losing relay connection #59

Closed
nim4n opened this issue Jan 28, 2015 · 9 comments
Closed

losing relay connection #59

nim4n opened this issue Jan 28, 2015 · 9 comments

Comments

@nim4n
Copy link

nim4n commented Jan 28, 2015

I want to use another stream in deefuzzer and my xml is:

<'station'>
<'infos'>
<'short_name'>radio<'/short_name'>
<'name'>radio<'/name'>
<'description'>radio<'/description'>
<'url'>http://localhost<'/url'>
<'genre'>radio<'/genre'>
<'/infos'>
<'media'>
<'dir'>/home/niman66/ogg/<'/dir'>
<'format'>mp3<'/format'>
<'bitrate'>128<'/bitrate'>
<'ogg_quality'>7<'/ogg_quality'>
<'samplerate'>44100<'/samplerate'>
<'voices'>2<'/voices'>
<'shuffle'>1<'/shuffle'>
<'/media'>
<'server'>
<'type'>icecast<'/type'>
<'host'>localhost<'/host'>
<'port'>8000<'/port'>
<'sourcepassword'>admin<'/sourcepassword'>
<'public'>0<'/public'>
<'/server'>
<'rss'>
<'dir'>/home/niman66/Temp/deefuzzer/<'/dir'>
<'enclosure'>0<'/enclosure'>
<'media_url'>http://localhost:8000/media/<'/media_url'>
<'/rss'>
<'relay'>
<'mode'>1<'/mode'>
<'url'>http://buecrplb01.cienradios.com.ar/50_32000.aac<'/url'>
<'author'>radio<'/author'>
<'/relay'>
<'/station'>

I can here stream for a few second and after that I lose the connection, the deefuzzer log is:

2015-01-28 09:06:39,230 INFO Opening radio - radio : http://localhost (1 tracks)...
2015-01-28 09:06:39,897 INFO Station http://localhost:8000/radio.mp3 : received OSC message '/media/relay' with arguments '1'
2015-01-28 09:06:39,897 INFO Station http://localhost:8000/radio.mp3 : relaying : http://buecrplb01.cienradios.com.ar/50_32000.aac
2015-01-28 09:06:39,897 INFO Writing M3U file to : /home/niman66/Temp/deefuzzer/mystation.m3u
2015-01-28 09:06:39,900 INFO Station http://localhost:8000/radio.mp3 : channel available
2015-01-28 09:06:39,900 INFO Station http://localhost:8000/radio.mp3 : channel connected
2015-01-28 09:06:39,901 INFO Station http://localhost:8000/radio.mp3 : generating new playlist (1 tracks)
2015-01-28 09:06:52,747 ERROR Station http://localhost:8000/radio.mp3 : could not send the buffer
2015-01-28 09:06:52,748 INFO Station http://localhost:8000/radio.mp3 : channel closed
2015-01-28 09:06:52,749 INFO Station http://localhost:8000/radio.mp3 : channel restarted
2015-01-28 09:07:20,501 ERROR Station http://localhost:8000/radio.mp3 : could not send the buffer
2015-01-28 09:07:20,501 INFO Station http://localhost:8000/radio.mp3 : channel closed

ps: my deefuzzer version is 0.6.5

@achbed
Copy link
Contributor

achbed commented Jan 28, 2015

Relay mode needs some testing and verification. One of the last pull requests I made a few minutes ago #58 had a fix for an issue when using relay mode. I'm sending up another pull request for some regression issues then will investigate this one.

@yomguy
Copy link
Owner

yomguy commented Jan 28, 2015

The AAC format is not supported at all by libshout, nor by icecast, nor by deefuzzer.
Please try with OGG or MP3.
Note that I've been using the relay mode in production for years, and it's very well tested and stable considering these formats ;)

@achbed
Copy link
Contributor

achbed commented Jan 28, 2015

Sorry I missed the AAC bit and honed in on the crash. It drives me nuts the number of people who are attempting to get AAC to work in audio streams when everything clearly states it's unsupported at every step in the chain except for the source.

That said, should we investigate an AAC audio streaming solution that deefuzzer can take advantage of?

@yomguy
Copy link
Owner

yomguy commented Jan 28, 2015

No pb ;) Yes me too, maybe we should add some warnings or skips when the mimetypes are not compatible...
On the other side, the fact is that the current relaying method is a curl callback pushing to any server accepting the type of request. I use it only now on video webm streams through stream-m (until I get it right on icecast) but it could work on any other format as long as the server accepts it. However, AFAIK, no open / free streaming server manage aac.
Anyone is welcome to test deefuzzer pushing on proprietary apps like Wowza or more but I personally don't have any kind of this stuff for the moment (I mostly build embed systems).

@nim4n
Copy link
Author

nim4n commented Jan 29, 2015

oh sorry I missed the aac too!

@nim4n nim4n closed this as completed Jan 29, 2015
@nim4n
Copy link
Author

nim4n commented Jan 29, 2015

I solve this by using ffmpeg to convert live stream on the fly to ogg and then I put the ogg file in deefuzzer.

@yomguy
Copy link
Owner

yomguy commented Jan 29, 2015

Great! So streaming from ffmpeg to the deefuzzer relay works well for you? Do you use a FIFO or a file for the ogg?

@nim4n
Copy link
Author

nim4n commented Jan 31, 2015

I'm using file and It works fine.

@yomguy
Copy link
Owner

yomguy commented Jan 31, 2015

Cool :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants