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)

impeham 2012-09-28 21:08

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
After starting to stream, i am trying to see the camera from VLC. i enabled the logging while opening the network stream on the N900 and i get the following output:

main debug: adding item `http://192.168.1.100:5001' ( http://192.168.1.100:5001 )
qt4 debug: Adding a new MRL to recent ones: http://192.168.1.100:5001
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 16 items, index 14
main debug: processing request item: http://192.168.1.100:5001, node: Playlist, skip: 0
main debug: resyncing on http://192.168.1.100:5001
main debug: http://192.168.1.100:5001 is at 15
main debug: starting playback of the new playlist item
main debug: resyncing on http://192.168.1.100:5001
main debug: http://192.168.1.100:5001 is at 15
main debug: creating new input thread
main debug: Creating an input for 'http://192.168.1.100:5001'
main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\Liran\AppData\Local\Temp'
main debug: `http://192.168.1.100:5001' gives access `http' demux `' path `192.168.1.100:5001'
main debug: creating demux: access='http' demux='' location='192.168.1.100:5001' file='\\192.168.1.100:5001'
main debug: looking for access_demux module: 0 candidates
main debug: no access_demux module matched "http"
main debug: TIMER module_need() : 0.202 ms - Total 0.202 ms / 1 intvls (Avg 0.202 ms)
main debug: creating access 'http' location='192.168.1.100:5001', path='\\192.168.1.100:5001'
main debug: looking for access module: 2 candidates
access_http debug: http: server='192.168.1.100' port=5001 file=''
main debug: net: connecting to 192.168.1.100 port 5001
qt4 debug: IM: Setting an input
main debug: no fetch required for (null) (art currently (null))
main debug: connection succeeded (socket = 1264)
access_http debug: protocol 'HTTP' answer code 200
access_http debug: Server: socat kludge
access_http debug: Content-Type: video/x-msvideo
access_http debug: this frame size=10000000
access_http debug: Connection: close
main debug: using access module "access_http"
main debug: TIMER module_need() : 5523.987 ms - Total 5523.987 ms / 1 intvls (Avg 5523.987 ms)
main debug: Using stream method for AStream*
main debug: starting pre-buffering

at this point nothing happens (i waited more than 10 minutes) and if i stop the streaming from the N900, VLC log shows this output:

main error: cannot pre fill buffer
main warning: cannot create a stream_t from access
main debug: removing module "access_http"
main debug: dead input
qt4 debug: IM: Deleting the input
main debug: changing item without a request (current 15/16)
main debug: nothing to play
main debug: TIMER input launching for 'http://192.168.1.100:5001' : 823210.211 ms - Total 823210.211 ms / 1 intvls (Avg 823210.172 ms)

So it seems that in general there is no connection error - ip and port are fine, but still - nothing is streamed to VLC window - it just stays black screen.

Anyone has any idea what is causing this?

j3m0jak 2012-12-11 11:17

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
sorry to sound like a complete n00b.. but do i need a wifi router or is the pc wifi enough?

handaxe 2012-12-11 11:55

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
You need an IP address to stream to so a router / access point is easiest. Otherwise you should be able to use ad-hoc mode n900 to pc.

j3m0jak 2012-12-11 14:03

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

Originally Posted by handaxe (Post 1303418)
You need an IP address to stream to so a router / access point is easiest. Otherwise you should be able to use ad-hoc mode n900 to pc.

okay.. heres wat i did
1. used ad hoc and connected n900 to pc..
2. used ipconfig and found out ip..
3. started phonestream in http mode and added pc ip to address and a random port..
4 hit stream and typed in the address shown in message into vlc networkmode ..
and hit play.. but vlc doesnt do anythin... my firewalls off..before there used to be an error message.. now there isnt.. but no video.. please help!

handaxe 2012-12-11 14:44

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
I will need to try this myself. There are reports of issues on prev. page . Let me see .... Will take some time.

tetris11_ 2012-12-13 13:30

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
@j3m0jak -- http mode is really very unstable.
Phonestreamer extracts IP address using this (poorly constructed) command:
Code:

echo "ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' " | root
Enter it into Xterm and post what output you get. I didn't cater for Ad-hoc or USB-networking mode, so I'm not sure this method will work that way

