ImageEn, unit iexHelperFunctions

IEExtractVideoFromJPEG

IEExtractVideoFromJPEG

Declaration

function IEExtractVideoFromJPEG(const SourceFileName, DestFileName: string): Boolean; overload;
function IEExtractVideoFromJPEG(const SourceStream, DestStream: TStream): Boolean; overload;

Description

Extracts the video file that is stored in the JPEG files of some Android phones, like Samsung.
Result will be False if the video content is not found.

Note:
◼This method only truncates the initial section of the file to leave the remaining video content
◼The video format is usually MP4, but other format are possible
◼No check is made that DestFileName does not already exist

Example

IEExtractVideoFromJPEG( 'D:\DCIM121858.jpg', 'D:\DCIM121858.mp4' );