Hi, merry x-mas
having some time today I updated my local gallery2 from CVS this morning and immediately checked out the gallery 1-2 conversion utility. It works great. I am having two problems though:
1) something's awry with the ffmpeg module since it throws up errors as soon as there's a movie in an album - I'll try to fix that myself ...
2) all imported albums belong to the Album Admin, which is anticipated. However, trying to change ownership turns out to be tedious, since you litteraly have to change every item in an album. There does not seem to be any recursion.
Let me know if thats just a user-error of mine, or if there is an intended limitation on the permission system.
Cheers
Jan
Posts: 79
Me again
the ffmpeg module barfs when there is an unsupported codec. Maybe this could be handled more gracefully?
Jan
Posts: 974
jamgold, does it barf during the import process, or afterwards?
Posts: 79
Import is fine, it barfes afterwards when trying to create the thumbnail for the movies in imported albums. I hacked the FfmpegToolkit.class to not throw an error back at all, which is not the right way to do it. There should be code which checks what ffmpeg's response was and generate a generic thumbnail for unknown video formats, IMO. As soon as I have more time I will try to come up with a code snippet to address this.
Jan
Posts: 7988
What version of ffmpeg are you using, what's the unsupported codec and what's the movie that you're trying to upload? If I can reproduce this (preferably with a very small movie) I'll be able to fix it.
Posts: 79
ffmpeg-0.4.6-2mdk
RIFF (little-endian) data, AVI and Microsoft ASF
Just go to my test gallery http://gallery2.sony.getwip.com/main.php/view/jhm/flicks/
Cheers
Jan
Posts: 7988
I grabbed ed95f56df1801f0a02694a2e771a8768.avi since it looked like that one did not have a thumbnail and ran it through ffmpeg. I have ffmpeg 0.4.8 and it was able to handle the file just fine. Can you tell me what you get when you run:
ffmpeg -vstats -i ed95f56df1801f0a02694a2e771a8768.aviI get:
which is what the ffmpeg module is expecting...
Posts: 79
I have ffmpeg 0.4.6 and get
But
Posts: 7988
Ah, I see. Well, ffmpeg is a young product still. Can you see if you can reproduce this problem with their latest code (0.4.8) ? If this is something that they fixed then I'd rather raise the requirement in G2 to a newer version of ffmpeg, than work around it in the code.
Posts: 79
I upgraded to 0.4.8 (I am running Mandrake 9.2), but no dice. The movie in questions still produces
Unsupported codec (id=0) for input stream #0.0I think gallery2/modules/ffmpeg/classes/FfmpegToolkit.class must handle ffmpeg errors more gracefully than just throwing an error condition that halts the entire pipeline. In my example I have only two offending files among many, yet the entire album isn't displayed - heck, I only get an unsightly error ;>)
Jan