Notices


Reply
Thread Tools
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#541
Originally Posted by Larswad View Post
1. Sometimes VLC refuse to start when starting knots2 (knots informs about this in the terminal). What I do then is to stop knots2 and retry, and then usually it starts again.
Well I'm not doing anything differently each time so if VLC refuses to start, I can't really help it. I increased the timeout to 10 seconds, maybe that helps.

Originally Posted by Larswad View Post
2. Sometimes knots2 cannot be stopped with CTRL+C, it just refuse to die. I have to kill the process using kill <pid>.
There is a 15 second timeout and after that it should die forcefully. If it hangs, you could provide me a list of things it has open. lsof -p <pid> is good for that.

Originally Posted by Larswad View Post
3. Not too seldomly it appears to end up in a state where the song appears to be playing but no sound actually comes out. Solution is to restart knots2 a couple of times.
With Nxx0 client or browser?

Originally Posted by Larswad View Post
4. The is no log out option in knots2, therefore it's difficult to switch user. Sometimes it also accumulates users at the status tab, even if I'm at the very same browser session.
I'm using basic auth where browser keeps the username and password in memory for that session. It's different from normal http server session management and the official answer is, that you can't really clear them server side. Since I can control the http server, I added support for this and it seems to work fine in Firefox, but ymmv. There's not much I can do about this.

Originally Posted by Larswad View Post
5. Fetching covers may fail without obvious reason. I overcame this by increasing some hard loop limit in the code where the covers are fetched (don't remember where I did that, but it helped when having lot of music).
There was a safety mechanism to prevent tons of http requests if something goes wrong, but I fixed it a bit to only stop when there are 10 errors in a row. Hopefully that helps.

Originally Posted by Larswad View Post
6. I'm used to a normal 'pause' button...there is none.
And there will never be one. Resume support pretty much makes it useless and at least when I last tried it, pausing requires pausing both client and VLC streaming to prevent it from filling the buffer and resuming the stream requires a new stream anyways. So basically pause would just be stop and resume.

On the N900 client you should be able to pause the stream with space/p but don't leave it paused.

Originally Posted by Larswad View Post
7. Regardless if the current tune has completed or is currently playing (and after having used the 'hide' button), I have to go back to the tune I played and press the blue 'stop' button, otherwise I won't be able to start another song.
I changed the player a bit, it now uses its own lightbox and allows new playback when it's hidden.

Originally Posted by Larswad View Post
8. The player plugin doesn't seem to work in IE at all (it's not fully sized and no song plays even if bar is moving). Doesn't matter to me though since I'm not using IE.
I don't care about IE either, sorry if it's someones only option to use Knots

I also made the server to switch automatically between the telnet modes on unix, so it should work out of the box on lucid/os x now. On Windows you need to change it manually because I can't check VLC version using the command line. There are also some bug fixes etc so git users should update and let me know if I broke something.
 

The Following User Says Thank You to ukki For This Useful Post:
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#542
Can you please post here if you think you have fixed the subtitles problem with Windows so that I can test and confirm it?
Thank you very much for all your work and have a nice weekend!
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#543
Originally Posted by DaSilva View Post
Can you please post here if you think you have fixed the subtitles problem with Windows so that I can test and confirm it?
Thank you very much for all your work and have a nice weekend!
It seems to be a VLC bug, since it works on other platforms. Want to test with a version from nightlies if it has been fixed there?

http://nightlies.videolan.org/build/...20100415-0203/

do a git pull and run migrate.cmd, then set the Using VLC 1.1 or newer to true in settings and save and close the server. Install the nightlies version and start server.


EDIT: So I was wrong, I just commited a fix to git that will hopefully fix the subtitle problem on Windows.

Last edited by ukki; 2010-04-16 at 07:09.
 

The Following 2 Users Say Thank You to ukki For This Useful Post:
Posts: 121 | Thanked: 45 times | Joined on Mar 2010
#544
Originally Posted by ukki View Post
Yes, it's a separate field that should appear in the profiles once you run migrate.cmd. So if you want to try that above line, you paste:

vcodec to video_format
acodec to audio_format
vb to video_bitrate
ab to audio_bitrate
channels to audio_channels
venc to video_encoder

etc.
Okay this is driving me nuts (aaarrrrr!)

I nuked the knots directory in program files
I ran the installer
I downloaded the master zip (solmis-knots-7c63753.zip)
Extraced this into the knots directory, overwriting all.
Ran migrate
Reboot
Ran migrate again
Start server

...

no Threads= field!

Does anyone else see this field apart from ukki?
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#545
Originally Posted by wildt View Post
Okay this is driving me nuts (aaarrrrr!)

