Grab a still image from a video

Moderators: LCNeil, heatherlaine, kevinmiller, elanorb

Post Reply
charms
Posts: 122
Joined: Mon Feb 10, 2014 6:21 pm
Location: Singapore
Contact:

Grab a still image from a video

Post by charms » Mon Mar 31, 2014 9:58 pm

Hi there,

Do you know of any possible way how to grab a still image from a video? My app enables people to transfer videos on to their mobile device and then load them in to a folder within the special folders path. I would like the user to see a preview image of the video by taking the first frame, or any other frame of the video and save it as still preview image. Can this be done somehow?

Thanks and kind regards,
Chris

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Grab a still image from a video

Post by LCNeil » Tue Apr 01, 2014 9:14 pm

Hi Chris,

Due to the way that a native mobile player object is created on a LiveCode stack, there is no way to take a snapshot of the video for use as a thumbnail. (mobile controls are created on a separate top layer which cannot be adjusted)

What you would have to do is pre-generate the thumbnails (e.g. via a paint program or via a LiveCode desktop stack) and then apply these thumbnails via script within your mobile app.

Another option is to allow the user to pick videos from their library via montes mergAV external0

http://mergext.com/home/mergav/

His external also seems to allow the creation of video thumbnails via the mergAVVideoThumbnail function.

Kind Regards,

Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
-- 

Post Reply

Return to “idea2app and Coding School”