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
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | codecs.txt | 19.49 KB | coolman7 |
Comments
Comment #1
hypertext200You can manually upload a thumbnail. Go to the Video field settings and in thumbnail settings just select manual upload thumbnails.
Comment #2
Jorrit commentedWhy would you want to use the video module in this case? You could just use a file field and an image field.
Comment #3
coolman7 commentedI 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.
Comment #4
Jorrit commentedThe Drupal error log should provide some information. It could be that the prebuilt binary doesn't have all the necessary codecs.
Comment #5
coolman7 commentedLog 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..
Comment #6
coolman7 commentedWhich codecs are necessary?
Comment #7
coolman7 commentedI 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
Comment #8
Jorrit commentedCould you attach the output of
ffmpeg -codecshere?Comment #9
coolman7 commentedI attached the output of ffmpeg -codecs.
Comment #10
coolman7 commentedI 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.
Comment #11
Jorrit commentedThere is h264 support in the codecs you posted, so I don't know what the exact error is.
Comment #12
ghb0104 commentedThis 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?
Comment #13
Jorrit commentedAre you getting any errors?
Comment #14
coolman7 commentedI 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.
Comment #15
ghb0104 commentedi 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
Comment #16
ghb0104 commentedHi 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
Comment #17
Jorrit commentedI 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.
Comment #18
brycefisherfleig commented