ImageEn, unit iexHelperFunctions

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' );