Using Xiaomi Yi Sports Camera with iPhone and VLC

Evgeniy

New Member
Joined
Apr 20, 2015
Messages
14
Reaction score
11
Country
Russian Federation
To start stream on Xiaomi camera just need send 2 commands to port 7878
Authenticate:
{"msg_id":257,"token":0,"param":0}
on reply get "param" parameter is a token

Activate streaming
{"msg_id":259,"token":#TOKEN FROM AUTH PARAM#,"param":"none_force"}
 

nwman

New Member
Joined
Apr 16, 2015
Messages
3
Reaction score
0
Country
United States
Any yi camera experts out there willing to consult with me on how to set up a multi camera system that can take still photos?
Ideally looking to be able to sync all the cameras together to take still photos. And to be able to control all camera settings avaliable if possible in the firmware. Followed being able to down load them. All via wire or wifi.
 

Andy_S

Active Member
Joined
May 5, 2015
Messages
621
Reaction score
192
Country
Czech Republic
Or just use my C&C PC app that allows you to view live stream with one click :)
 

intoi

Member
Joined
May 25, 2015
Messages
56
Reaction score
6
Country
Philippines
Can't make live stream work on VLC android app.
Linkineyes android version does not work either.
Is there other android app that works with Yi?
 

Andy_S

Active Member
Joined
May 5, 2015
Messages
621
Reaction score
192
Country
Czech Republic
intoi: there is a PC app which you can try. If that will not work, then there is something broken in your camera. Maybe reflash will help, but don't count on it..
 

asbtester

New Member
Joined
May 27, 2015
Messages
1
Reaction score
0
Country
China
Can't make live stream work on VLC android app.
Linkineyes android version does not work either.
Is there other android app that works with Yi?
Remote Video apk by Spondias Inc works.
The link is post by martin555 at #20 in this thread.
 

S3TT

New Member
Joined
Jul 8, 2015
Messages
11
Reaction score
2
Country
Germany
Hey,

got my XYi today, vlc is working fine using the rtsp connection.
My target is to get a higher quality video (at least 720p - like on hdmi out) also using the rtsp connection.
Is there any chance to achieve this?
 

Andy_S

Active Member
Joined
May 5, 2015
Messages
621
Reaction score
192
Country
Czech Republic
as pointed out many times - no.
 

Cool

New Member
Joined
Jul 24, 2016
Messages
5
Reaction score
0
Country
Germany
To start stream on Xiaomi camera just need send 2 commands to port 7878
Authenticate:
{"msg_id":257,"token":0,"param":0}
on reply get "param" parameter is a token

Activate streaming
{"msg_id":259,"token":#TOKEN FROM AUTH PARAM#,"param":"none_force"}
I did this in python

Code:
#! /usr/bin/env python
# encoding: windows-1250
#
# Res Andy

import os, re, sys, time, socket, urllib2
camaddr = '192.168.42.1';
camport = 7878;

def wait_for_internet_connection():
  while True:
    try:
      response = urllib2.urlopen('http://%s' % camaddr,timeout=1)
      return
    except urllib2.URLError:
      pass

def main():
  srv = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  srv.connect((camaddr, camport))
 
  token = ''         
  while token == '':   
    time.sleep(1)
    print "Send"
    srv.send('{"msg_id":257,"token":0}')
    data = srv.recv(512)
    print "Receive: %s" % data
    if "rval" in data: 
      if len(re.findall('"param": (.+) }',data)) > 0:
        token = re.findall('"param": (.+) }',data)[0]
      else:
        token = ''
    else:
        data = srv.recv(512)
        if "rval" in data:
            token = re.findall('"param": (.+) }',data)[0]   
 
  if token != '':
    tosend = '{"msg_id":259,"token":%s,"param":"none_force"}' %token
    srv.send(tosend)
    srv.recv(512)
    print "Live webcam stream is now available."
    print 'Run VLC, select "Media"->"Open network stream" and open'
    print 'rtsp://%s/live' %camaddr
    print
    print "Press CTRL+C to end this streamer"
    
    while 1:
        time.sleep(1)

wait_for_internet_connection()
main()
Yet all I get is Receive: { "rval": -4, "param_size": 0, "session_id": 0 }

What to do?
 

Similar threads


Top