MJPEG Benefits - The huge Magic Lantern Enhancement

Started by theBilalFakhouri, June 09, 2019, 08:46:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theBilalFakhouri

Controlling LiveView size is a huge thing:

1-Better compressed videos 8-bit 4:2:2 JPEGs.
2-small Proxies for all mods in all cameras beside RAW.
3-Continuous recordings at maximum resolution.

+Correct real-time LiveView framing & real-time previews.

I see the next great enhancements are LiveView and JPEG encoder.

It seems also hard to do it  :P , but I am gonna give a new try to get correct (full size in x5) real-time framing in LiveView (That's the beginning). I will back on the track in about a month  :D .

I hope we can reach MJPEG by 2020.

yourboylloyd

Quote from: theBilalFakhouri on June 09, 2019, 08:46:31 PM

3-Continuous recordings at maximum resolution.

I hope we can reach MJPEG by 2020.

Define "maximum resolution" O_o
Join the ML discord! https://discord.gg/H7h6rfq

reddeercity

Here what happen before raw with(m)jpeg some very good info there ,
but the best thing that cam out of that was a stream of jpeg image but just at liveview resolution (e.g. 5d2 crop_mode-1120x752)
https://www.magiclantern.fm/forum/index.php?topic=2803.msg11009#msg11009
a1ex was able to save a crop_mode AVI (m)jpeg on his 5D2
https://www.magiclantern.fm/forum/index.php?topic=2803.msg13469#msg13469
The sad part for D5 camera , it seem (M)JPEG is not there or at lease has not being found yet like D4 cam

theBilalFakhouri

Quote from: yourboylloyd on June 10, 2019, 12:28:18 AM
Define "maximum resolution" O_o

For 5D3 it's 3840x1536 @ 24 FPS , other small cameras like 700D/EOS M is
~ 3072x1400 @ 24 FPS , in RAW there is no continuous recording in both resolutions it requires high write speed.

Also I think 1080p (1736x976) @ 50 FPS gonna be more stable and continuous in MJPEG. This resolution is already working on 700D with nearly no corrupted frames in uncompressed RAW but in Lossless RAW there are a lot.

theBilalFakhouri

@reddeercity

Yes I have motivated by a1ex experiment and other developers involved in this experiment, it's  cool.

Quote from: reddeercity on June 10, 2019, 02:40:05 AM
The sad part for D5 camera , it seem (M)JPEG is not there or at lease has not being found yet like D4 cam

Aren't LiveView frames MJPEG?

reddeercity

it's YUV 422 file which I think are bmp's but it could be jpeg , but for sure it raw YUV 422
I do know the HDMI on 5d2 uses (m)jpeg or (Jpeg) , I've being studying this from my log file .
It's not whether or not that D5 cam have jpeg but there no (M)JPEG encoder in the rom from what I read ,
thou it could have not being discovered yet  .
5D2 rom
ff84af8c: e28f2f76 add r2, pc, #472 ; ff84b16c: (6f636544)  *"DecodeComplete : DecodeMotionJpeg Error(%d)"
ff84afa0: e28f2e1f add r2, pc, #496 ; ff84b198: (6f636544)  *"DecodeComplete : DecodeMotionJpeg Error -> StopPreparation"

ffafb104: e28f2e27 add r2, pc, #624 ; ffafb37c: (205d565b)  *"[V] (PUB) MakeHDVramFromJpeg %d"
ffafb124: e28f2e27 add r2, pc, #624 ; ffafb39c: (205d565b)  *"[V] MakeHDVramFromJpeg Rot:%d Mag:%d Aspect:%d"

ff18bc4c: 228f1f67 addcs r1, pc, #412 ; ff18bdf0: (79616c50)  *"PlayBack\MjpegDecResizePath.c"
ff18bf44: e28f2f53 add r2, pc, #332 ; ff18c098: (504d495b)  *"[IMP][MDECRSZ] Args of SetParameterMjpegDecResize"

from my 5d2 HDMI log file
  CtrlSrv:ff8651f0:00:03: [BmpDDev] ChangePhysicalScreen (PUB)
so yea I think it's a BMP

So what I can see so far is at lease for 5d2 , there's 4 encoder's
BMP
JPEG
(M)JPEG
H264E

sorry kind of when off topic a little bit

Edit: oh yea what about "AVI" file extension  :D
just saw this ,
ff15f38c: 128f2f65 addne r2, pc, #404 ; ff15f528: (74696e49)  *"InitializeAviReader : CreateBinarySemaphore"
ff15f2cc: 128f2f89 addne r2, pc, #548 ; ff15f4f8: (52697641)  *"AviReaderTask : TakeSemaphore(%#x)"
ff15f38c: 128f2f65 addne r2, pc, #404 ; ff15f528: (74696e49)  *"InitializeAviReader : CreateBinarySemaphore"
ff16e1b4: e28f1f91 add r1, pc, #580 ; ff16e400: (4956412e)  *".AVI"
ff2edda8: e28f2f7d add r2, pc, #500 ; ff2edfa4: (49564120)  *" AVI 2.0 Format"

"Dir:0x%lx,JPG:0x%lx,RAW:0x%lx,AVI:0x%lx,MOV:0x%lx,WAV:0x%lx,MRK:0x%lx":
so I think this is all the supported file extension 5d2 can read
jpg , raw , avi , mov , & wav not too sure what "MRK" is thou .