Feature Request (Extract and process frames from a motion JPEG image)

Tommaso-Greco wrote on 11/15/2023, 11:07 AM

How can I extract frames from an MJPG (Motion JPG) image taken with my smartphone (S23 Utra) using Vegas Pro? (Currently if imported into Vegas Pro they become simple JPGs).

Thanks to all the developers who can help

Comments

mark-y wrote on 11/15/2023, 7:34 PM

JPEG motion image sequences are individual files, like any other still pictures, grouped and numbered in order.

You can easily import whole JPEG Image Sequences into Vegas using the command. Open->Image Sequence. You can specify the duration of each image on the timeline in Options->Preferences.

Samsung phones do not shoot Motion JPEG Video (MJPEG).

 

Tommaso-Greco wrote on 11/15/2023, 8:56 PM

Le sequenze di immagini in movimento JPEG sono file singoli, come qualsiasi altra immagine fissa, raggruppati e numerati in ordine.

 

I telefoni Samsung non riprendono video Motion JPEG (MJPEG).

 

Maybe I didn't explain myself well, I know how it works regarding the "sequences" to be imported into Vegas. I am referring exactly to moving images (Motion JPEG) recorded with my smartphone "Samsung S23 Ultra"

mark-y wrote on 11/15/2023, 9:47 PM

Well I'm surprised. I have never seen a motion jpeg video with the .jpg extension, only still image files. I have a friend with the same phone, so I'll ask her to teach me what it does.

Maybe a developer will jump into the discussion and tell you if there are plans to include that particular movie format in a future Vegas release. I don't have 21, so I can't test it for you.

One way to attract their attention is to edit your topic title with the words "Feature Request:"

If you can upload one of those original files to Drive or Dropbox (not Youtube or social media) and post the link here, I'll be glad to test it for you, I have many analysis tools.

As a temporary solution for you, the two converters most likely to give you a file Vegas will recognize are Handbrake or Shutter Encoder, both free. If you like command-line utilities, ffmpeg is another to check out.

@Tommaso-Greco

 

Former user wrote on 11/15/2023, 9:51 PM

Try this https://github.com/N-V-R/ExtractMotionPhotos/releases

For me it extracts a HEVC video, but I am using HEIC picture format, It would make sense it uses HEVC even if you're using jpg to keep file sizes small

Robert Johnston wrote on 11/15/2023, 9:52 PM

@Tommaso-Greco Try changing the file extension from .jpg to .mov

Intel Core i7 10700K CPU @ 3.80GHz (to 4.65GHz), NVIDIA GeForce RTX 2060 SUPER 8GBytes. Memory 32 GBytes DDR4. Also Intel UHD Graphics 630. Mainboard: Dell Inc. PCI-Express 3.0 (8.0 GT/s) Comet Lake. Bench CPU Multi Thread: 5500.5 per CPU-Z.

Vegas Pro 21.0 (Build 108) with Mocha Vegas

Windows 11 not pro

MikeS wrote on 11/16/2023, 3:21 AM

>moving images (Motion JPEG) recorded with my smartphone "Samsung S23 Ultra"
>never seen a motion jpeg video with the .jpg extension


Samsung doesn't use Motion JPEG for what it calls Motion Photos. It's effectively a proprietary format consisting of a JPEG followed by a marker and then an MP4. And uses the jpg extension. The tool suggested by @Todd-A0 above basically works by splitting the file at the marker.

Another option is to export the video portion directly from the motion photo in the Gallery on the phone (select photo, click the triple dot for more options, and select export).

Vegas Post 21 Build 300
Boris FX Continuum for OFX 2024 Build 17.0.3.380
Boris FX Mocha Pro Plug-in 2022.5 v11.0.1 Build 13
Windows 10 Pro - 64-Bit
ASUS PRIME Z890-P motherboard
Intel Core i7-97000K @ 3.6GHz
RAM 32GB (2x 16GB) 2666MHz DDR4
GeForce RTX 2070 SUPER

Tommaso-Greco wrote on 11/16/2023, 3:54 AM

Prova questo https://github.com/NVR/ExtractMotionPhotos/releases

Per me estrae un video HEVC, ma sto utilizzando il formato immagine HEIC, sarebbe logico che utilizzi HEVC anche se stai utilizzando jpg per mantenere le piccole dimensioni dei file

It's safe? Both Malwarebytes and Microsoft Defender block it for me

Gid wrote on 11/16/2023, 3:56 AM

@MikeS @Robert Johnston @Former user @mark-y Hi, here's a couple of Motion Photos created with a Samsung S23 Ultra If anyone wants to try them.

https://drive.google.com/drive/folders/120zXE_oEGuoYmXdYFDXf32pX-l_jJprm?usp=sharing

 

Vegas Pro 21 
Magix Movie Studio Platinum 2024 - from 2004-ish - Latest version,
Magix VPX14
Boris Continuum & Sapphire, 
Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 
Boris Optics,
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans
Dell SE3223Q 31.5 Inch 4K UHD (3840x2160) Monitor, 60Hz, 