@impeham -- what mode are you using?

@everyone -- sorry, I suck as usual in sticking to my promises of the new Phonestream app. I'll try work on it some more today.

handaxe 2012-12-14 00:45

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

Just to confirm, phonestreamer works for you with VLC?

Am troubleshooting, as it does not for me and it appears, for some others. Must dredge up memory about gst-launch....

Update: I suspect that issues with VLC are not strictly due to phonestreamer but with gst-launch and perhaps udp on some LANS. I have failed to get anything going with gst-launch in a terminal and don't yet know why.

tetris11_ 2012-12-15 01:20

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
^Hey... no it's not. When did that happen? It was working a month ago.

Wireshark is showing activity coming out of the phone, but VLC logging shows nothing being recieved.

Hmm. handaxe, any thoughts?

===============================================

Update: I've finished the Profiles/Database part of the upcoming PhoneStreamer update. I just need to sort out the backend stuff.

Quick question - Anybody mind if I just chuck out the VLC stuff altogether and just focus on a simple HTTP stream (cross-platform)?
I can then migrate the XWindow and Webcam mounting stuff to the cmdline version of the app, since no one really uses them except Linux-users.

Yay or Nay?

handaxe 2012-12-15 10:46

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
I think your proposal is fine. VLC etc will of course be able to view the stream so one will not have to use a browser.

As for the gstreamer to VLC problem I am at a loss. I have also failed to get gstreamer (n900) to gstreamer (pc) stuff to work. Does it work for you? Need more time to play but kids take up time.....

tetris11_ 2012-12-15 12:37

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
lol I forgot people here have actual lives :D

I think it might just be VLC no longer being compatible with the sdp file. Older versions might work, but I'm not gonna test to see which ones -- right now I'm gonna go ahead and make a simple backend

