Notices


Reply
Thread Tools
Posts: 28 | Thanked: 9 times | Joined on Sep 2009
#821
Originally Posted by ukki View Post
Grab the latest installer and overwrite your old install and click on the Reset profiles button. Then install the 0.3.2 client by clicking this link with the N900 browser and you should be good to go.
ok will try this as well.

update: discovered I was allready running v 0.3.2

Last edited by messus; 2010-06-01 at 21:13.
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#822
Originally Posted by messus View Post
discovered problem has to do with using mp2v codec in n900 profile. when using n8x0 profile (xvid) or tablet browser (flv1) it is working on n900. changed settings in n900 profile in server from video mp2v to xvid and now it is working again.

strange
Not that strange, I switched the default player from mplayer to gstreamer and it doesn't like the mp2v format. I didn't use xvid, because VLC ha(s/d) some issues transcoding xvid to xvid which lead to no video and just audio.

If you upgrade the server and reset the profiles, you get to use h264 which gives a nice video quality boost and should use less battery too. And if you don't need subtitles and have normal SD material in xvid/divx, passthrough profile should be used for unaltered video quality. And you can always revert back to mplayer playback if you put the word "mplayer" in the player field of the profile.
 

The Following User Says Thank You to ukki For This Useful Post:
Posts: 20 | Thanked: 7 times | Joined on Jan 2010 @ Romania
#823
ukki:
I have a new problem.
I added to my playlist a http stream, which is basically a php script that generates a Location() header to an actual stream. This works just fine through normal VLC, but knots crashes. The VLC starts to get the stream for a second or so, then knots stops the stream.

I got this error from the web browser, using the n900 doesn't give any clues.
Code:
undefined method `name' for nil:NilClass
(erb):16:in `html'
(erb):35:in `each_with_index'
(erb):15:in `each'
(erb):15:in `each_with_index'
(erb):15:in `html'
./lib/plugin.rb:168:in `html'
(erb):55:in `html'
./lib/plugin.rb:168:in `html'
./plugins/1root.rb:852:in `play'
./lib/plugin.rb:102:in `call'
./lib/plugin.rb:102:in `do_GET'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
knots.rb:44:in `initialize'
knots.rb:394:in `new'
knots.rb:394
In case you're wondering, adding to playlist the stream, without redirect, works fine.

Please test, it's easy to replicate.

Last edited by vldcnst; 2010-06-02 at 14:18.
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#824
Originally Posted by vldcnst View Post
ukki:
I have a new problem.
I added to my playlist a http stream, which is basically a php script that generates a Location() header to an actual stream. This works just fine through normal VLC, but knots crashes. The VLC starts to get the stream for a second or so, then knots stops the stream.

I got this error from the web browser, using the n900 doesn't give any clues.
Code:
undefined method `name' for nil:NilClass
(erb):16:in `html'
(erb):35:in `each_with_index'
(erb):15:in `each'
(erb):15:in `each_with_index'
(erb):15:in `html'
./lib/plugin.rb:168:in `html'
(erb):55:in `html'
./lib/plugin.rb:168:in `html'
./plugins/1root.rb:852:in `play'
./lib/plugin.rb:102:in `call'
./lib/plugin.rb:102:in `do_GET'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/Program Files/Knots/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'
knots.rb:44:in `initialize'
knots.rb:394:in `new'
knots.rb:394
In case you're wondering, adding to playlist the stream, without redirect, works fine.

Please test, it's easy to replicate.
If you enable debug, does VLC show the actual stream under inputs and not your php script? If that's the case, then Knots can't map the url to an item in the database and that causes the error. But I could probably change the way it's handled now to prevent such errors. Thanks for the report, but I'd like to see these on bug tracker instead
 

The Following User Says Thank You to ukki For This Useful Post:
Posts: 20 | Thanked: 7 times | Joined on Jan 2010 @ Romania
#825
I saw VLC getting the stream using a network sniffer, and like I said, adding the normal stream to knots works, adding the redirected stream to knots fails but vlc works.
I guess you're right about the mapping, I analyzed the knots output and that seems to be the problem.
Maybe a small fix so knots fetches the url before giving it to VLC, and get the final url?