I'm 55, I've been a UK joiner for 39yrs, apprentice trained & time served, I make videos about my work & post them on Youtube so that I can share what I've learnt over the yrs,
https://www.youtube.com/c/Gidjoiner

At the moment my filming is done with a Samsung Galaxy S23 Ultra 

Tommaso-Greco wrote on 11/16/2023, 3:57 AM

@Tommaso-Greco  Prova a cambiare l'estensione del file da .jpg a .mov

Done (also avi, mpg) but it doesn't work

Tommaso-Greco wrote on 11/16/2023, 4:02 AM

Un'altra opzione è esportare la parte video direttamente dalla foto in movimento nella Galleria del telefono (seleziona la foto, fai clic sul triplo punto per ulteriori opzioni e seleziona Esporta).

Yes, you're right, however I need to be able to operate from the computer, also because I have now deleted the original files from the phone

Gid wrote on 11/16/2023, 4:23 AM

Un'altra opzione è esportare la parte video direttamente dalla foto in movimento nella Galleria del telefono (seleziona la foto, fai clic sul triplo punto per ulteriori opzioni e seleziona Esporta).

Yes, you're right, however I need to be able to operate from the computer, also because I have now deleted the original files from the phone


@Tommaso-Greco If you still have the phone you can copy them back onto the phone & export as video.

Vegas Pro 21 
Magix Movie Studio Platinum 2024 - from 2004-ish - Latest version,
Magix VPX14
Boris Continuum & Sapphire, 
Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 
Boris Optics,
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans
Dell SE3223Q 31.5 Inch 4K UHD (3840x2160) Monitor, 60Hz, 

I'm 55, I've been a UK joiner for 39yrs, apprentice trained & time served, I make videos about my work & post them on Youtube so that I can share what I've learnt over the yrs,
https://www.youtube.com/c/Gidjoiner

At the moment my filming is done with a Samsung Galaxy S23 Ultra 

mark-y wrote on 11/16/2023, 4:42 AM

@Gid thank you for the files. Here is what I found:

  • VLC will open them. That means ffmpeg will convert them, or you can do it in VLC if you like fiddling with that stuff.
  • Handbrake doesn't work on those files.
  • Shutter Encoder works with them straightaway, so that would be my preferred choice.

Let us know which option you choose, while we are waiting for you to post your "Feature Request" to the forum. Good luck.

Gid wrote on 11/16/2023, 4:52 AM

@mark-y 

  • Shutter Encoder works with them straightaway, so that would be my preferred choice.

 Hi, this produces a video or sequence of images where any of the images can then be chosen?

All I could get was a single image, I don't use it often tho so not really sure how you'd do that 🤷‍♂️

Vegas Pro 21 
Magix Movie Studio Platinum 2024 - from 2004-ish - Latest version,
Magix VPX14
Boris Continuum & Sapphire, 
Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 
Boris Optics,
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans
Dell SE3223Q 31.5 Inch 4K UHD (3840x2160) Monitor, 60Hz, 

I'm 55, I've been a UK joiner for 39yrs, apprentice trained & time served, I make videos about my work & post them on Youtube so that I can share what I've learnt over the yrs,
https://www.youtube.com/c/Gidjoiner

At the moment my filming is done with a Samsung Galaxy S23 Ultra 

MikeS wrote on 11/16/2023, 5:21 AM

It's safe? Both Malwarebytes and Microsoft Defender block it for me

It is - but here's an alternative link that doesn't trigger SmartScreen: https://github.com/joemck/ExtractMotionPhotos/releases

>here's a couple of Motion Photos 
Thanks @Gid, got some of my own. And the above tool works fine on them.🙂🙂🙂

Vegas Post 21 Build 300
Boris FX Continuum for OFX 2024 Build 17.0.3.380
Boris FX Mocha Pro Plug-in 2022.5 v11.0.1 Build 13
Windows 10 Pro - 64-Bit
ASUS PRIME Z890-P motherboard
Intel Core i7-97000K @ 3.6GHz
RAM 32GB (2x 16GB) 2666MHz DDR4
GeForce RTX 2070 SUPER

Gid wrote on 11/16/2023, 5:26 AM

>here's a couple of Motion Photos 
Thanks @Gid, got some of my own. And the above tool works fine on them.🙂🙂🙂

@MikeS 👍 The OP nor anyone else had shared any so i thought i would 👍🤸‍♂️

Vegas Pro 21 
Magix Movie Studio Platinum 2024 - from 2004-ish - Latest version,
Magix VPX14
Boris Continuum & Sapphire, 
Silhouette Standalone + Plugin, 
Mocha Pro Standalone + Plugin, 
Boris Optics,
Desktop PC Microsoft Windows 10 Pro - 64-Bit
ASUS PRO WS WRX80E-SAGE SE WIFI AMD Motherboard
AMD Ryzen Threadripper PRO 3975WX 3.5GHz 32 Core
Corsair iCUE H150i RGB PRO XT 360mm All-in-One Liquid CPU Cooler
RAM 256GB ( 8x Micron 32GB (1x 32GB) 2666MHz DDR4 RAM )
2x Western Digital Black SN850 2TB M.2-2280 SSD, 7000MB/s Read, 5100MB/s Write
(programs on one, project files on the other)
Graphics MSI GeForce RTX 3090 SUPRIM X 24GB OC GPU
ASUS ROG Thor 1200W Semi-Modular 80+ Platinum PSU 
Fractal Design Define 7 XL Dark TG Case with 3 Fans
Dell SE3223Q 31.5 Inch 4K UHD (3840x2160) Monitor, 60Hz, 

