Transcoding videos

danneh3826
danneh3826's picture

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

Since the original thread I created when I launched this module a couple of years ago has been locked, I'll create another one.

I've just launched v12 of this module, available for download here: http://www.danneh.org/download/transcode

This version extends a little on the patch applied to v11 which hides the "Alternative Resolutions" dropdown from anything that's not a movie, and where alternative resolutions aren't available. Other changes include cleaned up code, overhauled codec detection routines, use of ffprobe to gather source video file (for getting info on aspect ratio, etc). I've also tweaked the video bitrates to provide a better quality output, so them 240p, 360p, and 480p down converts won't look all blocky and pixelated anymore. Filesize has increased, obviously, as a result of this, however I'd still deem them to be within "acceptable" limits for attempting to stream a 360p video over mobile data networks.

Lastly, I've also added a "Default Resolution" option, which allows you to choose which resolution is loaded first when a user visits the video's item page. This changes the way it used to behave by simply loading the first resolution in the list, i.e; the smallest.

Conversion routines have been tested with ffmpeg versions between 0.6.5 and 0.11.1. In 0.6 they changed some of the input commands, -formats became -codecs. I've "dropped" support for <0.6 in this extension, since if your host is still using 0.5.x or less (which was just becoming deprecated back in 2010 when I wrote this), then you really ought to get it upgraded. The other reason I'm dropping support for <0.6 is due to another patch I'm currently wrestling with that I found someone else posted, which adds iphone support, and changes the ffmpeg command to suit iphone browsers (i.e; using mp4 as opposed to flv). Some of the options, I'm fairly certain, weren't introduced until 0.6, so it'll just break even more later on. Software has to move on!

Let me know if there's any issues. Hopefully going to be a bit more active now, so can keep on top of these patches and bug reports :) I'm also going to use this as the official support thread for this extension. Hopefully this thread won't get locked like the last one did!

Dan

danneh.org :: Gallery3

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2012-09-16 02:12
Quote:
Since the original thread I created when I launched this module a couple of years ago has been locked, I'll create another one.

not sure why, so I created a link to this thread in the last post and the first as well.
Thanks for your continued contribution to the community!

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
danneh3826
danneh3826's picture

Joined: 2007-08-18
Posts: 290
Posted: Sun, 2012-09-16 08:03

Thanks Dave :)

Dan

danneh.org :: Gallery3

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Sun, 2012-09-16 20:22

I think it's worth having a backpointer to the old thread as well so people coming from the codex page can find it easily: http://gallery.menalto.com/node/98144

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Sun, 2012-09-16 21:30

transcode_installer.php reports version 11 in getversion():
private static function getversion() { return 11; }
which prevents it from installing since module_info declares version 12:
version = 12
Changing getversion to report 12 fixes it.

Thanks!

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Mon, 2012-09-17 00:56

So I've been banging my head against this, but not being much of a php hacker, I'm not making much progress. Trying to save the Transcoding Settings page all I can get is:

There was a problem with the submitted form. Please check your values and try again.

With no indication that anything is going wrong (nothing in the gallery logs, nor the apache error logs, aparts from ffmpeg output). All I can tell from inserting debugging statements into the php is that the $form->validate() call in admin_transcode.php:index() is failing. It's not obvious to me what validate() is causing to get called. The javascript in admin_transcode.html.php? Any hints on how to debug this?

 
danneh3826
danneh3826's picture

Joined: 2007-08-18
Posts: 290
Posted: Mon, 2012-09-17 19:42

Alright, I agree that was a strange one that even confused me for a while! Worked out though what it was, and I've fixed it. Version 13: http://www.danneh.org/download/transcode - fixed the versioning thing too!

Dan
-----
danneh.org :: Gallery3

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Mon, 2012-09-17 20:40

Great, thanks! I had to make one fix since it doesn't seem like I am getting the ffmpeg_flags set:

module::set_var("transcode", "ffmpeg_flags",       (isset($_POST['ffmpeg_flags']) ? $_POST['ffmpeg_flags'] : false)); 
 
danneh3826
danneh3826's picture