Here's the knots log:
Code:
[2010-06-02 18:25:31] Welcome to Knots - http://wiki.maemo.org/Knots2
[2010-06-02 18:25:31] Starting Knots in C:/Program Files/Knots with ruby 1.8.6
[2010-06-02 18:25:31] Setting bigger buffer size, ignore the following two warnings
[2010-06-02 18:25:31] Inotify not enabled => i386-mswin32
[2010-06-02 18:25:31] Starting VLC with: C:/Program Files/VideoLAN/VLC/vlc.exe -Vdummy --intf=telnet --telnet-host=localhost --telnet-port=4212 --telnet-password=knots --no-qt-privacy-ask --no-qt-error-dialogs
[2010-06-02 18:25:31] Waiting for VLC to start
[2010-06-02 18:25:32] VLC telnet commands: show
[2010-06-02 18:25:32] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 0 broadcast - 0 vod )
    schedule
> 
[2010-06-02 18:25:32] VLC started properly
[2010-06-02 18:25:32] You can access the server with http://localhost:1978
[2010-06-02 18:25:32] Press ctrl-c to close the server
[2010-06-02 18:25:40] VLC telnet commands: del 5s4CBgZMnHvd, new 5s4CBgZMnHvd broadcast enabled, setup 5s4CBgZMnHvd option sout-keep, setup 5s4CBgZMnHvd option audio-filter=normalizer, setup 5s4CBgZMnHvd option volume=200, setup 5s4CBgZMnHvd option sub-autodetect-fuzzy=3, setup 5s4CBgZMnHvd option sout-transcode-soverlay, setup 5s4CBgZMnHvd option freetype-font="", setup 5s4CBgZMnHvd option sub-autodetect-path=""
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> del : 5s4CBgZMnHvd: media unknown
> > > > > > > > > 
[2010-06-02 18:25:40] VLC telnet commands: show
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 1 broadcast - 0 vod )
        5s4CBgZMnHvd
            type : broadcast
            enabled : yes
            loop : no
            inputs
            output : 
            options
                sout-keep
                audio-filter=normalizer
                volume=200
                sub-autodetect-fuzzy=3
                sout-transcode-soverlay
                freetype-font=
                sub-autodetect-path=
            instances
    schedule
> 
[2010-06-02 18:25:40] VLC telnet commands: inputdel 5s4CBgZMnHvd all
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> inputdel : Unknown command
> 
[2010-06-02 18:25:40] VLC telnet commands: show
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 1 broadcast - 0 vod )
        5s4CBgZMnHvd
            type : broadcast
            enabled : yes
            loop : no
            inputs
            output : 
            options
                sout-keep
                audio-filter=normalizer
                volume=200
                sub-autodetect-fuzzy=3
                sout-transcode-soverlay
                freetype-font=
                sub-autodetect-path=
            instances
    schedule
> 
[2010-06-02 18:25:40] VLC telnet commands: setup 5s4CBgZMnHvd output #transcode{vfilter=canvas{width=488,height=280},audio-sync,vcodec=h264,vb=600,acodec=mp3,ab=112,channels=2,samplerate=44100,fps=24,venc=x264{profile=baseline,level=1},sout-transcode-threads=4}:gather:std{access=http,dst=:19780/stream.asf,mux=asf}
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> > 
[2010-06-02 18:25:40] VLC telnet commands: show
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 1 broadcast - 0 vod )
        5s4CBgZMnHvd
            type : broadcast
            enabled : yes
            loop : no
            inputs
            output : #transcode{vfilter=canvas{width=488,height=280},audio-sync,vcodec=h264,vb=600,acodec=mp3,ab=112,channels=2,samplerate=44100,fps=24,venc=x264{profile=baseline,level=1},sout-transcode-threads=4}:gather:std{access=http,dst=:19780/stream.asf,mux=asf}
            options
                sout-keep
                audio-filter=normalizer
                volume=200
                sub-autodetect-fuzzy=3
                sout-transcode-soverlay
                freetype-font=
                sub-autodetect-path=
            instances
    schedule
