Avoid ffmpeg altogether?

adises

Joined: 2006-10-02
Posts: 34
Posted: Thu, 2009-06-25 10:52

My current host is hostmonster which does not support ffmpeg as it is too cpu intensive for shared hosting. I was wondering is it possible to skip ffmpeg altogether and just specify a standard image which becomes the thumbnail for video file? or the ability to upload a thumbnail when u select a video would also be cool.

This would allow me to upload flv/mp4 videos without having to encode/generate thumbnails on the hostmonster server right?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2009-06-25 12:31

Gallery 2? If so I'll move to the appropriate forum.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
adises

Joined: 2006-10-02
Posts: 34
Posted: Thu, 2009-06-25 12:43

nope gallery 3 only..right now it supports uploading mp4/flv but I can't see the video once I upload cause hostmonster doesn't have ffmpeg..in gallery2 you can bypass this as the video is assigned a video thumbnail and u have to manually set the dimensions. I don't know how to go about it in gallery3.

Since once the video is uploaded gallery3 tries to access the ffmpeg binary I get this in my logs

Quote:
<?php defined('SYSPATH') or die('No direct script access.'); ?>
2009-06-25 03:53:21 -06:00 --- error: Uncaught Exception: @todo MISSING_FFMPEG in file modules/gallery/helpers/movie.php on line 116

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-06-25 16:52

I think the latest version will give a default thumb if ffmpeg is not found.
Upgrade to the latest G3 code

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
adises

Joined: 2006-10-02
Posts: 34
Posted: Fri, 2009-06-26 09:42

I upgraded it and it now works..any idea how I can set the dimensions to 320 x 240 and/or add a default thumbnail for video files..right now its just text and looks rather bad

also the movie doesn't seem to be playing. All I can see is the flowplayer loading screen.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-28 04:02

The latest code uses a placeholder that's the same size as your other thumbnails. If that's not working for you, please verify that you've got the latest code (and have upgraded properly) and provide a url to your site. thanks!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
adises

Joined: 2006-10-02
Posts: 34
Posted: Sun, 2009-06-28 04:20

Upgraded to the latest version via galleryname/index.php/upgrader and it now all works fine :) Thanks! Any idea how to increase the dimensions of flow player though? Is it a built-in option or will I have to go through the code and manually change it. I will encode all videos I own into a standard resolution so setting a static dimension is not a problem.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-28 04:21

The flowplayer is set to the size of the movie. Big movie, big flowplayer. You can tinker with it in themes/default/views/movie.html.php though.. let us know what you learn.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
adises

Joined: 2006-10-02
Posts: 34
Posted: Sun, 2009-06-28 04:36

See http://gallery.adifry.com/ I uploaded two videos one is 320 x 240 which plays the 2nd one is 640 x 480 where the audio seems to be playing but i'm guessing the player isn't resizing hence the video isn't viewable.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-06-28 04:48

Oh.. duh! Without ffmpeg we can't detect the size of the movie so we just pick 200x200 :-/. You can edit the theme to adjust this, or you can edit the database, or you can write a module to let you edit the database (pretty easy) or you can install ffmpeg...
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
adises

Joined: 2006-10-02
Posts: 34
Posted: Sun, 2009-06-28 04:55

Since i'm on a shared hosting plan (hostmonster) I am unable to install ffmpeg. Gallery2 allowed manual specifying of the movies dimensions, which is what I was doing then. Guess i'l manually edit flowplayer to 320 x 240 pixels for now and encode all videos I upload into that size. I don't know coding and work on the principle of "oh i wonder what happens if I change this value" :) so hopefully further down the line someone creates a module for quickly inputting the movie dimensions when it gets uploaded. Thanks for the help.