LUMIX GX80 UDP Streaming

Find quick help here to get you started with Hollywood
sinisrus
Posts: 291
Joined: Tue Apr 21, 2015 5:43 pm

LUMIX GX80 UDP Streaming

Post by sinisrus »

Hello,

I have a LUMIX GX80 i Use Wifi for send streaming vidéo on my Amiga
I would like to play the video stream which uses UDP protocol but I can't find a simple solution

HTTPStreamer > not support UDP :-(
AVcodec > not support UDP :-(

With ReceiveUDPData() and SendUDPData() I can't extract the information it's too hard for me :-(

Can you help me ?

plouf
Posts: 131
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: LUMIX GX80 UDP Streaming

Post by plouf »

what you need is the hURL plugin, but it is not that simple..
Christos

sinisrus
Posts: 291
Joined: Tue Apr 21, 2015 5:43 pm

Re: LUMIX GX80 UDP Streaming

Post by sinisrus »

Hurl with udp??

sinisrus
Posts: 291
Joined: Tue Apr 21, 2015 5:43 pm

Re: LUMIX GX80 UDP Streaming

Post by sinisrus »

I use ReceiveUDPData()
I just need to know which function to use to extract the information

plouf
Posts: 131
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: LUMIX GX80 UDP Streaming

Post by plouf »

data$ = REceveiUDPDAta(id)

unload all data (max 8kb) to data$ string, from there you have to know a bit more infromation on what this camera send for
you have to know exact protocol camera send's in order to see if there an "easy" way in hollywood

for example does your camera send a jpg image ?, does it stream ? ... etc
Christos

User avatar
airsoftsoftwair
Posts: 4349
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: LUMIX GX80 UDP Streaming

Post by airsoftsoftwair »

plouf wrote:
Thu Oct 15, 2020 11:42 pm
what you need is the hURL plugin, but it is not that simple..
...but very powerful! ;)

"Live" streaming from your camera probably won't work, though. I guess you have to save the data you get from your camera somewhere first and then play this stream with Hollywood.

sinisrus
Posts: 291
Joined: Tue Apr 21, 2015 5:43 pm

Re: LUMIX GX80 UDP Streaming

Post by sinisrus »


plouf
Posts: 131
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: LUMIX GX80 UDP Streaming

Post by plouf »

the above link says it simple enough, but you have to work it

according to this guy camera send mjpeg, ffmpeg can play mjpeg so avcodec most probably can decode it(untested in hollywood but its the simplest out there)
so you have to work out how each frame (a single jpeg image is the one frame in mjpeg) and construct it.
the guy in this link has reverse enough protocol so it points out where the length of the image begin, so you can calculate
The length of the header is given in the header; there's a 16-bit integer starting at index 30; add 32 to that and you've got the index of the first byte of the JPEG data.
so in general have to decode data$ = REceiveUDPdata(id) , check out the lengh of jpeg image, receive all data frames of iamge
build image (in RAM: for example), and display it
Christos

sinisrus
Posts: 291
Joined: Tue Apr 21, 2015 5:43 pm

Re: LUMIX GX80 UDP Streaming

Post by sinisrus »

The problem is, I don't know which function to use

plouf
Posts: 131
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: LUMIX GX80 UDP Streaming

Post by plouf »

which function for which part. wher have you stuck ?

as said

data$ = receiveudpdata(af) return data , the data there have to add them by yourself

the following command add data
data$ = data$..data$

but how much data consist a single jpeg image ?! uknown. !
According to the link you provide, this guy has found that bytes 30+31 have the length of the jpeg image follows
so you have to work a bit in order to construct a single jpeg image

first you have to gather enought data$ then compare header if its has "Content-Type: image/jpeg" then its the header exactly after that its the lenght of the jpeg file its after "Content-Length :" there are 2 bytes saying the exact length of the jpeg image follows.

the fact that hollywood consider all mem as "string" is helpfull to you since you have to use FindStr to search for header above.
then with MidStr (or CopyMem) copy the exact part of the jpeg image in RAM:
Christos

Post Reply