I nuked the knots directory in program files
I ran the installer
I downloaded the master zip (solmis-knots-7c63753.zip)
Extraced this into the knots directory, overwriting all.
Ran migrate
Reboot
Ran migrate again
Start server

...

no Threads= field!

Does anyone else see this field apart from ukki?
You sure it overwrote the files and didn't just extract them to another directory? Also try deleting the .config folder when server is not running and restart.
 

The Following 2 Users Say Thank You to ukki For This Useful Post:
Posts: 121 | Thanked: 45 times | Joined on Mar 2010
#546
Originally Posted by ukki View Post
You sure it overwrote the files and didn't just extract them to another directory? Also try deleting the .config folder when server is not running and restart.
yeps, I'm sure.

EDIT: Deleting the .config folder did the trick! Thanks a ton - I'll test it now.

Last edited by wildt; 2010-04-15 at 20:17.
 
Posts: 121 | Thanked: 45 times | Joined on Mar 2010
#547
The setting works like a champ - using h264/x264 there's an even 33% load on all 4 cores, but even when transcoding to 1024kbit rate the n900 (overclocked to 900mhz) totally chokes with 100% cpu utilization

Looks awesome though!

Gonna experiment further - but the Knots server now gives me the tools I needed, thank you!
 

The Following User Says Thank You to wildt For This Useful Post:
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#548
Great to hear. After you find optimal settings. would you mind sharing the profile so I can add it to Knots by default?
 

The Following User Says Thank You to ukki For This Useful Post:
Posts: 121 | Thanked: 45 times | Joined on Mar 2010
#549
Well, after experimenting with codecs with limited success I remembered the 9.mp4 video that comes with the N900 - looks great and runs great. I examined it and it's mp4a/mp4v with bitrates up to 4mbit!

I tried that codec compo, and at 2mbit video and 128kbit audio it runs totally smooth most of the time, but with a minor hickup here and there, which could be due to something running in the background on the N900 that I have no control of. Is there some way of running the decoding thread on the N900 with high priority or something?

And bear in mind I've done the testing running the N900 @ 900mhz. I can try going back down to 600mhz for testing purposes sometime in the weekend.

Anywho, I suspect that the 9.mp4 run through the built in media player utilizes some hardware acceleration that doesn't seem to get activated when playing through Knots, as I can't get it to run smooth at the same high bitrates (~4mbit).

But hey, it looks awesome at 2mbit as well, and the encoding part is apparently lighter than x264, as there's on avg. an even 10-20% load on my 4 cores when chewing through 1080p x264 movies with ~20mbit rates.

Fairly happy camper here! Only thing missing is a thicker pipe so I can stream this over the internet
 

The Following User Says Thank You to wildt For This Useful Post:
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#550
Originally Posted by wildt View Post
Well, after experimenting with codecs with limited success I remembered the 9.mp4 video that comes with the N900 - looks great and runs great. I examined it and it's mp4a/mp4v with bitrates up to 4mbit!

I tried that codec compo, and at 2mbit video and 128kbit audio it runs totally smooth most of the time, but with a minor hickup here and there, which could be due to something running in the background on the N900 that I have no control of. Is there some way of running the decoding thread on the N900 with high priority or something?

And bear in mind I've done the testing running the N900 @ 900mhz. I can try going back down to 600mhz for testing purposes sometime in the weekend.

Anywho, I suspect that the 9.mp4 run through the built in media player utilizes some hardware acceleration that doesn't seem to get activated when playing through Knots, as I can't get it to run smooth at the same high bitrates (~4mbit).

But hey, it looks awesome at 2mbit as well, and the encoding part is apparently lighter than x264, as there's on avg. an even 10-20% load on my 4 cores when chewing through 1080p x264 movies with ~20mbit rates.

Fairly happy camper here! Only thing missing is a thicker pipe so I can stream this over the internet
Knots uses MPlayer which doesn't utilize dsp so it's not as power efficient or fast as the default player. Also http streaming takes its toll.

I tried using gstreamer as a backend, but I never got it to properly play anything except theora and even that buffered like every 2 seconds. If anyone wants to experiment with it, it's easy to test different profiles from the commandline, just start a stream with the browser and try to play it gst playbin2 from the command line on N900. I'd be happy to switch to gstreamer, but I got tired of the bad results with it.

Please share the profile if you are happy with it. I'd like to test it on OS X too. I know most encoders don't utilize multiple cores, but do the default profiles work in Windows if you add 4 threads to them?

Also could anyone fetch the latest change from git and test if external subtitles now work on Windows Vista/7?
 

The Following 2 Users Say Thank You to ukki For This Useful Post:
Reply

Tags
knots, music, streaming, video


 
Forum Jump


All times are GMT. The time now is 05:41.