Author Topic: MJPEG Benefits - The huge Magic Lantern Enhancement  (Read 676 times)

theBilalFakhouri

  • Contributor
  • Senior
  • *****
  • Posts: 351
MJPEG Benefits - The huge Magic Lantern Enhancement
« on: June 09, 2019, 08:46:31 PM »
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.
700D 1.1.5 | no more ISOless LV err 8

yourboylloyd

  • Freshman
  • **
  • Posts: 63
  • Sigma 35 Art = best lens hands down. Fight me
Re: MJPEG Benefits - The huge Magic Lantern Enhancement
« Reply #1 on: June 10, 2019, 12:28:18 AM »

3-Continuous recordings at maximum resolution.

I hope we can reach MJPEG by 2020.

Define "maximum resolution" O_o

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2054
Re: MJPEG Benefits - The huge Magic Lantern Enhancement
« Reply #2 on: June 10, 2019, 02:40:05 AM »
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

  • Contributor
  • Senior
  • *****
  • Posts: 351
Re: MJPEG Benefits - The huge Magic Lantern Enhancement
« Reply #3 on: June 10, 2019, 03:03:29 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.
700D 1.1.5 | no more ISOless LV err 8

theBilalFakhouri

  • Contributor
  • Senior
  • *****
  • Posts: 351
Re: MJPEG Benefits - The huge Magic Lantern Enhancement
« Reply #4 on: June 10, 2019, 03:06:39 AM »
@reddeercity

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

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?
700D 1.1.5 | no more ISOless LV err 8

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2054
Re: MJPEG Benefits - The huge Magic Lantern Enhancement
« Reply #5 on: June 10, 2019, 04:41:50 AM »
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
Code: [Select]
ff84af8c: e28f2f76 add r2, pc, #472 ; ff84b16c: (6f636544)  *"DecodeComplete : DecodeMotionJpeg Error(%d)"
ff84afa0: e28f2e1f add r2, pc, #496 ; ff84b198: (6f636544)  *"DecodeComplete : DecodeMotionJpeg Error -> StopPreparation"
Code: [Select]
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"
Code: [Select]
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
Code: [Select]
  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
Code: [Select]
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 ,
Code: [Select]
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"
Code: [Select]
"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 .