I'm having two issues with this add on. I've uploaded a small video file but when the add on generated the flash video the audio portion doesn't come through. I checked the source .mov file in File Manager and it does have audio.
The other problem I have is that I don't see any way to generate thumbnails. The add on description says that there should be a way to scrub through the video in Edit mode and select a poster frame, but I don't see that functionality.
I'm sorry it isn't a little more clear how you can create video thumbnails. It's easy to do. Instead of doing it from a block, you create thumbnails from the File Manager.
Click on a video file and select "Edit". Then a popup should appear with the video, which you can then play until you like the frame, then save. That will automatically generate a thumbnail for you, and attach it to the file so that it will show up whenever you embed the file.
Unfortunately, video formats can be somewhat tricky to deal with. Some formats, like WMV or FLV, are tied directly to the "codecs" which serve up the audio and video. If a player supports FLV, for example, it should (basically) support any FLV file in existence.
Not so with "container" formats like MOV and AVI, which can contain many different types of codecs. This is often what occurs when you can see a video, but cannot hear it, or can hear a video but cannot see it. The Flash Video add-on can only handle the codecs which Flash supports, which include MP3, FLV and H.264-encoded video. I think it also supports AC3 audio. Depending on the format of your video, it may be using an audio codec which Flash does not understand.
Do you have any software to try to convert your video to another format?
While waiting for a response I tried a different file format (m4v) which allowed the audio to come though. I also, was successful in generating a thumbnail. I missed it before because the button was named "Add File" which made it sound like you'd be grabbing a file from your local drive. So thanks!
My next question is: now that I've generated a thumbnail from a video, how do I access that thumbnail so I can include it in a listing of all pages that contain videos? I see that the thumbnail is accessed when you choose the "pop up" template, but that's not what I'm looking for.
If you check out the source code for the add-on, you should see where I am grabbing the thumbnail URL for the video, and passing it into the video player. You should be able to use this in your own code.
Each file has a couple different thumbnail levels, so feel free to try out different values to try and get a size you like. Otherwise if you want to get more advanced, there is an image helper which can resize and cache images.
Ok, I'm able to grab the thumbnail but I can't locate where in your source files you are setting the current thumbnail sizes. Right now I'm calling getThumbnailSRC (1) and it gives me a 60x45 thumbnail. I want one that's 120x90. Where do I edit it to set that size?
There are only a couple of sizes saved directly with each file as thumbnails. These are the sizes used in the File Manager, on File Manager roll-overs, and preview images.
To set a custom size, try using the ImageHelper class. Here's a little bit of information about its API:
You should either be able to use the PHP image object directly, or the path from one of the thumbnail sizes. If you go that route, just make sure you use the path of a thumbnail level that's larger than the custom size you want to create.
I am having problems creating the poster frame. I scrub through the file, choose the frame, click update and then close the window. According to the code on the page the poster frame is then a .m4v file when it should be a .jpg should it not?