Skip to content

Instantly share code, notes, and snippets.

@meltingice
Created December 26, 2013 06:05
Show Gist options
  • Save meltingice/8130348 to your computer and use it in GitHub Desktop.
Save meltingice/8130348 to your computer and use it in GitHub Desktop.
Sony DSC-QX10 raw DNLA stream. I believe it transmits image data in JPEG form.
<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:dlna="urn:schemas-dlna-org:device-1-0" xmlns:av="urn:schemas-sony-com:av">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.50</dlna:X_DLNADOC>
<deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>
<friendlyName>DSC-QX10</friendlyName>
<manufacturer>Sony Corporation</manufacturer>
<manufacturerURL>http://www.sony.com/</manufacturerURL>
<modelDescription>SonyDigitalMediaServer</modelDescription>
<modelName>SonyImagingDevice</modelName>
<modelURL>http://www.sony.net/</modelURL>
<UDN>uuid:00000000-0005-0010-8000-1c994c18eca3</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId>
<SCPDURL>/CdsDesc.xml</SCPDURL>
<controlURL>/upnp/control/ContentDirectory</controlURL>
<eventSubURL>/upnp/event/ContentDirectory</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<SCPDURL>/CmsDesc.xml</SCPDURL>
<controlURL>/upnp/control/ConnectionManager</controlURL>
<eventSubURL>/upnp/event/ConnectionManager</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-sony-com:service:ScalarWebAPI:1</serviceType>
<serviceId>urn:schemas-sony-com:serviceId:ScalarWebAPI</serviceId>
<SCPDURL>/ScalarWebApiDesc.xml</SCPDURL>
<controlURL/>
<eventSubURL/>
</service>
</serviceList>
<iconList>
<icon>
<mimetype>image/jpeg</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/DLNA_camera_48.jpg</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/DLNA_camera_120.jpg</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/DLNA_camera_48.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/DLNA_camera_120.png</url>
</icon>
</iconList>
<av:X_ScalarWebAPI_DeviceInfo xmlns:av="urn:schemas-sony-com:av">
<av:X_ScalarWebAPI_Version>1.0</av:X_ScalarWebAPI_Version>
<av:X_ScalarWebAPI_ServiceList>
<av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_ServiceType>guide</av:X_ScalarWebAPI_ServiceType>
<av:X_ScalarWebAPI_ActionList_URL>http://10.0.0.1:10000/sony</av:X_ScalarWebAPI_ActionList_URL>
<av:X_ScalarWebAPI_AccessType/>
</av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_ServiceType>system</av:X_ScalarWebAPI_ServiceType>
<av:X_ScalarWebAPI_ActionList_URL>http://10.0.0.1:10000/sony</av:X_ScalarWebAPI_ActionList_URL>
<av:X_ScalarWebAPI_AccessType/>
</av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_ServiceType>accessControl</av:X_ScalarWebAPI_ServiceType>
<av:X_ScalarWebAPI_ActionList_URL>http://10.0.0.1:10000/sony</av:X_ScalarWebAPI_ActionList_URL>
<av:X_ScalarWebAPI_AccessType/>
</av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_Service>
<av:X_ScalarWebAPI_ServiceType>camera</av:X_ScalarWebAPI_ServiceType>
<av:X_ScalarWebAPI_ActionList_URL>http://10.0.0.1:10000/sony</av:X_ScalarWebAPI_ActionList_URL>
<av:X_ScalarWebAPI_AccessType/>
</av:X_ScalarWebAPI_Service>
</av:X_ScalarWebAPI_ServiceList>
<av:X_ScalarWebAPI_ImagingDevice>
<av:X_ScalarWebAPI_LiveView_URL>
http://10.0.0.1:60152/liveview.JPG?%211234%21http%2dget%3a%2a%3aimage%2fjpeg%3a%2a%21%21%21%21%21
</av:X_ScalarWebAPI_LiveView_URL>
<av:X_ScalarWebAPI_DefaultFunction>RemoteShooting</av:X_ScalarWebAPI_DefaultFunction>
</av:X_ScalarWebAPI_ImagingDevice>
</av:X_ScalarWebAPI_DeviceInfo>
</device>
</root>
➜ ~ curl -v http://10.0.0.1:60152/liveview.JPG\?%211234%21http%2dget%3a%2a%3aimage%2fjpeg%3a%2a%21%21%21%21%21
* About to connect() to 10.0.0.1 port 60152 (#0)
* Trying 10.0.0.1...
* Adding handle: conn: 0x7f89e1804000
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x7f89e1804000) send_pipe: 1, recv_pipe: 0
* Connected to 10.0.0.1 (10.0.0.1) port 60152 (#0)
> GET /liveview.JPG?%211234%21http%2dget%3a%2a%3aimage%2fjpeg%3a%2a%21%21%21%21%21 HTTP/1.1
> User-Agent: curl/7.30.0
> Host: 10.0.0.1:60152
> Accept: */*
>
< HTTP/1.1 200 OK
< Transfer-Encoding: chunked
< Pragma: no-cache
< CACHE-CONTROL: no-cache
< Content-Type: image/jpeg
< transferMode.dlna.org: Interactive
< Connection: Keep-Alive
< Date: Thu, 26 Dec 2013 05:52:56 GMT
* Server UPnP/1.0 SonyImagingDevice/1.0 is not blacklisted
< Server: UPnP/1.0 SonyImagingDevice/1.0
<
... raw data follows ...
@MEPF
Copy link

MEPF commented Jan 22, 2014

Hi,
You're the only person I've found talk about DSC QX10. Please tell me if you have ideas how I can't make to work on Windows, internet explorer or Media Player ...
Thank you.

@neil-mao
Copy link

neil-mao commented Feb 8, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment