Getting a Thumbnail of a Video

I’m looking at adding some Video recording/Playback to my app.

My plan was to use the media.captureVideo feature to let the user record video, store the returned file URL and store that in the app.

So the question is … How to get a thumbnail of a video so that we can shot a meaningful link to the video in the UI?

From what i gather so far this is not available in the API as of yet.  Certainly manipulating video files in LUA would not be the best solution.

Suggestions / Ideas welcome …

Cheers ,

m

How about if you cheat and take one photo right before you start recording video? You can then use that photo to make the thumbnail. That’s the only way I can think of getting what you need without specific API introduction from CL.

Thanks for the suggestion

however … when the user taps the button to say capture video it brings up a native tool that is not recording, etc.  So goodness only knows where the camera was pointed when they asked to bring up the video tool.

Seems like some native support for this would be nice … not really interested in parsing through the binary of a video file for a frame in LUA.

Did think about starting a stream, freezing it, taking a screen capture of that … but … what could possibly go wrong with that … lol

Got it. You can tell I had not tried this before commenting. Totally missed that.

I took a look at it with pro, and couldn’t find a good way, so went enterprise for the whole video capture thing. Used native code to record the video - and extract the first frame as a jpg (so it literally is the first frame of the video).  On the iOS side, it’s not that difficult :wink:

This also allowed me to choose the container/codec for the video to increase cross platform compatibility (significant cross platform issues using the defaults).

Further, I created a routine to capture images from the screen and adjust the compression (resulting in photos that look about as good, but are much much smaller in size than SDK default).

Sounds like you made all the right investments to spin off a plugin for the rest of us… Why not talk to Gremlin about possibly putting a plugin for sale on the market.

Certainly would be worth a bit to have a nice plugin to handle video in a nice way.  

Wishlist:

  • Cross platform format

  • Slowmotion play back

  • Upload to youtube account

  • Thumbnails

  • Stored in device media library

  • url to access

certainly not thinking of all i need but this would be a good starting list.

 I’d pony up $75 for such a set of features.

How about if you cheat and take one photo right before you start recording video? You can then use that photo to make the thumbnail. That’s the only way I can think of getting what you need without specific API introduction from CL.

Thanks for the suggestion

however … when the user taps the button to say capture video it brings up a native tool that is not recording, etc.  So goodness only knows where the camera was pointed when they asked to bring up the video tool.

Seems like some native support for this would be nice … not really interested in parsing through the binary of a video file for a frame in LUA.

Did think about starting a stream, freezing it, taking a screen capture of that … but … what could possibly go wrong with that … lol

Got it. You can tell I had not tried this before commenting. Totally missed that.

I took a look at it with pro, and couldn’t find a good way, so went enterprise for the whole video capture thing. Used native code to record the video - and extract the first frame as a jpg (so it literally is the first frame of the video).  On the iOS side, it’s not that difficult :wink:

This also allowed me to choose the container/codec for the video to increase cross platform compatibility (significant cross platform issues using the defaults).

Further, I created a routine to capture images from the screen and adjust the compression (resulting in photos that look about as good, but are much much smaller in size than SDK default).

Sounds like you made all the right investments to spin off a plugin for the rest of us… Why not talk to Gremlin about possibly putting a plugin for sale on the market.

Certainly would be worth a bit to have a nice plugin to handle video in a nice way.  

Wishlist:

  • Cross platform format

  • Slowmotion play back

  • Upload to youtube account

  • Thumbnails

  • Stored in device media library

  • url to access

certainly not thinking of all i need but this would be a good starting list.

 I’d pony up $75 for such a set of features.