Re: Knots 2 - easy media streaming for most operating systems
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
> >
|