> 
[2010-06-02 18:25:40] VLC telnet commands: setup 5s4CBgZMnHvd  input "http://localhost:5304/itv-stream.php?id=89  "
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> > 
[2010-06-02 18:25:40] VLC telnet commands: show
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 1 broadcast - 0 vod )
        5s4CBgZMnHvd
            type : broadcast
            enabled : yes
            loop : no
            inputs
                1 : http://localhost:5304/itv-stream.php?id=89  
            output : #transcode{vfilter=canvas{width=488,height=280},audio-sync,vcodec=h264,vb=600,acodec=mp3,ab=112,channels=2,samplerate=44100,fps=24,venc=x264{profile=baseline,level=1},sout-transcode-threads=4}:gather:std{access=http,dst=:19780/stream.asf,mux=asf}
            options
                sout-keep
                audio-filter=normalizer
                volume=200
                sub-autodetect-fuzzy=3
                sout-transcode-soverlay
                freetype-font=
                sub-autodetect-path=
            instances
    schedule
> 
[2010-06-02 18:25:40] VLC telnet commands: setup 5s4CBgZMnHvd option audio-language=en,any
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> > 
[2010-06-02 18:25:40] VLC telnet commands: setup 5s4CBgZMnHvd option sub-language=en
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> > 
[2010-06-02 18:25:40] VLC telnet commands: control 5s4CBgZMnHvd play
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> > 
[2010-06-02 18:25:40] VLC telnet commands: show
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 1 broadcast - 0 vod )
        5s4CBgZMnHvd
            type : broadcast
            enabled : yes
            loop : no
            inputs
                1 : http://localhost:5304/itv-stream.php?id=89  
            output : #transcode{vfilter=canvas{width=488,height=280},audio-sync,vcodec=h264,vb=600,acodec=mp3,ab=112,channels=2,samplerate=44100,fps=24,venc=x264{profile=baseline,level=1},sout-transcode-threads=4}:gather:std{access=http,dst=:19780/stream.asf,mux=asf}
            options
                sout-keep
                audio-filter=normalizer
                volume=200
                sub-autodetect-fuzzy=3
                sout-transcode-soverlay
                freetype-font=
                sub-autodetect-path=
                audio-language=en,any
                sub-language=en
            instances
                instance
                    name : default
                    state : stopped
                    position : 0.000000
                    time : 0
                    length : 0
                    rate : 1000
                    title : 0
                    chapter : 0
                    can-seek : 1
                    playlistindex : 1
    schedule
> 
[2010-06-02 18:25:40] VLC telnet commands: show
[2010-06-02 18:25:40] VLC telnet commands: show
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 1 broadcast - 0 vod )
        5s4CBgZMnHvd
            type : broadcast
            enabled : yes
            loop : no
            inputs
                1 : http://localhost:5304/itv-stream.php?id=89  
            output : #transcode{vfilter=canvas{width=488,height=280},audio-sync,vcodec=h264,vb=600,acodec=mp3,ab=112,channels=2,samplerate=44100,fps=24,venc=x264{profile=baseline,level=1},sout-transcode-threads=4}:gather:std{access=http,dst=:19780/stream.asf,mux=asf}
            options
                sout-keep
                audio-filter=normalizer
                volume=200
                sub-autodetect-fuzzy=3
                sout-transcode-soverlay
                freetype-font=
                sub-autodetect-path=
                audio-language=en,any
                sub-language=en
            instances
                instance
                    name : default
                    state : stopped
                    position : 0.000000
                    time : 0
                    length : 0
                    rate : 1000
                    title : 0
                    chapter : 0
                    can-seek : 1
                    playlistindex : 1
    schedule
> 
[2010-06-02 18:25:40] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 1 broadcast - 0 vod )
        5s4CBgZMnHvd
            type : broadcast
            enabled : yes
            loop : no
            inputs
                1 : http://localhost:5304/itv-stream.php?id=89  
            output : #transcode{vfilter=canvas{width=488,height=280},audio-sync,vcodec=h264,vb=600,acodec=mp3,ab=112,channels=2,samplerate=44100,fps=24,venc=x264{profile=baseline,level=1},sout-transcode-threads=4}:gather:std{access=http,dst=:19780/stream.asf,mux=asf}
            options
                sout-keep
                audio-filter=normalizer
                volume=200
                sub-autodetect-fuzzy=3
                sout-transcode-soverlay
                freetype-font=
                sub-autodetect-path=
                audio-language=en,any
                sub-language=en
            instances
                instance
                    name : default
                    state : stopped
                    position : 0.000000
                    time : 0
                    length : 0
                    rate : 1000
                    title : 0
                    chapter : 0
                    can-seek : 1
                    playlistindex : 1
    schedule