(unless someone veto's)
Laters.

tetris11_ 2012-12-19 18:54

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Right, well I finished the rewrite yesterday.

Couldn't upload it to extras-devel because of the current migration process, but I've uploaded the deb to the frontpage.

Let me know how it feels or if you come across any problems/crashes/bugs.

handaxe 2012-12-19 22:59

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Wow - quite some polish there.... Works for me. I am unsure what the profile info stores besides the name given that one then specifies a connection that seems to be the critical info.
The http method is for me faster in terms of lag once going than rtp. The 7 sec delay (as opposed to 3 secs) occurs on startup, at least for me.
And be encouraged to finish watchdog. It works but the tiny fonts are a pain. Your interface for phonestreamer is well proportioned.
Damn, your hacking skills have come a long way. Respect...

tetris11_ 2012-12-19 23:03

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
also just to let you know I just got Audio+Video to stream together (using the code handaxe posted on the first page)
It might even work over HTTP.

Expect a sudden and dramatic update sometime soon.

Edit: Hey cheers, nice to be appreciated!
Hehe you must have a decent wifi because the lag is constant for me. The profiles are for things like 'Home'/'Work', so you can store multiple connections for each profile name. I dont use more than one connection myself, but it was requested. Watchdog... eh, I'll get around to it ;)

usern900 2012-12-26 10:10

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
when I try install it says -couldn't find arp scan..
what is it please help me

handaxe 2012-12-26 11:37

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

Originally Posted by usern900 (Post 1307851)
when I try install it says -couldn't find arp scan..
what is it please help me

Before installing phonestreamer install arp-scan (it is in extras-devel a repository that needs enabling). In terminal either as root user or preceded by "sudo" type:
Code:

apt-get install arp-scan
If this makes no sense to you then please read what you find by searching on "sudo" "root access" "extras repository" on the wiki and these forums.

usern900 2012-12-26 18:17

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Thanks for your reply..
I installed succesfully. But I didn't connect my pc. When I scan button It show "no active connection".
I have a usb and also wifi...
How can I connect with them?

handaxe 2012-12-26 19:27

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
You must of course be connected to the network and for ease of testing, to the same network to which the PC is attached. If scan fails to find the IP address of the PC then gather that info from the PC and type it in the text box and choose a high port no. eg 9000.

usern900 2012-12-26 20:56

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
I connected with Wifi. but still doesn't work

Current Phone IP:
Code:

169.254.95.183
My pc ip 169.254.23.154
network type: ad hoc
rate: 54mbps
encryption type: none
wireless mode: 11g
channel: 1

then I tried on Vlc.. but It says:
Quote:

VLC is unable to open the MRL 'http://169.254.95.183/9000/stream.avi'. Check the log for details.

And how can I use it with USB?

handaxe 2012-12-26 22:31

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

Originally Posted by usern900 (Post 1308003)

Try
Code:

http://169.254.95.183:9000/stream.avi
Note the colon between the IP and the port (9000); it is not a slash.

I have never tried usb so it's your experiment :-)

usern900 2012-12-27 12:04

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

Originally Posted by handaxe (Post 1308021)
Try
Code:

http://169.254.95.183:9000/stream.avi
Note the colon between the IP and the port (9000); it is not a slash.

I have never tried usb so it's your experiment :-)

thanks..
Now Vlc shows me just black screen..
is it turn on camera? or something else?

tetris11_ 2012-12-27 12:12

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
usern900 -- adhoc mode finds no connections? Hmm, I need to test.

The black screen means that an image is being sent, but the camera cover isn't open or blocked somehow. There is also an (initial?) 7 second delay so you need to wait before you can see anything

usern900 2012-12-27 13:10

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

Originally Posted by tetris11_ (Post 1308169)
usern900 -- adhoc mode finds no connections? Hmm, I need to test.

The black screen means that an image is being sent, but the camera cover isn't open or blocked somehow. There is also an (initial?) 7 second delay so you need to wait before you can see anything

Yes, doesn't find on adhoc mode. it has to type the ip manually.
But, it found on a scan result when I start a 'wifi hotspot connection'.. what about it?

And of course I opened cover.
What else thing will be blocked?

handaxe 2012-12-27 14:59

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

Originally Posted by usern900 (Post 1308198)
And of course I opened cover.
What else thing will be blocked?

The most obvious would be using the very poor quality front-camera (set in source selector) that frequently returns a very dark image. But you prolly have tested with both, so....

All I can suggest for now is that you point the camera at a bright light source to check if there is an image and if this is some kind of exposure issue.

(I am not surprised that arp does not work in ad-hoc mode)....

handaxe 2012-12-27 16:09

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
OK, a quick test shows that http streaming now does not work for me, tho'it did a few days back. Am investigating - the stream connects, and then drops. VLC on the PC definitely sees the stream. This is under linux with a cutting edge VLC (VLC media player 2.1.0-git Rincewind). Last time it worked was on Windows with VLC stable.

@Usern900: try rtp streaming. That still works for me. Does it do so for you?

BTW, tetris11_ the usage info screen needs a correction as it shows the dash between the IP and port as usern900 initially did.

Update: the http streaming remains an issue. Choosing live-view fails to bring up a gstreamer window, but it does so for rtp. Seems that the gst pipe-line is not created, and so socat provides a connect that has nothing to deliver.

I am on CSSU-testing and kernel-power. No aspersions cast that is for info...

usern900 2012-12-28 15:14

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
still doesnt work both on rtp mode and http

I tried as tcp://169.254.95.183/9000 (with : too) on Vlc 2.0.5 .. or must I use older version?
and my os is win 7..

Could you get me more method? please

tetris11_ 2012-12-28 16:32

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
It's working for me guys...
I'm using VLC 2.1.0-git-20120803-0402 Rincewind version on Windows 7 64-bit Home Premium.

Have you tried restarting the phone? Sometimes the ports its previously used need to be cleared.

Otherwise have you tried a different port?

TODO:
*Fix info screen

usern900 2012-12-28 16:45

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Ok. I'll be test it.. but I can't find vlc 2.1.0 rincewind version. can u provide me download link :P

handaxe 2012-12-28 17:19

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

Originally Posted by usern900 (Post 1308547)
Ok. I'll be test it.. but I can't find vlc 2.1.0 rincewind version. can u provide me download link :P

Latest is here: http://nightlies.videolan.org/

I doubt the problem is the version of VLC. When my kid vacates the PC I will test with Windows. My earlier issue was with linux. Will test that as well.

handaxe 2012-12-28 17:47

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
I don't get the gst-launch liveview window under http but I do with rtp and the latter streams fine. Soooo, as I opined earlier the gst pipeline appears to fail. Tetris11_ please give the gst-launch command you are using so that I can play via the CLI. Yes I could poke around in the source but I had enough sauce this season :)
tnx

handaxe 2012-12-29 13:01

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
I uninstalled the 720p video libraries and http streaming works for me. Re-install 720p stuff and it does not, although rtp does function

@usern900: are you using the 720p video posted elsewhere in this forum? If you are, try removing that and retrying phonestreamer. I realise that both http and rtp don't work for you but it is worth a shot.

tetris11_ 2012-12-31 17:50

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Sorry - didnt recieve updates to this thread....

We have 720p libraries? I haven't installed them.
Here's the http command:

Code:

filer=/home/user/fifo

gst-launch-0.10 v4l2src device=/dev/video0 ! videoscale !\
 video/x-raw-yuv,width=640,height=480 !\
 dsph263enc !\
 multipartmux !\
 filesink location=$filer  > /dev/null & cat $filer

Let me know how it goes.

epson800 2013-03-12 00:32

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
hello im trying to get the 9.3 version to work, all i really want is the audio, but i can't get video to work either.

First of all is there anything required to make it work other than just installing the app to the n900 and VLC on the pc?

Secondly, i installed HTOP app to n900, can someone with this app working tell me what HTOP should look like when phonestream is actually working right?

I used the .sdp file and get this error in vlc

es demux error:cannot peek
live555 demux error: no data recieved in 10s

I noticed one very odd thing, when this file is opened VLC tries to connect using a port in the 55000 range, rather than the port given in the .sdp file.

I know my pc can ping my n900
i tried pinging my pc but not sure if that worked right as im not used to the outputs in that format it just gave 1 line that say 56k bytes sent or something

I know something is being sent to the router at least because its lights go crazy when the app is turned on to stream, still not sure if its making it to the pc tho.

Lastly one suggestion for the app, turn off that red light :P
Oh and let us use any port range, rather than below 10k

phap 2013-03-24 12:16

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

Originally Posted by tetris11_ (Post 1306197)
also just to let you know I just got Audio+Video to stream together (using the code handaxe posted on the first page)
It might even work over HTTP.

Expect a sudden and dramatic update sometime soon.

Edit: Hey cheers, nice to be appreciated!
Hehe you must have a decent wifi because the lag is constant for me. The profiles are for things like 'Home'/'Work', so you can store multiple connections for each profile name. I dont use more than one connection myself, but it was requested. Watchdog... eh, I'll get around to it ;)

Hello, can someone help me here? I understand I have to write this code on the n900 (from the first page)
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
to get audio and video together but what should I write on my pc?
Thank you

nokiabot 2013-05-20 18:52

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Whats up on the audio stream??
Would love to hear on further devlopments not posted:)

marczolano 2014-08-14 02:32

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
When i start a stream, in vlc the image is SO dark and green tone. Why? Thanks and sorry for my bad english.

sirvival 2014-10-18 11:22

Re: [Announce] PhoneStreamer - Nifty little app for streaming to your PC
 
Hi,
I have a N900 with CSSU and Kernel Power installed.

Since I do not use the phone anymore and I hate wasting I started to look for ways to use it as a webcam.
Currently I use a really crapy old digital camera.

So I installed PhoneStreamer.
First thing I noticed is that on
http://my-maemo.com/software/applica...to=2165&faq=34
the interface looks totaly different than the one in this post and on my phone:
http://talk.maemo.org/showpost.php?p=964337&postcount=1

My desktop is a Mint 17 Linux.
I use Wlan on the phone (didnt get the USB Network connection working. Way to many steps and not easy to understand) which is coming from a Fritzbox router.
I can ping the phones ip from my desktop.

When I setup VLC as described under the (i) button inside of phonestreamer I get an error message (not possible to open).

What am I doing wrong and how come the interface looks different?

THX!


All times are GMT. The time now is 19:31.

vBulletin® Version 3.8.8