Hello,

My shared hosting provider (hostgator) does not allow me to use ffmpeg. And FFMPEG-install-script-for-shared-host script failed. I don't want to transcode video files, I just need to have thumbnails. Is there any alternative to ffmpeg for thumbnail creation?

Thanks

CommentFileSizeAuthor
#9 codecs.txt19.49 KBcoolman7

Comments

hypertext200’s picture

You can manually upload a thumbnail. Go to the Video field settings and in thumbnail settings just select manual upload thumbnails.

Jorrit’s picture

Why would you want to use the video module in this case? You could just use a file field and an image field.

coolman7’s picture

I just want to: Users of website should upload a video file, and website should automatically generate a thumbnail. Users should not deal with generating thumbnails. And I need Video module to playing streaming video on website.

By the way I downloaded some pre-build static library ffmpeg binaries, but it does not work as I expected. For example it generate only one thumbnail instead of 5 on some videos, and does not generate any thumbnail on some videos.

Jorrit’s picture

The Drupal error log should provide some information. It could be that the prebuilt binary doesn't have all the necessary codecs.

coolman7’s picture

Log message:

Error generating thumbnail for video test.mp4: PHPVideoToolkit error: Execute error. Output for file "/var/www/sites/default/files/videos/original/test.mp4" was not found. No images were generated..

coolman7’s picture

Which codecs are necessary?

coolman7’s picture

I executed ffmpeg command from hosting company's server, following command:

ffmpeg -i movie.mp4 -ss 00:00:14.435 -vframes 1 thumb.jpg

I get this error message:
Error while opening decoder for input stream #0:0

This is the full output:

/lib/libz.so.1: no version information available (required by ffmpeg)
ffmpeg version 1.1.3 Copyright (c) 2000-2013 the FFmpeg developers
built on Mar 5 2013 09:08:56 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-static --disable-shared --disable-yasm
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2013-02-27 22:08:18
Duration: 00:00:55.43, start: 0.000000, bitrate: 680 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360, 582 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s
Metadata:
creation_time : 2013-02-27 22:08:18
handler_name : IsoMedia File Produced by Google, 5-11-2011
Output #0, image2, to 'thumb.jpg':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
Stream #0:0(und): Video: mjpeg, yuvj420p, 640x360, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Metadata:
creation_time : 1970-01-01 00:00:00
handler_name : VideoHandler
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mjpeg)
Error while opening decoder for input stream #0:0

Jorrit’s picture

Could you attach the output of ffmpeg -codecs here?

coolman7’s picture

StatusFileSize
new19.49 KB

I attached the output of ffmpeg -codecs.

coolman7’s picture

I believe there is some kind of restriction or missing library file in hosting server. Because I can execute the same command successfully in my personal computer running ubuntu linux. But same command failed at hosting server.

Jorrit’s picture

There is h264 support in the codecs you posted, so I don't know what the exact error is.

ghb0104’s picture

This version can not generate video thumbnails automatically. However, when i use the 2.8 version, everything works well.

Is there anyone get the same problem?

Jorrit’s picture

Are you getting any errors?

coolman7’s picture

I believe my hosting provider (hostgator) restricted any ffmpeg usage on shared hosting.

I don't need transcoding video files. I only need thumbnails. Is there any alternative to ffmpeg just for thumbnail creation.

ghb0104’s picture

i got the following error message:

Error generating thumbnail for video Sean_Belka.mp4: PHPVideoToolkit error: Execute error. Output for file "C:\acquia-drupal\Sites\drupal-7.19\sites\ffocdev\files\videos\original\Sean_Belka_2.mp4" was not found. No images were generated..

In fact, the file "C:\acquia-drupal\Sites\drupal-7.19\sites\ffocdev\files\videos\original\Sean_Belka_2.mp4" exists.

The drupal core i used is 7.19

ghb0104’s picture

Hi Jorrit,

i got the following error message:

Error generating thumbnail for video Sean_Belka.mp4: PHPVideoToolkit error: Execute error. Output for file "C:\acquia-drupal\Sites\drupal-7.19\sites\ffocdev\files\videos\original\Sean_Belka_2.mp4" was not found. No images were generated..

In fact, the file "C:\acquia-drupal\Sites\drupal-7.19\sites\ffocdev\files\videos\original\Sean_Belka_2.mp4" exists.

The drupal core i used is 7.19

Thanks

Jorrit’s picture

I see you are using Windows. There may be an incompatibility between the module and Windows. I don't have a PHP development environment with Windows, so I can't help you there.

brycefisherfleig’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)