Register    Login    Forum    Search    FAQ

Board index » General Questions




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: 503: Service Unavailable
 Post Posted: Thu Jun 13, 2013 5:35 am 
 

Joined: Thu Jun 13, 2013 5:25 am
Posts: 3
Hi!
First of all, I just want to give big thanks to you guys - this is exactly what I've been looking for!

I'm trying to set up my desktop (a pretty powerful machine) as a server and my htpc (AMD E-350, pretty weak) as a client. I tried both periodic and event-driven configurations. I also tried Limbo, since proper config is already provided for it. Here is my client log:

# [3872] 1371072177.542371 # include: config\common\controller.conf
# [3872] 1371072177.543371 # include: config\common\video-x264.conf
# [3872] 1371072177.545371 # include: config\common\audio-lame.conf
# [3872] 1371072177.548371 # RTSP[config]: using 'udp' for RTP flows.
# [3872] 1371072177.549371 # RTSP[config]: controller port = 8555
# [3872] 1371072177.552372 # RTSP[config]: controller via 'udp' protocol.
# [3872] 1371072177.554372 # RTSP[config]: video-encoder = libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
# [3872] 1371072177.556372 # RTSP[config]: video-decoder = h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
# [3872] 1371072177.559372 # RTSP[config]: audio-encoder = libmp3lame (libmp3lame MP3 (MPEG audio layer 3))
# [3872] 1371072177.561372 # RTSP[config]: audio-decoder = mp3 (MP3 (MPEG audiolayer 3))
Remote server @ 192.168.1.6:8554
# [3872] 1371072177.798386 controller queue: initialized size=32736 (744 units)
watchdog: launched, waiting for audio/video frames ...
# [3872] 1371072177.805386 controller socket: socket address [192.168.1.6:8555]
# [3872] 1371072177.805386 controller client-thread started: tid=3840.
Opening connection to 192.168.1.6, port 8554...
...remote connection opened
Sending request: DESCRIBE rtsp://192.168.1.6:8554s RTSP/1.0
CSeq: 2
User-Agent: RTSP Client (LIVE555 Streaming Media v2012.05.17)
Accept: application/sdp


Received 34 new bytes of response data.
Received 48 new bytes of response data.
Received a complete DESCRIBE response:
RTSP/1.0 503 Service Unavailable
CSeq: 2
Date: Wed, 12 Jun 2013 21:23:06 GMT


[URL:"rtsp://192.168.1.6:8554s"]: Failed to get a SDP description: 503 Service Unavailable
[URL:"rtsp://192.168.1.6:8554s"]: Closing the stream.


I run IIS on my desktop machine along with some development tools, so I thought maybe something else was hogging port 8554, but when I shut down the server and try to connect, I get:

Opening connection to 192.168.1.6, port 8554...
watchdog: launched, waiting for audio/video frames ...
watchdog: initialized, but no frames received ...
watchdog: initialized, but no frames received ...

So it clearly was communicating with the server when it was receiving error 503.
I disabled the firewall on the server, and both the client and the server are on the same subnet, going over wired gigabit.

Any idea what I should tinker with?

Thanks!


Top 
 Profile  
 
 Post Posted: Thu Jun 13, 2013 9:50 am 
 

Joined: Tue Jun 04, 2013 2:07 pm
Posts: 301
Hi,

Could you provide the complete RTSP URL feeds to the client program? If you use the default configuration, the RTSP URL should be in the form of:

rtsp://server-IP:port/desktop

Note that the path to the object must be "desktop" if you did not modify the default server configuration. In your case, it should be:

rtsp://192.168.1.6:8554/desktop

Hope that helps.

Chun-Ying


Top 
 Profile  
 
 Post Posted: Thu Jun 13, 2013 12:14 pm 
 

Joined: Thu Jun 13, 2013 5:25 am
Posts: 3
That was the issue! Adding /desktop to the URL did the trick. However, I'm seeing severe pixelation when I start the client.

The server machine can certainly handle it (i5-3750k, 16gb ram) and it's going over gigabit ethernet, so I'm pretty sure it's not a resource issue. My client is pretty low powered (AMD E350), so I'm wondering if the codec you guys are using to decode the video stream doesn't use hardware acceleration, though CPU usage was hovering only around 60%. However, the CPU is dual core, so if the decoding only happens only on one core, it might be lagging because a single core can't decode the signal. I tried 1080p at first, but even 720p lags pretty badly.
Would you like me to post some diagnostic logging? I can probably run both client and server and make them save the console output to a text file.


Top 
 Profile  
 
 Post Posted: Thu Jun 13, 2013 2:26 pm 
 

Joined: Tue Jun 04, 2013 2:07 pm
Posts: 301
Hi,

The client software does not use hardware decoding, but by default it will use hardware rendering (if possible). The client code currently does not explicitly assign the number of threads for the decoder. I guess it may use only one core to decode video frames. We may add an option in a future release to enable multithread decoding.

I am not sure which mode you are using (periodic mode or event driven mode). The event driven mode by default will send video frames at 50fps. If that's too fast for your client, you may also try to reduce that number by tuning server-side configurations. You can check the video-fps and the server-token-fill-interval parameter. In the case of 24 fps, the values should be:

video-fps = 24
server-token-fill-interval =41667

Not sure if a diagnostic message could help, but you are welcome to post anything.

Chun-Ying


Top 
 Profile  
 
 Post Posted: Thu Jun 13, 2013 10:43 pm 
 

Joined: Thu Jun 13, 2013 5:25 am
Posts: 3
Reducing the framerate helped a lot. I saw some "images coming in too fast?" messages in the client console, but I think the main issue is that the client wasn't able to decode the video in real time. The image would get corrupted once in a while, but the artifacts go away after a few seconds.
Since you are using h264, I think using hardware decoding + hardware rendering would really help low power systems with a decent graphics chipset, like e350 and nvidia ion.

Great work so far!


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 10 posts ] 

Board index » General Questions


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: