Notices


Reply
Thread Tools
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#291
Does this work even if I have disabled the native Media streaming feature and network sharing features in Windows 7? I would like to stream something from my notebook to my N900 and use the TV-out from the N900 (I don't have HDMI out on my notebook). Most of the time my notebook is in public WLANs and so I don't want to share everything with everyone ;-)
Thanks. (I cannot test it currently because the Wiki is offline).
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#292
Yes, Knots uses its own protocol and you can secure it with basic auth just to be sure.
 

The Following 2 Users Say Thank You to ukki For This Useful Post:
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#293
Ok, now I have tried it and it works great!
I only have the following problems:

- "DVD Drive" is set automatically to "D:/" which is correct but after I inserted a DVD and clicked on "Go to root" on the N900 nothing showed up. If I add D:/ as a directory it works (without a name and with black borders on all sides instead of only two) but if no DVD is inserted I get an annoying message at every start of Knots

- I have no screenshot thumbnails and I cannot find an option for that (Knots is installed in C:\knots

- Some videos (like http://www.gamona.de/downloads/diabl...d,1647526.html for example) have a lot of artifacts especially on screenshots (frozen frame) or for comics like the Simpsons (but this could be codec related as well)

- I have reduced the allowed file types for the library but even after a click on update or clean up nothing changes and I can still find file types which were allowed earlier

It would be nice if you fix these problems or help me with it. Besides that I like it and it works better than expected for most of the files. Thanks for your work!

btw: How can I play whole music albums without a playlist? If I browse to an album and click on play it plays only the first song.
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#294
Originally Posted by DaSilva View Post
Ok, now I have tried it and it works great!
I only have the following problems:

- "DVD Drive" is set automatically to "D:/" which is correct but after I inserted a DVD and clicked on "Go to root" on the N900 nothing showed up. If I add D:/ as a directory it works (without a name and with black borders on all sides instead of only two) but if no DVD is inserted I get an annoying message at every start of Knots
I think I broke the support on Windows when I added support for dvd directories. I'll try to fix it soon. But I'm not sure if Ruby's Win32 library works on Vista/7.

Originally Posted by DaSilva View Post
- I have no screenshot thumbnails and I cannot find an option for that (Knots is installed in C:\knots
ffmpeg should manage to grab screenshots for most videos, but seems to fail with mkv/mpeg. I'll check if there's a newer version for Windows that would work better. Not sure why you don't have any screenshots unless it's disabled in settings.

Originally Posted by DaSilva View Post
- Some videos (like http://www.gamona.de/downloads/diabl...d,1647526.html for example) have a lot of artifacts especially on screenshots (frozen frame) or for comics like the Simpsons (but this could be codec related as well)
Try disabling aspect and see if that helps. Check wiki for instructions.

Originally Posted by DaSilva View Post
- I have reduced the allowed file types for the library but even after a click on update or clean up nothing changes and I can still find file types which were allowed earlier
I don't remove files that are found unless you remove the path from scanned paths.

Originally Posted by DaSilva View Post
btw: How can I play whole music albums without a playlist? If I browse to an album and click on play it plays only the first song.
There is a play icon with the album label to do that. If it only plays one file, fix the album info in 'Edit Media' section.
 

The Following User Says Thank You to ukki For This Useful Post:
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#295
This happened when I deleted a directory:

Browser:
undefined method `path' for nil:NilClass
C:/knots/lib/collection.rb:157:in `remove_scan_path'
C:/knots/plugins/1root.rb:478:in `media'
C:/knots/lib/plugin.rb:88:in `call'
C:/knots/lib/plugin.rb:88:in `do_POST'
C:/knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
knots.rb:54:in `initialize'
knots.rb:280:in `new'
knots.rb:280
Command line:
[2010-01-17 10:22:30] Error: undefined method `path' for nil:NilClass
C:/knots/lib/collection.rb:157:in `remove_scan_path'
C:/knots/plugins/1root.rb:478:in `media'
C:/knots/lib/plugin.rb:88:in `call'
C:/knots/lib/plugin.rb:88:in `do_POST'
C:/knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
knots.rb:54:in `initialize'
knots.rb:280:in `new'
knots.rb:280
[2010-01-17 10:22:34] Error: undefined method `video_category' for nil:NilClass
(erb):4:in `html'
(erb):3:in `each'
(erb):3:in `html'
C:/knots/lib/plugin.rb:158:in `html'
C:/knots/lib/plugin.rb:90:in `do_POST'
C:/knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
knots.rb:54:in `initialize'
knots.rb:280:in `new'
knots.rb:280
But the directory was deleted and there was no other problem.

When I want to disable the aspect ratio I get this in the command line:
C:\knots>./scripts/setup disable_aspect 1 "Disable video aspect"
'.' is not recognized as an internal or external command,
operable program or batch file.

C:\knots\scripts>C:/knots/ruby/bin/ruby.exe setup disable_aspect 1 "Disable video aspect"
This script must be run from the kserver root
How to solve this?

Would it be possible to correct the aspect ratio on the client (N900) like VLC offers it for desktops?

Last edited by DaSilva; 2010-01-17 at 01:51.
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#296
Originally Posted by DaSilva View Post
When I want to disable the aspect ratio I get this in the command line:


How to solve this?

Would it be possible to correct the aspect ratio on the client (N900) like VLC offers it for desktops?
You almost had it, just run the last command with proper paths in knots folder and it will work. You can also add it via browser in settings using "Add a new setting" button.

EDIT: Made some Windows fixes and updated ffmpeg.exe to a newer one. Please update with git pull.

Last edited by ukki; 2010-01-17 at 10:50.
 

The Following 2 Users Say Thank You to ukki For This Useful Post:
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#297
Originally Posted by jsbigs View Post
This still is not working for me. I'll see you at irc at some point.
Try:

Code:
./scripts/reset_settings
 

The Following User Says Thank You to ukki For This Useful Post:
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#298
I hope you meant

c:\knots>git pull git://github.com/solmis/knots.git master

The output was

Code:
remote: Counting objects: 35, done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 24 (delta 17), reused 0 (delta 0)
Unpacking objects: 100% (24/24), done.
From git://github.com/solmis/knots
 * branch            master     -> FETCH_HEAD
Updating 8ee1147..cfcab5e
Fast forward
 lib/collection.rb            |    1 +
 lib/common.rb                |    5 +++--
 lib/player.rb                |    4 ++--
 res/root/javascripts/root.js |    3 +++
 win32/ffmpeg.exe             |  Bin 8799232 -> 10791936 bytes
 5 files changed, 9 insertions(+), 4 deletions(-)
Together with "disable_aspect 1" in the settings it is better (artifacts) but not gone but the thumbnails are working now
Do you think you can improve the artifacts?
 
Posts: 23 | Thanked: 2 times | Joined on Jul 2009
#299
Does the server run well on non-English Windows machines? When there is non-English character in the path of a media file, it cannot be played.
 
Posts: 515 | Thanked: 193 times | Joined on Oct 2009
#300
Oh dear - when adding a directory:

No such file or directory - F:/music/Yann Tiersen/Les Retrouvailles/04 La Veille�e.mp3

C:/knots/lib/collection.rb:319:in `size'
C:/knots/lib/collection.rb:319:in `add_audio_item'
C:/knots/lib/collection.rb:201:in `scan_path'
C:/knots/lib/collection.rb:194:in `each'
C:/knots/lib/collection.rb:194:in `scan_path'
C:/knots/ruby/lib/ruby/1.8/find.rb:39:in `find'
C:/knots/ruby/lib/ruby/1.8/find.rb:38:in `catch'
C:/knots/ruby/lib/ruby/1.8/find.rb:38:in `find'
C:/knots/lib/collection.rb:189:in `scan_path'
C:/knots/lib/collection.rb:590:in `update_database'
C:/knots/lib/collection.rb:589:in `each'
C:/knots/lib/collection.rb:589:in `update_database'
C:/knots/plugins/1root.rb:822:in `update_database'
C:/knots/lib/plugin.rb:88:in `call'
C:/knots/lib/plugin.rb:88:in `do_GET'
C:/knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/knots/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
knots.rb:56:in `initialize'
knots.rb:315:in `new'
knots.rb:315

What can I do?
 
Reply

Tags
knots, music, streaming, video

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:01.