1

I am trying to use liveview through the Camera Remote SDK in order to connect a SONY QX1 lensless camera to a PC over the wireless link. All of the APIs I have tested so far work great except the liveview. I have not been able to find a viewer app that allows decoding of the jpg stream. Does one exist? I would prefer not to write this myself. I am currently using VB in Visual.net to communicate with the camera and can transfer files and control the camera just fine. I could just use a bit of help with the liveview process.

I can capture the stream in Chrome but it will not display the file it just wants to download the stream... So far no other viewer seems to be able to parse the stream.

Any help would be appreciated. I hope I have been clear in describing the problem... I like the camera.


As per the comment, here is some code that works with the camera. It is written in VB6 but presumably will work with Visual.Net:

Hi,

Below is an example of code I have used for communicating with the camera using VB6 and MSXML2.xmlhttp. It works fine for all commands: I can take pictures, start and stop movies, etc. using the API commands in the Sony SDK. The code below takes a still picture with the QX1 and stores it on the internal memory card.

For liveview I enter the URL for the liveview stream (http://192.168.122.1:8080/liveview/liveviewstream) into Chrome and the browser starts to download the file but does not display the stream, just stores it in the download file location.

I am looking for a procedure for parsing and displaying the stream in a web browser or picture box.

Tom

Dim sURL As String
sURL = "http://192.168.122.1:8080/sony/camera"

Dim xmlhttp As New MSXML2.xmlhttp



Dim strXML() As Byte
strXML = "{""method"": ""actTakePicture"", ""params"":[ ], ""id"":  1, ""version"": ""1.0""}" & vbCrLf
strXML = StrConv(strXML, vbFromUnicode)

'Start of code to use HTTP POST
xmlhttp.open "POST", sURL, False
xmlhttp.setRequestHeader "Content-type:json;charst=utf-8" & vbCrLf, ""

xmlhttp.send (strXML)  '
Text1.Text = xmlhttp.responsetext
JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
  • Welcome to Stackoverflow! I really think you should provide a code example demonstrating what you have done, and where the problem relies. – davidkonrad Jan 29 '15 at 20:03
  • The LiveView stream is sent using the HTTP generic `application/octet-stream` media type, using the `chunked` transfer encoding to wrap the individual images. A web browser is not going to know how to handle the stream, which is why the data ends up in the download folder as an endless download. Something like the `multipart/x-mixed/replace` media type, or other similar server-push technology, would have been more suitable for this task. This means only LiveView-enabled HTTP clients will be able to recognize a LiveView stream. You will have to read/decode/display the HTTP chunks in your code. – Remy Lebeau Jul 21 '15 at 18:17

0 Answers0