Been having some problems getting ffmpeg to transcode files. At the moment I've got it waiting for the cron to transcode rather than on save as that was just giving me problems and not creating the node.

Now it creates the node and says "This video is currently being processed. Please wait."

then I run the cron and get this:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /home/spectoso/public_html/free/includes/database/database.inc:2168 Stack trace: #0 /home/spectoso/public_html/free/includes/database/database.inc(2168): PDOStatement->execute(Array) #1 /home/spectoso/public_html/free/includes/database/database.inc(680): DatabaseStatementBase->execute(Array, Array) #2 /home/spectoso/public_html/free/includes/database/database.inc(2347): DatabaseConnection->query('SELECT expire, ...', Array, Array) #3 /home/spectoso/public_html/free/includes/lock.inc(167): db_query('SELECT expire, ...', Array) #4 /home/spectoso/public_html/free/includes/lock.inc(146): lock_may_be_available('schema:runtime:...') #5 /home/spectoso/public_html/free/includes/bootstrap.inc(424): lock_acquire('schema:runtime:...') #6 /home/spectoso/public_html/free/includes/bootstrap.inc(446): DrupalCacheArray->set(Array) #7 [internal function]: DrupalCacheArray->__destruct() #8 {main} thrown in /home/spectoso/public_html/free/includes/database/database.inc on line 2168

I have been watching the processes running on the server and there are 3 ffmpeg processes running before this message appears. They disappear once this message appears.

Thanks

Comments

jorrit’s picture

Try to increase the MySQL time out settings so they cover the transcoding time with some marging.

davey_b’s picture

I contacted my hosting company who say they have a 300 second timeout so think there might be something else going on here.

If I don't use the "convert on node save" feature and have it transcode when the cron runs it seems to convert the file because I can see the converted file (it starts as a .mov file and goes to a .mp4 file) but it's like it doesn't tell the node as the page still say that the video is transcoding and also if I run the cron again it transcodes it again. It seems to still be in the queue.

Any thoughts?

davey_b’s picture

Having a go to try and sort this and when I changed the transcoder to ffmpeg (from zendocer) on another site that is hosted with the same webhosting company I got this error:

FFmpeg version unrecognized: SVN-r26076, found on your system.

Do you think this could be an issue. As stated above I now seem to be able to convert files but the node does not pick up the converted file and display it even though I can see it in the file manager from cpanel.

hypertext200’s picture

Component: Video Transcoding » General
Status: Active » Closed (cannot reproduce)