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, |
|
Posts: 8339
looks like flowplayer is still looking for the AVI, not the FLV.
the FLV is in /var/albums/holidays/andalusia-2012/resizes correct?
-s
Posts: 4
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
Posts: 8339
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
Posts: 4
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!
Posts: 4
One improvement I'm thinking about is influencing which is the 'default' resolution. How to best go about that?
Posts: 290
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