> 
[2010-06-02 18:25:41] VLC telnet commands: show
[2010-06-02 18:25:41] VLC telnet response: Password: 
Welcome, Master
> show
    media : ( 1 broadcast - 0 vod )
        5s4CBgZMnHvd
            type : broadcast
            enabled : yes
            loop : no
            inputs
                1 : http://localhost:5304/itv-stream.php?id=89  
            output : #transcode{vfilter=canvas{width=488,height=280},audio-sync,vcodec=h264,vb=600,acodec=mp3,ab=112,channels=2,samplerate=44100,fps=24,venc=x264{profile=baseline,level=1},sout-transcode-threads=4}:gather:std{access=http,dst=:19780/stream.asf,mux=asf}
            options
                sout-keep
                audio-filter=normalizer
                volume=200
                sub-autodetect-fuzzy=3
                sout-transcode-soverlay
                freetype-font=
                sub-autodetect-path=
                audio-language=en,any
                sub-language=en
            instances
                instance
                    name : default
                    state : playing
                    position : 0.000000
                    time : 0
                    length : -1
                    rate : 1000
                    title : 0
                    chapter : 0
                    can-seek : 0
                    playlistindex : 1
    schedule
> 
[2010-06-02 18:25:41] Starting stream at http://localhost:19780/stream.asf
[2010-06-02 18:25:41] VLC telnet commands: control 5s4CBgZMnHvd stop
[2010-06-02 18:25:41] VLC telnet response: Password: 
Welcome, Master
> > 
[2010-06-02 18:25:41] VLC telnet commands: del 5s4CBgZMnHvd
[2010-06-02 18:25:41] VLC telnet response: Password: 
Welcome, Master
> >

Last edited by vldcnst; 2010-06-02 at 15:26.
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#826
Originally Posted by vldcnst View Post
I saw VLC getting the stream using a network sniffer, and like I said, adding the normal stream to knots works, adding the redirected stream to knots fails but vlc works.
I guess you're right about the mapping, I analyzed the knots output and that seems to be the problem.
Maybe a small fix so knots fetches the url before giving it to VLC, and get the final url?
I pushed a little change to git, wanna test if it helps with this one?
 

The Following 2 Users Say Thank You to ukki For This Useful Post:
Posts: 20 | Thanked: 7 times | Joined on Jan 2010 @ Romania
#827
Tested and it works!

Thanks a bunch.
 

The Following User Says Thank You to vldcnst For This Useful Post:
Posts: 20 | Thanked: 5 times | Joined on Jun 2010
#828
I'm having a problem getting an updated version of the server to work for my g5 powerpc mac. I'm not sure what I am doing wrong. Any thoughts?
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#829
What OS X version? You need at least Ruby 1.8.6 and VLC 0.9.4 so make sure those are installed. I've never tested Knots on PowerPC so I can't be sure it will work. To see what versions of ruby and VLC you have, try running these two commands in terminal:
Code:
/Applications/VLC.app/Contents/MacOS/VLC --version
ruby -v
 

The Following User Says Thank You to ukki For This Useful Post:
Posts: 20 | Thanked: 5 times | Joined on Jun 2010
#830
Originally Posted by ukki View Post
What OS X version? You need at least Ruby 1.8.6 and VLC 0.9.4 so make sure those are installed. I've never tested Knots on PowerPC so I can't be sure it will work. To see what versions of ruby and VLC you have, try running these two commands in terminal:
Code:
/Applications/VLC.app/Contents/MacOS/VLC --version
ruby -v
VLC is 1.0.5 and ruby is 1.8.6. The prebuilt package has always worked, but when I try to use the version from github the package does not work and when I try to create osx app it builds a program that isn't supported on my architecture.
 
Reply

Tags
knots, music, streaming, video


 
Forum Jump


All times are GMT. The time now is 03:49.