maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] PhoneStreamer - Nifty little app for streaming to your PC (https://talk.maemo.org/showthread.php?t=70877)

tetris11_ 2011-03-09 20:48

[Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
1 Attachment(s)
http://s12.postimage.org/luaoyjc3h/phonestream.jpg

What it does:
It's a frontend for a few gstreamer scripts, but it's (moderately) easy to use, and allows you to stream either the front/back camera to your Desktop PC either through VLC media player (windows/[linux/OSX]), Xout (linux/OSX).

What's changed in the rewrite:
* Dropped audio streaming for Windows (for now),
* Dropped webcam mounting (not used)
* Profiles can now store connections using sqlite database
* Added UDP streaming (fastest) to cmdline part of app (sypcam)
* Readable code
------------------------------------------------------------
Instructions:
Pick a profile, pick (or scan) for a target connections, then press the info button after streaming for further instructions.

Quality control:
If you have a low bandwidth and want to maintain a good signal, tick 'Quality' box and fill in number (0-100).

--------------------------------------------------------------
Using the SPYCAM:
If you want to stream a raw signal, you'll need to do X forwarding:

First ensure that your N900 supports X11 forwarding:
install xauth libxmuu1- 'sudo apt-get install xauth'

Now that that's setup:
1. From your Linux/Mac PC, ssh into your phone using the X flag:
'ssh root@<phone.ip> -X',
2. Once inside phone, type 'ps-spycam'

OTHERWISE
You can just ssh in without the X flag and select the low-bandwidth option. This will copy a gstreamer script to your home computer, you can then execute it via a command displayed on the screen.
-------------------------------------------------------------

X vs. VLC:
Xout option gives better quality streams using a different encoder and protocol. VLC has more network lag but can be streamed over http and is compatible with all systems.
-------------------------------------------------------------
Todo list:
*Stream through USB networking
*Add profiles
*Scan network for active connections
*Add zooming/focus feature
--------------------------------------------------------------
Changelog: (note I use random versioning)
1.5.2 Changes: Complete rewrite, sqlite database, arp-scan, usb networking, HTTP fix, audio dropped from windows, webcam dropped.
0.9.3 Changes: Fixed issue where windows users couldnt stream using VLC method, fixed audio streaming for SPYCAM, fixed regular audio streaming, tided scripts.
0.9.2 Changes: brought back old VLC method for stability, added file streaming, added ncurses SPYCAM version, fixed IP address issue for users with sudo problems.
0.9.1 Changes: http streaming, VLC no longer needs sdp file to be generated, VLC now has quality control, fixed local file error, fixed error that stopped windows users from streaming, temporarily disabled audio.
0.9.0 Changes: Reworked the menus, added dialog prompts, catches every scp error under the sun, user prompted to generate before they stream if they haven't done so already, now fully compatible with Titan's power kernel and the vanilla kernel, tidied scripts, removed horrible "Calibrate Camera" widget.
0.0.5 Changes: Save to local file, save to remote file, handaxe's Quality control, tidied some scripts, webcam now also uses jpeg encoding.
0.0.4 Changes: Front LED issue hopefully resolved, "Generate" crash issue permanently fixed (hopefully).
0.0.3 Changes: tidied up some scripts, but mostly this update was just to get on extras-devel.
0.0.2 Changes: Can now stream to webcam (if you have v4l2loopback built on your system), can now stream to an X window. Added volume control for audio (0 - 9 is the best range).
----------------------------------------------------------
PS: BIG thanks to gionni88 who pointed me in the right direction and saved me from hours of painful work, justice4all3000 for finding the workaround, leetnoob who thoroughly tested it and found major bugs, and biggest thanks to handaxe for the extremely helpful (and doable) suggestions + generally just helping out with everything. Another round of thanks to damion for getting VLC to stream over http and removing the need to generate any recieving file. Thanks guys!
-----------------------------------------------------------------

INSTALL:
The latest version (1.5.2) is not available on the repos yet due to council maintenance, but can be found in the below attachment.

Please make sure you install the dependencies, then install the package:
Code:

root;
apt-get install gstreamer-tools arp-scan socat espeak
dpkg -i /path/to/directory/phonestream_1_5_2_armel.deb


dashti 2011-03-09 22:51

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
coooooooool

sophocha 2011-03-09 22:55

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
thanks for this.How do you use it as a skype camera on the PC?Is that possible?

lucky88shp 2011-03-09 23:04

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
YAY finally a user-friendly version of your streaming app!!! Thnx will try it out now!!

MeeGoExperts 2011-03-09 23:06

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Well done. Looking good.

tetris11_ 2011-03-09 23:27

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Thanks alot guys, but it's far from perfect - so still some way to go!

@sophocha - I reckon it's unlikely, but more experienced users would probably disagree with me.
Edit: WOW handaxe that is amazing! If that can be done through a gstreamer pipeline, then I can definitely imlpement that into the app!

handaxe 2011-03-09 23:28

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Quote:

Originally Posted by sophocha (Post 964457)
thanks for this.How do you use it as a skype camera on the PC?Is that possible?

Clues here: http://talk.maemo.org/showpost.php?p...2&postcount=85

handaxe 2011-03-10 00:13

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
@tetris11_: in the previous thread you were asked about audio+video. It is possible, tho' it may hammer the n900s cpu and io. Down-sampling may be necessary (or small video and down sampled audio). Need to experiment.

Code:

gst-launch v4l2src ! queue ! video/x-raw-yuv,width=320,height=240,framerate=30/1 ! videoscale ! ffmpegcolorspace ! queue ! dsph264enc ! queue ! rtph264pay ! udpsink host=xxx.xxx.x.xxx port=5000 pulsesrc ! queue ! audio/x-raw-int,rate=8000,channels=1,depth=8 ! audioconvert ! audioresample ! nokiaaacenc ! queue ! rtpmp4apay ! udpserversink host=xxx.xxx.x.xxx port=5001

tetris11_ 2011-03-10 00:33

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
That is.... just amazing! I guess I'll include a third option in my combobox for the next update! Thanks!!

By then the app should hopefully be in the extras-devel repo, and the updates will be automatic too

couldvbb 2011-03-10 03:05

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
For Windows: Well, you're gonna have to get it on your system manually. The file is saved as MyDocs/n900videostrm.sdp or MyDcos/n900audiostrm.sdp

C:\Users\Administrator\Documents ? or C:\Users\Public\Desktop ?
I do not know


All times are GMT. The time now is 10:38.

vBulletin® Version 3.8.8