Transcode module on Gallery 3.0.4. Not playing properly

florianoverkamp

Joined: 2012-07-01
Posts: 4
Posted: Sun, 2012-07-01 16:04

Hi,

I've been searching for the right way to deal with video files on Gallery3. I want to create a userfriendly experience, so automatic transcoding etc. etc.

I came acrosse the 'transcode' module (duh) and this thread: http://gallery.menalto.com/node/98144.

So, Danneh3826 has made a very decent starting point. However, there are a few items I came across, and I would appreciate your feedback on this.

1) In order to allow uploading of video's (and Server-add) I've found that since G3.0.3. there is a nice handling for this called 'legal_file'. To use this, I've added a small function to transcode_core_Event (in helpers/transcode_event.php), like so:

    static function legal_movie_extensions($extensions_wrapper) {
      array_push($extensions_wrapper->extensions,
               "avi");
    }

This allows me to upload .avi files in the regular manner. Transcode will then handle the ffmpeg processes to convert the uploaded file to .flv equivalents in the desired resolutions. Works like a charm so far!

but now comes issue 2:

2) Now that my server is nicely loaded with some video's (and yes, the converted flash video files in var/modules/transcode/flv in all desired resolutions! Cool!) I should also be able to view them. This is where things get hairy. Something seems wrong with the playback. The flowplayer presents me with an error: [img]http://bash.tty.nu/var/albums/tpfo/flowplayer-error.png[/img] and even though I see the pulldown menu with the different resolutions, nothing seems to happen when I select them. This happens both using Iceweasel (Firefox) and Chrome, so it doesn't seem browser-specific.

I have no idea how to solve (2). Any pointers in the right direction would be very much appreciated.

Best regards,
Florian

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2012-07-01 16:17

looks like flowplayer is still looking for the AVI, not the FLV.
the FLV is in /var/albums/holidays/andalusia-2012/resizes correct?

-s

 
florianoverkamp

Joined: 2012-07-01
Posts: 4
Posted: Sun, 2012-07-01 18:08
Quote:
looks like flowplayer is still looking for the AVI, not the FLV.
the FLV is in /var/albums/holidays/andalusia-2012/resizes correct?

Ehm, no, they are in /var/modules/transcode/flv. I think that is what's meant to happen, since the display page also refers there as seen in the javascript code. I didn't find any reference to a resizes-directory. Am I missing something?

Florian

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2012-07-01 18:52

I've never used the G3 transcode module. Although I'm responsible for the G2 version.
But I was pointing out that flowplayer was not looking in the right place.
Is the transcode module supposed to update the relative_cache_path or something for transcoded items? So movie.php/flowplayer gets the correct url.
This may be something that has changed from G3 version to version.

-s

 
florianoverkamp

Joined: 2012-07-01
Posts: 4
Posted: Mon, 2012-07-02 18:39

Just to let you guys know, I've found (part of) the problem.

The transcode (v10) code tries to access a div called g-item-id-[nr]. However, with G3.0.4 the div is called g-movie-id-[nr]. After adjusting this in the transcode_resolution_variants.html.php the player accesses the lowest recoded resolution right away.

Any other suggestions/pointers are much appreciated!

 
florianoverkamp

Joined: 2012-07-01
Posts: 4
Posted: Mon, 2012-07-02 18:40

One improvement I'm thinking about is influencing which is the 'default' resolution. How to best go about that?

 
danneh3826
danneh3826's picture

Joined: 2007-08-18
Posts: 290
Posted: Sat, 2012-09-15 16:16

I have implemented this into version 12 (released today, download here: http://www.danneh.org/files/27). This allows you to select a default resolution to have displayed on the item view page when it loads, as opposed to loading the smallest resolution available.

Let me know if there's an issues.

Dan

danneh.org :: Gallery3