How can I configure this with this module?

CommentFileSizeAuthor
#18 View.jpg41.13 KBjfha73
#18 Video.jpg102.72 KBjfha73
#9 Video Field.jpg29.97 KBjfha73

Comments

hypertext200’s picture

You can use image_cache module and use it to create thumbnail sizes as you wish.

iLLin’s picture

Not implmented yet on 4.x-dev. Code is there, just commented out and untested. Thats my next implementation to get everything back to 3.x with all the new features.

jfha73’s picture

OK then, I will have to wait until it is implemented.

iLLin’s picture

Status: Active » Fixed

Imagecache is implemented in 4.x-dev HEAD. Marking this as fixed.

jfha73’s picture

I still don't see an option where to change the Thumbnails' size, is it going to have one?

iLLin’s picture

There are cck formatters with imagecache. There is no sizing when you create the thumbnails, you need to use imagecache and create a preset of the size you want. Then assign the CCK formatter that corresponds to that preset. It will look like this "$PRESET_NAME Video Thumbnail linked to node... etc. Does this make sense?

jfha73’s picture

To be honest with you, I have no idea what you are talking about, I do have the imagecache module installed, but I don't see anything to assign sizes, all I get is a JPEG quality (using only GD) what do I need to do to assign sizes to the thumbnails? (step by step please)

Thanks for being so patient.

iLLin’s picture

You need to change your Display formatter for CCK.

Admin -> Content Management -> Content Types -> Edit Content Type -> Display Fields -> Basic

admin/content/node-type/page/display

"page" changes to your content type. This shows you what to display in teaser mode and on the full node view. So for teaser you would select your imagecache preset Video thumbail linked to node. Then on the full view you would just select video.

jfha73’s picture

StatusFileSize
new29.97 KB

OK, I'm at the Display fields section, when I click on what to show for the Teaser, this is what I see, which one should I choose?

iLLin’s picture

I don't see any imagecache presets. You need to set those up first.

jfha73’s picture

Just for your information, this is how I have everything setup so you can have a better idea.

I have a content type for videos using your module and (here is the part where I show the thumbnail) a view with a list of the videos each with its own thumbnail as per the field I chose Video Thumbnail linked to node.

When I see this list, the Thumbnail it shows me is as big as the original video.

So, now that you have the whole picture, How can I change the size of the thumbnail shown in my list?

jfha73’s picture

Oh and by the way, where do I setup the Image cache settings, I checked the ImageAPI settings but I don't see them.

iLLin’s picture

Site Building -> Image Cache

jfha73’s picture

OK I think I'm starting to get it, I installed the Imagecache module and created a preset for the thumbnails, but when I select the present I created in the View, it shows me nothing, the only way it will show me the thumbnail is if I select video thumbnail linked to node, if I chose any other (including the preset thumbnail image linked to node) it shows me nothing.

What can I be doing wrong?

And I think this will add value to the module if it is implemented in the thumbnails section... Add a couple of fields for size, or at least one for width like the one for showing the video... just a suggestion.

iLLin’s picture

It is implemented. For however many presets you create, it will create a new cck formatter. Make sure your imagecache is writing to your files directory. You might also have to refresh the first time you view a thumbnail.

jfha73’s picture

Still can't get it... What I could get was this, and probably you can introduce this to your module:

By adding -s WxH to the ffmpeg thumbnail creation command (where W is width and H is height) I did get the size I wanted, the only problem with this (and I'm going to keep trying until I get it right) is that I can see the thumbnail in the size I want, but when I click to see the video it says it's being processed and it doesn't show it.

iLLin’s picture

The reason why there is no WxH in the thumbnail command is you want to take the screenshot of the image at the actual dimensions of the video. That way you get the best resolution possible. You then use imagecache when you display them that way you can create multiple views with different thumbnail sizes easily while always maintaining the original. If you force the size of 50x50, then later down the road you want to do 100x100... well since all you have is 50x50, that is going to look very ugly blown up to that size. Where if you use imagecache, you simply change the preset and your all done, imagecache takes care of the rest.

I'm not sure where the hang up is with this as this works for me and has worked for a few other people that are testing it.

Maybe if you can put up some screenshots of your imagecache presets and your display dropdown for your cck formatters again as the video.jpg you have above, does not have any imagecache presets in it at all so I don't think you had them setup at that time.

jfha73’s picture

StatusFileSize
new102.72 KB
new41.13 KB

I understand and I respect it, but I think that thumbnails are to show a miniature of the actual thing, that's why I suggested the WxH.

By the way, I modified the command using this:

-i !videofile -an -y -f mjpeg -s 160x120 -ss !seek -vframes 1 !thumbfile

And I see it in my VM as the pictures show, but when I use the same command on my live server I get:

The video is being processed and it doesn't show me anything.

Any idea what can be cause this message?

iLLin’s picture

I think you need to re-read what I have been trying to tell you, I don't think you fully understand imagecache and what it can do for you.

As far as the message is concerned, you need to run cron or use the checkbox to convert the video.

jfha73’s picture

I think I owe you an apology, I tried it again and this time it did show me the thumbnail using ImageCache.

Sorry I doubt you for a while there.

Keep up the good work.

iLLin’s picture

Great! I'm glad you got it working now :). I'm going to have another big update for 4.x-dev and then I think I am going to release a beta!.

jfha73’s picture

Sounds good, I can't wait for it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.