Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password
    Poll: Does the "generate" button cause the app to crash?
    Poll Options
    Does the "generate" button cause the app to crash?
    View Poll Results

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

    Reply
    Page 7 of 36 | Prev |   5     6   7   8     9   17 | Next | Last
    tetris11_ | # 61 | 2011-03-12, 15:32 | Report

    Cant. That's a sudo command, and sudo commands launched from Qt don't allow pipelines or arguments.
    E.g. "sudo ifconfig" works, "sudo ifconfig | grep etho" wont....

    Edit: No wait.... I jsut cant type, thats not a sudo command - Ill definitely try that!

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by tetris11_; 2011-03-12 at 15:36.

     
    K1ll3rm4n | # 62 | 2011-03-13, 10:15 | Report

    I still have some problems, here is what happens if I write ifconfig on my n900:

    Code:
    Root shell enabled
    
    
    BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    /home/user # ifconfig
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:1075 errors:0 dropped:0 overruns:0 frame:0
              TX packets:1075 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:104968 (102.5 KiB)  TX bytes:104968 (102.5 KiB)
    
    phonet0   Link encap:UNSPEC  HWaddr 15-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
              UP POINTOPOINT RUNNING NOARP  MTU:4000  Metric:1
              RX packets:4133 errors:0 dropped:0 overruns:0 frame:0
              TX packets:179 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:100 
              RX bytes:95892 (93.6 KiB)  TX bytes:3581 (3.4 KiB)
    
    wlan0     Link encap:Ethernet  HWaddr 20:D6:07:55:6D:9F  
              inet addr:10.0.0.5  Bcast:10.0.0.255  Mask:255.255.255.0
              inet6 addr: fe80::22d6:7ff:fe55:6d9f/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:42987 errors:0 dropped:0 overruns:0 frame:0
              TX packets:47078 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:33641883 (32.0 MiB)  TX bytes:44535738 (42.4 MiB)
    
    wmaster0  Link encap:UNSPEC  HWaddr 00-1F-DF-90-88-D4-00-00-00-00-00-00-00-00-00-00  
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    I need this: What IP I should write to that .sdp file, and which IP should I write to program on n900 ( I guess that ip of my PC)?
    Thanks

    Edit | Forward | Quote | Quick Reply | Thanks

     
    tetris11_ | # 63 | 2011-03-13, 13:48 | Report

    On the n900, yes you write the IP of your PC.
    In the sdp file, it should be 'inet addr:' after wlan0.
    (which in your case is '10.0.0.5', but I've never seen an address like that before)

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to tetris11_ For This Useful Post:
    K1ll3rm4n

     
    jstokes | # 64 | 2011-03-13, 13:49 | Report

    Originally Posted by tetris11_ View Post
    Cant. That's a sudo command, and sudo commands launched from Qt don't allow pipelines or arguments.
    E.g. "sudo ifconfig" works, "sudo ifconfig | grep etho" wont....
    QProcess::execute [or whatever] ("sh -c \"sudo ifconfig | grep etho\"");

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to jstokes For This Useful Post:
    tetris11_

     
    tetris11_ | # 65 | 2011-03-13, 14:01 | Report

    Are you sure this works!!? I haven't got time this week to actually do anything, but have you used pipelines from Qt before?

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to tetris11_ For This Useful Post:
    jstokes

     
    jstokes | # 66 | 2011-03-13, 14:07 | Report

    Originally Posted by tetris11_ View Post
    Are you sure this works!!? I haven't got time this week to actually do anything, but have you used pipelines from Qt before?
    Not from a Qt application, sorry, but I've used the trick successfully in a GTK+ application

    Though, http://www.qtcentre.org/threads/1866...mmand-QProcess suggests it works for Qt but you have to add "-c" etc. to the arguments part of QProcess

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to jstokes For This Useful Post:
    tetris11_

     
    tetris11_ | # 67 | 2011-03-13, 14:22 | Report

    awesome! thanks dude, you just simplified a whole process for me!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to tetris11_ For This Useful Post:
    jstokes

     
    teemui | # 68 | 2011-03-13, 15:02 | Report

    Any help guys.. I cant get any picture to my computer.. this is my sdp file:
    Originally Posted by
    v=0
    m=video 7 RTP/AVP 96
    c=IN IPN 85.77.136.186
    a=rtpmap:96 H264/90000
    my n900 ip is: 85.77.136.186 and i use port 7 i have
    port monitor running so i know data is starting to flow when
    i press stream from n900, but cant figure out why vlc is not showing anything, i get no errors when opening the .sdp file it just does nothing,
    im using xp.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    ZogG | # 69 | 2011-03-13, 15:30 | Report

    Originally Posted by teemui View Post
    Any help guys.. I cant get any picture to my computer.. this is my sdp file:

    my n900 ip is: 85.77.136.186 and i use port 7 i have
    port monitor running so i know data is starting to flow when
    i press stream from n900, but cant figure out why vlc is not showing anything, i get no errors when opening the .sdp file it just does nothing,
    im using xp.
    i think you are using system port

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to ZogG For This Useful Post:
    teemui

     
    tetris11_ | # 70 | 2011-03-13, 15:59 | Report

    yeah, try using an absurd port number like 5000. Also I've never tried this from any other network other than your go-standard 192.168.x.y LAN.....so I dont know if it will stream through the inrenet...

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to tetris11_ For This Useful Post:
    teemui

     
    Page 7 of 36 | Prev |   5     6   7   8     9   17 | Next | Last
vBulletin® Version 3.8.8
Normal Logout