Page 2 of 4
Re: LUMIX GX80 UDP Streaming
Posted: Tue Oct 20, 2020 1:48 pm
by sinisrus
Thanks you plouf i test this ...
Re: LUMIX GX80 UDP Streaming
Posted: Tue Oct 20, 2020 3:03 pm
by sinisrus
I save the flux in file for my test :
https://gofile.io/d/l69fcJ
I use
Code: Select all
Data$=FiltToSting()
FindStr(Data$,"FFD8",False,0,#ENCODING_RAW) <= no work
FFD8 and FFD9 is start and end of picture (Normally)
then how to find ?!
I don't understand anything in binary
Re: LUMIX GX80 UDP Streaming
Posted: Tue Oct 20, 2020 9:13 pm
by plouf
is this part of image (a table ?) what is should display ?
https://pasteboard.co/JwyJzzC.jpg
, i used ffmpeg to decode images using ffmpeg -i lumix_flux -vcodec copy frame%d.jpg and cot above image15 times
all frames are "cut" in 8192 bytes, and image is corrupted, so i guess you are get them with hollywood receiveudp wich limits to 8kb (by default) but each frame (and each udp packet is a frame here ) was cut in the 8kb limit you should increade size in receiveudp to get bigger images
Re: LUMIX GX80 UDP Streaming
Posted: Wed Oct 21, 2020 12:27 am
by sinisrus
I test
FFmpeg -i lumix_flux -vcodec copy ram:frame%d.jpg
lumix_flux: Invalid data found when processing input
Re: LUMIX GX80 UDP Streaming
Posted: Wed Oct 21, 2020 6:32 am
by plouf
Rename it to lumix_flux.mjpeg and use ffmpeg from aminet latest git version (dated 2012) thats what i ise
In amiga (also in pc works too)
Re: LUMIX GX80 UDP Streaming
Posted: Wed Oct 21, 2020 9:26 am
by sinisrus
Yes it work !
I recreate the file and I have around 70 images but only half visible
I use data$ = receiveudpdata(af, 65536)
Re: LUMIX GX80 UDP Streaming
Posted: Wed Oct 21, 2020 5:54 pm
by sinisrus
May be a bug with the ReceiveUDPDdata () function
Re: LUMIX GX80 UDP Streaming
Posted: Wed Oct 21, 2020 8:13 pm
by plouf
i think you should test it wih a faster computer (PC ?) first to verify if there data are correct
additionally you may use a known to work tool, like tcpdump, in the faster PC to verify if this one receives correct data
these additional information will help you understand what is going on
Re: LUMIX GX80 UDP Streaming
Posted: Fri Oct 23, 2020 3:28 pm
by sinisrus
I tested FFPlay on AmigaOs4 and work perfectly
the problem comes from ReceiveUDPData(id, Size) <= size is allways 8192

Re: LUMIX GX80 UDP Streaming
Posted: Sat Oct 24, 2020 1:38 am
by SamuraiCrow
UDP packets have a header and the size with the header not included is a maximum of 65527 bytes because of the 8-byte header.