Joined: 2007-08-18
Posts: 290
Posted: Mon, 2012-09-17 20:48

Yea, ffmpeg_flags was kinda rendered useless by this update, as it was put there to allow you to use "-strict experimental" if you were using AAC audio (and ffmpeg required that set). This version sets that automatically, and I don't know of anything else that would need that field hanging around, so I removed it. I guess I forgot to take it out.

I've started a v14 scratchpad, to clean up any further issues. I've removed that, and all other references to ffmpeg_flags, from that version. Though it shouldn't cause any issues saving, it'll just set ffmpeg_flags to false as $_POST['ffmpeg_flags) isn't set. Other references to it will fall back to a default "empty string" if it's false, so won't break it. How do you mean it does like it? When I was disagnosing the issue cchiappa had, no issues surrounding this field came up.

Dan
-----
danneh.org :: Gallery3

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Fri, 2012-09-21 00:51

I've had some issues I think due to the installation of php I've got perhaps being stricter than normal...when trying to save it was complaining about $ffmpeg_flags being undefined. Similarly, in transcode_event() I had to initialize $i up at the top or I would get an error and since it seemed sensible I incremented it in the loop below:

diff -ur t/transcode/helpers/transcode_event.php transcode/helpers/transcode_event.php
--- t/transcode/helpers/transcode_event.php     2012-09-15 11:58:52.000000000 -0400
+++ transcode/helpers/transcode_event.php       2012-09-18 20:22:38.483986662 -0400
@@ -74,6 +74,8 @@
     }
 
     static function item_created($item) {
+        $i = 0;
+
         if ($item->is_movie()) {
             transcode::log("Item created - is a movie. Let's create a transcode task or 2..");
             $ffmpegPath = transcode::getFfmpegPath();
@@ -223,6 +225,8 @@
                         ->name("Video Transcode task (" . ($i + 1) . ") to " . $destWidth . "x" . $destHeight)
                         ->severity(log::SUCCESS);
 
+                $i++;
+
                 $task = task::create(
                             $task_def,
                             array(

I also had to fix the ffmpeg_flags which my previous contortions had caused to be set to '0' rather than false, leading to a bad ffmpeg command line. Finally, for additonal hilarity, I somehow had a root-owned var/modules/transcode directory from a previous installation 5 months ago hanging around, preventing the log file from being written.

However, while this gets me to the point that the upload works, I can see the ffmpeg task run in transcode.log, and I can see the transcoded video in var/modules/transcode/flv/<id #>/XRESxYRES.flv, trying to play the video the flash player shows an error:
200, Stream not found, Netstream.Play.StreamNotFound, clip: '[Clip] 'http://www.server.name/gallery3/var/albums/Chris/MVI_1533.avi?m=1348186898''
Any ideas?

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Fri, 2012-09-21 01:00

I should also say that when I get the error from the flash player, I see no errors in the gallery or apache logs, just the expected access log:

1.2.3.4 - - [20/Sep/2012:20:26:18 -0400] "GET /gallery3/var/albums/Chris/MVI_1533.avi?m=1348186898 HTTP/1.1" 200 29071065 "http://www.server.name/gallery3/lib/flowplayer.swf" "Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0 Iceweasel/15.0"
 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Fri, 2012-09-28 03:13

I think the problem is that while the flv transcodes are being created, the flash player is still being directed to the file I uploaded which is a random AVI file that's not supported by flash (in retrospect this is kind of obvious but installing the g3jwplayer module gave me a somewhat more readable error message). Perhaps it's related to the fact that the “Alternative Resolutions” box says “No alternative resolutions available.”? If I look in the page's source code I do see this snippet:

            var fpItmId = "g-item-id-48328";
            var fpBaseUrl = "http://server.name/gallery3/var/modules/transcode/flv/48328/";
            $f(fpItmId).onLoad(function() {
                                    changeVideo("640x480");
                            });

Could it be related to the fact that I'm using the Grey Dragon theme?

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Sat, 2012-09-29 02:34

Got it. transcode_resolution_variants.html.php has:

            var fpItmId = "g-item-id-<?php echo $item->id; ?>";

...but, my gallery is naming the form element "g-movie-id-<number>", so the onLoad call fails due to not finding the right form to activate. Changing it to g-movie-id makes it work.

With this fix the module works great, except that some videos when uploaded generate a "Server error: Error #2038 (IO)" in the upload dialog box. This is perhaps because the encoding tasks don't complete in time? I can see the tasks still making progress in transcode.log and the videos seem to work fine afterwards.

Thanks for the great module!

 
danneh3826
danneh3826's picture

Joined: 2007-08-18
Posts: 290
Posted: Sat, 2012-09-29 22:02

What theme are you using? It's tested and works perfectly on the default theme. Perhaps a custom/other theme has changed that HTML element's ID? In which case I'd expected this to break. If I can find out what themes change it (and what they change the ID's to) I can perhaps accommodate this in the code somewhere.

The 2038 error I've seen come up a few times, but is generally harmless, as you observed, the transcode task is still going on in the background. I think it's down to perhaps a php max_execution_time setting, or (more likely) a connection timeout between your browser and the server - the connection's no longer there, but the process is still ongoing on the server. When the transcode task is going on, there's no data transfer between the server and your browser, so if it's a lengthy task, chances are something's disconnecting, or closing the connection prematurely, causing this error. I know of no way of stopping this, other than perhaps connecting it into a scheduler/cron module I've updated for another module I've written, so that maybe the task completes immediately, and the video is either served up as-is to begin with, or put into a "pending" state until all the transcode tasks have started to complete (much like youtube makes available the resolutions as and when it's encoded them).

Dan
-----
danneh.org :: Gallery3

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Mon, 2012-10-01 01:35

Yah, I use greygragon. Looking at views/movie.html.php and photo.html.php, they clearly use g-movie-id and g-photo-id whereas wind just uses g-item-id, but there's no comments about the rationale. Is it worth getting Sergei's input (the author of greydragon)? Distinguishing the two doesn't seem unreasonable, but obviously it's not scalable to have every theme doing their own thing here.

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Thu, 2012-10-18 02:27

A new ffmpeg that just showed up in Debian changed the output of 'ffmpeg -codecs' slightly, using 7 dashes rather than 6. This naive patch to transcode.php helps me:

-            if ($line == " ------") {
+            if (($line == " ------") || ($line == " -------")) {
 
Nonek

Joined: 2012-10-22
Posts: 2
Posted: Fri, 2012-10-26 04:54

Hey Cchiappa,
I have been going down the same dark hole you have and I am SO CLOSE after using the smarts of other people to try and fix things..
I had previously put your flag statement in that you have from a previous post and I thought that this was why I was getting my flag set to 0 but I changed it back and I'm still getting that.. If I take the command line and I remove that 0 in there it transcodes fine.. It didn't like false either..
I know I'm on windows and trust me I have been feeling the pain, but I am so close I can taste it.
2012-10-25 22:43:23: Transcoding task 36 started.
2012-10-25 22:43:23: --- D:\gallery3\bin\ffmpeg.exe -i "D:\gallery3\var/albums/Loser/20121012_114052.mp4" -s 854x480 0 -vb 3072k -y -acodec mp3 -ar 44100 -ab 128k -f flv "D:\gallery3\var/modules/transcode/flv/2436/854x480.flv"
2012-10-25 22:43:23: executing: cd /tmp ; nice D:\gallery3\bin\ffmpeg.exe -i "D:\gallery3\var/albums/Loser/20121012_114052.mp4" -s 854x480 0 -vb 3072k -y -acodec mp3 -ar 44100 -ab 128k -f flv "D:\gallery3\var/modules/transcode/flv/2436/854x480.flv" > D:\gallery3\var/modules/transcode/log/1351226603.log 2>&1 &

This is what I am getting in the log and if I remove the 0 from this part 854x480 0 and run that in a command line it does the dirty deed..
Any help that anyone can give me to clean up these flags would be greatly appreciated.

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Fri, 2012-10-26 18:34

Nonek - I think the easiest thing is just to go directly into Admin -> Settings -> Advanced and delete the value for transcode / ffmpeg_flags. You might need to do this every time you change something in the settings page, it seems to creep back in sometimes. Directly fiddling the settings can be useful for other reasons as well - the settings page only lets me choose the “aac” codec, but the default one that ffmpeg chooses has problems with some audio streams I want to hand it. by editing transcode / audio_codec to “libvo_aacenc” instead, I can select an alternate encoder I wouldn't normally be able to.

 
rtpzr2

Joined: 2012-10-29
Posts: 2
Posted: Mon, 2012-10-29 16:05

Can this module help fix my issue with mp4 files only playing audio in flowplayer? I want to be able to upload videos recorded from my cell phone device without doing any manual conversions. I am uploading the videos via FTP and adding them using the video version of the server add module. Is there a different flash player that would play this codec of mp4 video format?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2012-10-29 17:22

Flash can only play mp4 that uses .h264 video codec and either AAC or MP3 audio

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
rtpzr2

Joined: 2012-10-29
Posts: 2
Posted: Mon, 2012-10-29 18:30

Got it. So there are not many options other than manually converting my video files before uploading? I thought that is what the online transcoder is supposed to do.

 
therat

Joined: 2009-10-08
Posts: 18
Posted: Thu, 2012-11-15 08:09

Does anyone else has a problem with the validation function. This is what I get when I try to upload avi and mp4. I'm with Galery 3.0.4 and transcode 13:

Quote:
2012-11-14 17:48:07 +00:00 --- error: ORM Validation has failed for items model
....
system/libraries/ORM.php(755): ORM_Validation_Exception_Core::handle_validation('items', Object(Validation))
....
2012-11-14 17:48:07 +00:00 --- error: Validation errors: Array
(
[mime_type] => invalid
[name] => illegal_data_file_extension
)

I've seen in another topic (http://gallery.menalto.com/node/107283) that previously file extensions were fixed with adding an event.

Additionally I tried to add another event to cover the mime types but the result was the same error:
./modules/transcode/helpers/transcode_event.php

Quote:
static function legal_movie_types($types_wrapper) {
array_push($types_wrapper->types , "video/avi");
}

Any suggestions

 
therat

Joined: 2009-10-08
Posts: 18
Posted: Fri, 2012-11-16 19:51

OK, I found something.
The flash uploader has a validator of itself

Quote:
vi ./modules/gallery/controllers/uploader.php

Added "avi" here. Seems it dosn't use the legal_file

Quote:
if (array_key_exists("extension", $path_info) &&
in_array(strtolower($path_info["extension"]), array("flv", "mp4", "m4v", "avi"))) {
$item->type = "movie";
$item->save();
log::success("content", t("Added a movie"),

 
therat

Joined: 2009-10-08
Posts: 18
Posted: Sat, 2012-11-17 20:39

I ran into bunch of other problems.
I made a few modifications, just want to bring them to the attention of the module devs, maybe worth it to add them to the new version.

PROBLEM: where Task name is build out of unknown variable $i
ERROR: Undefined variable: i (in gallery log)
SOLUTION:
static function item_created($item)
add $i=0 outside
and $i++ inside the foearch task loop

PROBLEM: ffprobe doesn't return a result
ERROR: Trying to get property of non-object (in gallery log)
SOLUTION: My version of ffprobe didn't accept the -i argument. When ran manually with the same options as from the script it gave an error.
I removed the "-i" argument

PROBLEM: Occationally ffmpeg will stuck forever on an avi video (I'm with version 0.10 now)
SOLUTION: Add "-timelimit 120"
to ffmpeg arguments helps to me.

PROBLEM: The above will terminate the ffmpeg but unfortunately the task of transcode will continue to run.
ERROR: Infinite printing of "encoded time: 00:00:02.32" in transcode.log
SOLUTION: Additionally set a limit for the transcode task in class transcode_task_Core::transcode :

Quote:
$infinProtect=0;
$iterationsMax=400;
$checkInterval=500000

while ($time = self::GetEncodedTime($logfile)) {
transcode::log("encoded time: " . $time);

if (self::$duration > 0) {
$task->state = "encoding";
$task->status = "Encoding...";
$pct = sprintf("%0.0f", ($time / self::$duration) * 100);
$task->percent_complete = $pct;
$task->save();
}
usleep($checkInterval);
if ($infinProtect > $iterationsMax) {
transcode::log(" Reached a timeout period of " . ($checkInterval * $iterationsMax)/100000 . " seconds and w
ill terminate task");
break;
}
$infinProtect++;

}

PROBLEM: And although clips are uploaded and play well, the uploader still gets an error message.

 
syscologne

Joined: 2003-05-20
Posts: 37
Posted: Mon, 2012-12-31 19:44

I have an issue with the FFMPEG transcoding: seems it is not able to understand the transcoding command. The Log file gives me the following issue:

Quote:
ffmpeg version git-Mon Dec 31 19:11:12 2012 +0100-9e28e00 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 31 2012 19:59:33 with gcc 4.2.4 (GCC) (Ubuntu 4.2.4-1ubuntu4)
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-libfaac --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 85.100 / 54. 85.100
libavformat 54. 58.100 / 54. 58.100
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.102 / 3. 30.102
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[avi @ 0xa965ca0] non-interleaved AVI
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, avi, from '/var/www/vhosts/xxx123.de/httpdocs/var/albums/test/x-mas-2012/MVI_4717.AVI':
Metadata:
creation_time : 2012-12-10 15:57:50
encoder : CanonMVI06
Duration: 00:00:07.93, start: 0.000000, bitrate: 15566 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 1024x768, 15 tbr, 15 tbn, 15 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, mono, s16, 705 kb/s
[NULL @ 0xa966b80] Unable to find a suitable output format for '44100'
44100: Invalid argument

Any idea or hint where I could be looking for correcting this?

 
syscologne

Joined: 2003-05-20
Posts: 37
Posted: Tue, 2013-01-01 07:17

Found and solved it - I found the actual FFMPEG command string in the transcode log and saw that the flag -acodec was not filled (only followed by a space).
I also was not able to have a choice in the admin page on the audio codec (select box was not filled).

I solved this by going to the advanced settings and set the audiocode manually to "aac".

Now works fine - only have one remaining issue:

The thumbnail of the transcoded videos is not shown (always shows pic is broken). All thumbnails of other mp4 native formats I upload that do not use transcode work fine.
Checked whether there is a pic existing in the directory - there is. Downloaded it - seems good. Trying to open it in the browser gives me a Kohana 404 exception, although the file exists (see below). Checked permissions and changed owner - no change, still the same error.

Log File does not help me:

Quote:
2013-01-01 08:06:54 +01:00 --- error: File not found: file_proxy%2Fx-mas-2012%2FMVI_4748.jpg

Did anybody else have this issue? Any idea how to fix it / nail down the error?

Kohana Exception thrown:

Quote:
Kohana_404_Exception [ Page Not Found ]:
The page you requested, file_proxy/x-mas-2012/MVI_4748.jpg, could not be found.
MODPATH/gallery/controllers/file_proxy.php[ 85 ]

80 }
81 }
82 }
83
84 if (!$item->loaded()) {
85 throw new Kohana_404_Exception();
86 }
87
88 // Make sure we have access to the item
89 if (!access::can("view", $item)) {
90 throw new Kohana_404_Exception();
{PHP Interer Zugriff} » File_Proxy_Controller->__call( Argumente )

SYSPATH/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs( Argumente )

{PHP Interer Zugriff} » Kohana_Core::instance( Argumente )

SYSPATH/core/Event.php[ 208 ] » call_user_func_array( Argumente )

APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( Argumente )

DOCROOT/index.php[ 113 ] » require( Argumente )

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2013-01-01 14:26

did you try the video thumb module? http://gallery.menalto.com/files/videothumb_suprsidr.zip
Adds an entry to the edit item dropdown to select the thumb offset.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
syscologne

Joined: 2003-05-20
Posts: 37
Posted: Wed, 2013-01-02 21:06

Good point - I had the same idea and did try it. Did not change the issue, issue still pertains.

Seems the proxy script does not find the thumbnails - weird behavior. Any other ideas / suggestions what I could try?
Who has a good knowledge on the proxy module / script within Gallery3?

Again - thumbnails do exist on the server, just can't seem to access them. Tried all file system permission ideas I had - chmod 777, change owners to webserver or webroot, etc. - no change.

Thanks for your support!

 
syscologne

Joined: 2003-05-20
Posts: 37
Posted: Fri, 2013-01-04 06:33

Seems really difficult to set up the transcode module. Whenever I set it up, the admin menu does not allow me to save the settings...

5th time I install fresh again, on two servers with Ubuntu (8 and 10) - everytime the same problem

Quote:
There was a problem with the submitted form. Please check your values and try again.

Can't get it working...

@danneh3826: what is the latest version - 12 from your blog still the latest?

 
syscologne

Joined: 2003-05-20
Posts: 37
Posted: Sat, 2013-01-05 20:32

Now use version 10 and this seems kind of working for me.

Only remaining issue I have is that some Thumbnails of certain movie types are not found by the Kohana proxy although they are created with same permissions as other thumbs - will open a separate thread under Troubleshoot for that since it looks to me more an issue to Kohana than to this module.

 
justroach

Joined: 2004-11-04
Posts: 5
Posted: Mon, 2013-01-28 22:47
Quote:
There was a problem with the submitted form. Please check your values and try again.

I'm getting the same error using version 13... You figure out what was causing it/how to fix it?

Edit: Doing a little more digging (I'm not seeing anything in the log files), but it looks like the javascript verifyffmpeg is not working to get the audio codecs from ffmpeg.

Edit 2: :D I like fixing my own problems. Line 92 in helpers/transcode.php need an extra "-" in there for the latest version of ffmpeg to pick up when to read in the list of codecs.

 
syscologne

Joined: 2003-05-20
Posts: 37
Posted: Tue, 2013-01-29 03:01

Well - did this help to get the full module functionality?

I used version 10 and compiled a new ffmpeg which seems to now work for me.

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Sat, 2013-02-16 03:18

Hrmmm...for videos which were uploaded when the module wasn't active, it would be nice to be able to rebuild the missing resizes. Has anyone poked at this sort of functionality? The module doesn't seem to use the "dirty" type of mechanism you can use to trigger thumbnails to get rebuilt or EXIF data to be reextracted.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2013-02-16 03:41

The experimental version of G3 has a setting/checkbox on the movies/ffmpeg config page to help with rebuilding the thumbs. Movies don't have resizes.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
cchiappa
cchiappa's picture

Joined: 2008-08-11
Posts: 101
Posted: Mon, 2013-02-18 16:30

Well, yes, but a key feature of this module is that it generates resized versions of videos.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-02-18 17:26

I was just pointing out that the experimental version has an option to rebuild the movies, perhaps this module listens to that flag and rebuilds all the versions as well. I have never used the module and just wanted to point out a new feature that perhaps this module will use or perhaps be extended to use.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
sean_dunc

Joined: 2013-07-28
Posts: 1
Posted: Sun, 2013-07-28 17:12

I have run into what appears to be a bug with how the transcode module handles .avi files. The upload and the transcode happen just fine (I watch the transcode successfully complete in ./modules/transcode/log/transcode.log. I go to the album that the video was uploaded to and I can see the proper thumbnail with the correct time of the video in the lower right portion of the thumbnail. However, when I click on the video to go to the page where Flow Player is supposed to playback the transcoded .flv I only get a page with no player and a link to download the source .avi file I uploaded.

Here is the strange part:
If I do a straight rename of that exact same .avi file to a .mov extension and upload it again it also transcodes fine and generates a thumbnail but when I click on the thumbnail flow player correctly plays the transcoded .flv as I would expect.
I have also tried taking a file that was originally a .mov and renaming it with a .avi extension and have found the same problem to occur, as described in the first paragraph. It seems there is some strange treatment being given to files with a .avi extension in their filename that has nothing to do with their inner codec. Any ideas on what to do to fix this?

Other than the above, I really like this transcode module, does a fantastic job overall.