Notices


Reply
Thread Tools
Posts: 121 | Thanked: 45 times | Joined on Mar 2010
#551
Originally Posted by ukki View Post
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.
Totally adds up then - good to know.


Originally Posted by ukki View Post
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.
Once again, complete linux/xterm noob, so you're gonna have to be pretty specific if I'm supposed to understand it

Having said that I'd love to try it out - I have a feeling that the codec combo I mentioned would work perfectly with gstreamer (as it's the compo Nokia chose to showcase the devices video playback abilities).


Originally Posted by ukki View Post
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?
I ended up pretty much full circle on the standard N900 profile except that mp4a/mp4v replaced mp2a/mp2v!

I got video running with threads=4 in mp2v/mp4v/xvid/h264 - but i can't remember whether or not it actually used the cores appropriately in all the codecs - but it certainly does in mp4v and h264 (x264).
 

The Following User Says Thank You to wildt For This Useful Post:
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#552
Originally Posted by wildt View Post
Having said that I'd love to try it out - I have a feeling that the codec combo I mentioned would work perfectly with gstreamer (as it's the compo Nokia chose to showcase the devices video playback abilities).
Ok, here are quick instructions to test, it isn't too hard actually. I just tried it myself and passthough seemed to work fine for xvid, but rest not so much. On your N900, run the following command as root:

Code:
apt-get install gstreamer0.10-tools
Then use your browser and select your profile from the dropdown list and start the stream. It doesn't have to work on your browser, most important thing is that it starts the stream (switch to log_level 1 and start Knots in terminal if you want to see the stream address, but it's usually the one listed below)

Then on your N900, run the following command (on same line):

Code:
gst-launch-0.10 -v playbin2 uri=http://desktopip:19780/stream.asf
Stream extension depends on stream_extension field in the profile so if you use ts mux and ts extension, it's stream.ts. Try different muxes that can be used with http (ts, ps, asf) and see what plays and what doesn't. If you get h264 working with gstreamer fine, I could consider switching to it on N900 version of Knots.
 

The Following User Says Thank You to ukki For This Useful Post:
Posts: 729 | Thanked: 155 times | Joined on Dec 2009
#553
Originally Posted by ukki View Post
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.
I have just tested it and it works like a charm. Looks awesome!
Thanks a lot!
 

The Following User Says Thank You to DaSilva For This Useful Post:
Posts: 113 | Thanked: 26 times | Joined on Feb 2010 @ Port of Spain, Trinidad & Tobago
#554
I installed it yesterday and works perfectly!
Thanks for a nicely done app!
 

The Following User Says Thank You to cjsegninir For This Useful Post:
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#555
I released a new windows server for those who don't use git and there's a new client in -devel, that allows you to tag and download subtitles from the client.

On a side note, there's a script in scripts that allows you to download subs for all your videos and it actually works on N900 too if you install ruby.

Code:
./scripts/subfetch -k -v -l en
would download english subs for your collection. If you transfer it to your N900, leave out -k so it will use tracker instead of knots database.
 

The Following 2 Users Say Thank You to ukki For This Useful Post:
Posts: 121 | Thanked: 45 times | Joined on Mar 2010
#556
Originally Posted by ukki View Post
Ok, here are quick instructions to test, it isn't too hard actually. I just tried it myself and passthough seemed to work fine for xvid, but rest not so much. On your N900, run the following command as root:

Code:
apt-get install gstreamer0.10-tools
Then use your browser and select your profile from the dropdown list and start the stream. It doesn't have to work on your browser, most important thing is that it starts the stream (switch to log_level 1 and start Knots in terminal if you want to see the stream address, but it's usually the one listed below)

Then on your N900, run the following command (on same line):

Code:
gst-launch-0.10 -v playbin2 uri=http://desktopip:19780/stream.asf
Stream extension depends on stream_extension field in the profile so if you use ts mux and ts extension, it's stream.ts. Try different muxes that can be used with http (ts, ps, asf) and see what plays and what doesn't. If you get h264 working with gstreamer fine, I could consider switching to it on N900 version of Knots.
Setting pipeline to PAUSED ...
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: connection-speed = 0
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: download = FALSE
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: subtitle-encoding = NULL
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: uri = "http://desktopip:19780/stream.asf"
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: source = (GstSoupHTTPSrc) source
Pipeline is PREROLLING ...
ERROR: from element /GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source: Cannot resolve hostname
Additional debug info:
gstsouphttpsrc.c(913): gst_soup_http_src_finished_cb (): /GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
libsoup status code 2
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#557
Originally Posted by wildt View Post
Setting pipeline to PAUSED ...
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: connection-speed = 0
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: download = FALSE
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: subtitle-encoding = NULL
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: uri = "http://desktopip:19780/stream.asf"
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: source = (GstSoupHTTPSrc) source
Pipeline is PREROLLING ...
ERROR: from element /GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source: Cannot resolve hostname
Additional debug info:
gstsouphttpsrc.c(913): gst_soup_http_src_finished_cb (): /GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
libsoup status code 2
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
You need to use replace desktopip with the correct ip address of your computer. You can get it by opening cmd.exe and running
Code:
ipconfig /all
 

The Following 2 Users Say Thank You to ukki For This Useful Post:
Posts: 121 | Thanked: 45 times | Joined on Mar 2010
#558
Setting pipeline to PAUSED ...
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: connection-speed = 0
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: download = FALSE
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: subtitle-encoding = NULL
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: uri = "http://192.168.1.3:19780/stream.asf"
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0: source = (GstSoupHTTPSrc) source
Pipeline is PREROLLING ...
ERROR: from element /GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source: Cannot connect to destination
Additional debug info:
gstsouphttpsrc.c(913): gst_soup_http_src_finished_cb (): /GstPlayBin2laybin20/GstURIDecodeBin:uridecodebin0/GstSoupHTTPSrc:source:
libsoup status code 4
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
/home/user #
 
Posts: 121 | Thanked: 45 times | Joined on Mar 2010
#559
Hold your horses! Just repeated the very same command (arrow up in xterm) and now it works!
 
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#560
Did you start the stream with the browser with the correct profile and are you using asf mux? If so, check under Status tab that you don't have several streams running, because Knots increases the port number by one for each stream so next one is 19781 etc. If you start the server in terminal with log level 1, it prints out the correct stream name, just replace localhost with your ip address.
 

The Following User Says 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:52.