I'm 55, I've been a UK joiner for 39yrs, apprentice trained & time served, I make videos about my work & post them on Youtube so that I can share what I've learnt over the yrs,
https://www.youtube.com/c/Gidjoiner

At the moment my filming is done with a Samsung Galaxy S23 Ultra 

Adis-a wrote on 11/16/2023, 7:24 AM

Does it have anything to do with this:

 

 

The QuickTime needs to be installed, though.

Tommaso-Greco wrote on 11/16/2023, 7:26 AM

@Gid  grazie per il file. Ecco cosa ho trovato:

  • Shutter Encoder funziona immediatamente con loro, quindi sarebbe la mia scelta preferita.

Facci sapere quale opzione scegli, mentre aspettiamo che tu pubblichi la tua "Richiesta di funzionalità" sul forum. Buona fortuna.

Definitely "Extract Motion Photos" is my first choice! Damn, it works great! Thank you!! <3

set wrote on 11/16/2023, 7:35 AM

@Adis-a: different case

This is a movie MP4 that is saved 'embedded' inside a JPG file.

Extract Motion Photos seems the best and easy choice for now.

Last changed by set on 11/16/2023, 7:36 AM, changed a total of 1 times.

Setiawan Kartawidjaja
Bandung, West Java, Indonesia (UTC+7 Time Area)

Personal FB | Personal IG | Personal YT Channel
Chungs Video FB | Chungs Video IG | Chungs Video YT Channel
Personal Portfolios YouTube Playlist
Pond5 page: My Stock Footage of Bandung city

 

System 5-2021:
Processor: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz   2.90 GHz
Video Card1: Intel UHD Graphics 630 (Driver 31.0.101.2127 (Feb 1 2024 Release date))
Video Card2: NVIDIA GeForce RTX 3060 Ti 8GB GDDR6 (Driver Version 551.23 Studio Driver (Jan 24 2024 Release Date))
RAM: 32.0 GB
OS: Windows 10 Pro Version 22H2 OS Build 19045.3693
Drive OS: SSD 240GB
Drive Working: NVMe 1TB
Drive Storage: 4TB+2TB

 

System 2-2018:
ASUS ROG Strix Hero II GL504GM Gaming Laptop
Processor: Intel(R) Core(TM) i7 8750H CPU @2.20GHz 2.21 GHz
Video Card 1: Intel(R) UHD Graphics 630 (Driver 31.0.101.2111)
Video Card 2: NVIDIA GeForce GTX 1060 6GB GDDR5 VRAM (Driver Version 537.58)
RAM: 16GB
OS: Win11 Home 64-bit Version 22H2 OS Build 22621.2428
Storage: M.2 NVMe PCIe 256GB SSD & 2.5" 5400rpm 1TB SSHD

 

* I don't work for VEGAS Creative Software Team. I'm just Voluntary Moderator in this forum.

MikeS wrote on 11/16/2023, 10:26 AM

If you are coder, it is pretty trivial to knock something together for this; as I said earlier, Motion Photos are a proprietary format consisting of a JPEG followed by a marker and then an MP4. So all you need to do is write code to find the marker and then copy all the data after the marker to a new file, giving it an MP4 extension. And the marker is "MotionPhoto_Data"

Vegas Post 21 Build 300
Boris FX Continuum for OFX 2024 Build 17.0.3.380
Boris FX Mocha Pro Plug-in 2022.5 v11.0.1 Build 13
Windows 10 Pro - 64-Bit
ASUS PRIME Z890-P motherboard
Intel Core i7-97000K @ 3.6GHz
RAM 32GB (2x 16GB) 2666MHz DDR4
GeForce RTX 2070 SUPER

Robert Johnston wrote on 11/16/2023, 1:21 PM

@MikeS What do you know. I used VEDIT to copy everything following MotionPhoto_Data and saving file with .mp4 extension. Like you said, that would be easy to code. In Windows 11, just double-clicking on the jpg file opens it up in Photo as a motion photo.

Intel Core i7 10700K CPU @ 3.80GHz (to 4.65GHz), NVIDIA GeForce RTX 2060 SUPER 8GBytes. Memory 32 GBytes DDR4. Also Intel UHD Graphics 630. Mainboard: Dell Inc. PCI-Express 3.0 (8.0 GT/s) Comet Lake. Bench CPU Multi Thread: 5500.5 per CPU-Z.

Vegas Pro 21.0 (Build 108) with Mocha Vegas

Windows 11 not pro