Can't get streaming to work...

General discussion about netjukebox
Post Reply
dyelton
User
Posts: 5
Joined: Mon Feb 28, 2005 10:31 pm

Can't get streaming to work...

Post by dyelton »

I've got everything setup. HTTPQ works, I can play files on my computer at home remote controlled from my computer at work (does me no good as it's playing them at home, lol!), I can download songs, etc. but I simply cannot stream. It opens the M3U but I get an HTTP 400 error (bad request). All I can figure is that it's a firewall issue. What ports do I need to open up on my firewall at home to be able to stream the music elsewhere? Thanks!
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Can't get streaming to work...

Post by wbartels »

dyelton wrote:I've got everything setup. HTTPQ works, I can play files on my computer at home remote controlled from my computer at work (does me no good as it's playing them at home, lol!)
Ok, That is what it intend to do.
dyelton wrote:It opens the M3U but I get an HTTP 400 error (bad request). All I can figure is that it's a firewall issue.
Do you get the same error when you try to stream from your local network and/or the server itself?
(use a local IP address, not your domain name or internet IP address)
dyelton wrote:All I can figure is that it's a firewall issue. What ports do I need to open up on my firewall at home to be able to stream the music elsewhere? Thanks!
That is the same port to access the website, so if you can access the website (without web server authentication) then streaming should work.
Guest

Re: Can't get streaming to work...

Post by Guest »

wbartels wrote:Do you get the same error when you try to stream from your local network and/or the server itself?
(use a local IP address, not your domain name or internet IP address)
Ok, just got home and decided to try it locally to see if it was indeed a firewall issue (which doesn't matter now as you said it uses the www port). It doesn't work locally either, still an HTTP 400 bad request.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: Can't get streaming to work...

Post by wbartels »

Anonymous wrote:
wbartels wrote:Do you get the same error when you try to stream from your local network and/or the server itself?
(use a local IP address, not your domain name or internet IP address)
Ok, just got home and decided to try it locally to see if it was indeed a firewall issue (which doesn't matter now as you said it uses the www port). It doesn't work locally either, still an HTTP 400 bad request.
Maybe I can find out what it is, if you answer some questions :wink:
Have you installed the required codec files?
Does recording extract the files to the netjukebox\temp\xxxx directory?
What media player do you use for streaming?
What web server do you use?
What version of netjukebox do you use?
Does streaming work for very low bitrate mp3 files (below $cfg['stream_transcode_treshold'] from config.inc.php) ?
Have your mp3 or other files lower case extensions?
Guest

Re: Can't get streaming to work...

Post by Guest »

wbartels wrote: Maybe I can find out what it is, if you answer some questions :wink:
Have you installed the required codec files?
Does recording extract the files to the netjukebox\temp\xxxx directory?
What media player do you use for streaming?
What web server do you use?
What version of netjukebox do you use?
Does streaming work for very low bitrate mp3 files (below $cfg['stream_transcode_treshold'] from config.inc.php) ?
Have your mp3 or other files lower case extensions?
All required codec files are installed.

Recording does extract the files to that location.

I use Winamp 5.08

I use Apache 2.0.53

I use Netjukebox 3.67

Streaming does not work for very small files, even those below that threshold.

MP3's have lower case extensions.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

This makes it difficult.
Everything looks fine except from streaming below threshold.

Does Winamp give the "HTTP 400 bad request" or the web browser?

Save the playlist to your harddisk with left mouse click > Save Target As…
And check with notepad if the url before the question mark is correct.
Double click the saved playlist and see if streaming than works.
Can you post a short playlist, than I check if anything looks strange?
dyelton
User
Posts: 5
Joined: Mon Feb 28, 2005 10:31 pm

Post by dyelton »

wbartels wrote:This makes it difficult.
Everything looks fine except from streaming below threshold.

Does Winamp give the "HTTP 400 bad request" or the web browser?

Save the playlist to your harddisk with left mouse click > Save Target As…
And check with notepad if the url before the question mark is correct.
Double click the saved playlist and see if streaming than works.
Can you post a short playlist, than I check if anything looks strange?
Ok, I figured out what that problem was. PHP.INI didn't have the REDIRECT_STATUS set to 0, it was set to 1. But now I have another problem, LOL! When I try to load to playlist in Winamp it says "Error Syncing to MPEG"

I pasted the URL into the browser and tried opening the stream with Realplayer and got the following results displayed:

MZ
dyelton
User
Posts: 5
Joined: Mon Feb 28, 2005 10:31 pm

Post by dyelton »

I'm most certain this is an issue with the php.ini file. Does anyone have one setup for Apache 2.0 on a Windows machine running the latest PHP (4.3.10) using all the defaults?
Superlexx
User
Posts: 45
Joined: Thu Feb 10, 2005 8:51 pm

Post by Superlexx »

I am runing same config here, with cgi.force_redirect = 0 in php.ini streaming works, otherwise not.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

dyelton wrote:I'm most certain this is an issue with the php.ini file. Does anyone have one setup for Apache 2.0 on a Windows machine running the latest PHP (4.3.10) using all the defaults?
I'm also running Apache 2 with PHP 4.3.10, and have no problems with streaming.
I installed PHP as an apache module:
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
DirectoryIndex index.php index.htm index.html index.html.var


I use php.ini-dist as basis for the php.ini.
Only removed the ; for the required extensions and changed extension dir to: extension_dir = "C:/PHP/extensions"

I hope this will help :)
dyelton
User
Posts: 5
Joined: Mon Feb 28, 2005 10:31 pm

Post by dyelton »

Perfect! Works like a charm!!
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

dyelton wrote:Perfect! Works like a charm!!
I'm glad to hear that :D
Post Reply