Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

FFmpeg timed out
Vallis
#1 Posted : Wednesday, 27 July 2011 4:52:24 PM(UTC)
Rank: Member

Joined: 9/01/2011(UTC)
Posts: 4

Is there any way to get the Error log to output what file its chocking on? I keep getting a FFmpeg timed out and the entire sync process shuts down with a 500 error. Seeing that I'm trying to import thousands of files, finding the one needle is tough.

BTW, this is using SQL CE.
Roger Martin
#2 Posted : Thursday, 28 July 2011 8:05:03 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

If you post the details of the error message, I'll see if I can fine-tune the reporting mechanism to include the file name.

Can you tell how far the sync has progressed by looking at your gallery to see what is there and what isn't? That should point you to the last file that was added.

You can also look in the table gs_MediaObject to see the file with the most recent DateAdded time - you can assume the one that failed is the next file in the directory. The Admin Guide has a section 'Management Tools for SQLite, SQL CE and SQL Server' to describe the tools you can use to inspect the SQL CE database.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Biest
#3 Posted : Thursday, 4 August 2011 5:11:15 PM(UTC)
Rank: Member

Joined: 4/08/2011(UTC)
Posts: 5
Location: Germany, Stuttgart

Hi Roger,

to me is the same Problem.

Here the Error-Report I got from the GalleryServer via Mail:
Quote:

This error report was generated by Gallery Server Pro.

Error: FFmpeg timed out while creating a video thumbnail. In most cases the thumbnail image is still created and you can ignore this message. If thumbnail images are not being created, report it at www.galleryserverpro.com, along with a link to the video if possible. The timeout value is set to 3000 milliseconds.

Error Summary

Url
<unknown>

Timestamp
05.08.2011 00:38:30

Exception Type
GalleryServerPro.ErrorHandler.CustomExceptions.BusinessException

Message
FFmpeg timed out while creating a video thumbnail. In most cases the thumbnail image is still created and you can ignore this message. If thumbnail images are not being created, report it at www.galleryserverpro.com, along with a link to the video if possible. The timeout value is set to 3000 milliseconds.

Source
GalleryServerPro.Business

Target Site
System.String ExecuteFFmpeg(System.String, Int32)

Stack Trace
bei GalleryServerPro.Business.FFmpeg.ExecuteFFmpeg(String arguments, Int32 galleryId)
bei GalleryServerPro.Business.FFmpeg.GenerateThumbnail(String mediaFilePath, String thumbnailFilePath, Int32 videoThumbnailPosition, Int32 galleryId)
bei GalleryServerPro.Business.VideoThumbnailCreator.GenerateAndSaveFile()
bei GalleryServerPro.Business.MediaObjectSaveBehavior.Save()
bei GalleryServerPro.Business.GalleryObject.Save()
bei GalleryServerPro.Business.SynchronizationManager.CreateNewMediaObject(IAlbum album, FileInfo file)
bei GalleryServerPro.Business.SynchronizationManager.SynchronizeMediaObjectFiles(DirectoryInfo directory, IAlbum album)
bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum)
bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum)
bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum)
bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum)
bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum)
bei GalleryServerPro.Business.SynchronizationManager.SynchronizeChildDirectories(DirectoryInfo parentDirectory, IAlbum parentAlbum)
bei GalleryServerPro.Business.SynchronizationManager.Synchronize(String synchId, IAlbum album, String userName)
bei GalleryServerPro.Web.Controller.GalleryController.Synchronize(Object syncSettingsObject)

App Error ID
171

Gallery ID
3

HTTP User Agent
<unknown>


Form Variables

<none>


Cookies

<none>


Session Variables

<none>


Server Variables

<none>

In the same Directory there are other Movies he was able create Thumbnails...

Hope you can help...

The Video, FFmpeg ist broken you can get at:
http://irq.dyndns.org/bi...8+Bretagne%5CFCO%5CTag3
The Name is: Film2_hang1_gedreht_gespiegelt.wmv
Mark the checkbox and click the Downloadbotton with the red arrow...

Kind Regards
Tobias

By the way:
I have installed only a few hours ago Gallery Server and am already very excited by the software.
Class made​​!
Roger Martin
#4 Posted : Thursday, 4 August 2011 9:19:37 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I downloaded the video and tried it on my system, and the thumbnail was correctly created by FFmpeg with no issues logged in the error log. Try syncing just the album that contains the video (be sure to select the 'overwrite thumbnails' option). Is the issue repeatable?
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Biest
#5 Posted : Friday, 5 August 2011 12:27:07 AM(UTC)
Rank: Member

Joined: 4/08/2011(UTC)
Posts: 5
Location: Germany, Stuttgart

Hi Roger,

thanks for quick reply.

The issue is repeatable.

Errormessage after Synchronisation:


after:


My feeling tells me that the problem is in the .avi-Files...


The problem for me is not that he cannot create the Thumbnail - the problem is that he is stopping the synchronisation after this error occures.

Maybe you can write an exeption handler ?
That would be great :)

Kind regards
Tobias
Roger Martin
#6 Posted : Friday, 5 August 2011 8:23:20 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Turns out it was caused by the file Hang1_Film2_gedreht_gespiegelt.wmv.

You are right, though - there isn't a good reason to stop the sync when this type of error occurs. So I modified the code to record it in the error log but otherwise continue with the sync.

The fix is in the file GalleryServerPro.Business.dll. Get it from the patch.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.