Closed (fixed)
Project:
Video
Version:
6.x-4.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 May 2010 at 21:56 UTC
Updated:
27 Jan 2011 at 14:28 UTC
hi,
Thumbnail generating don't work
with ffmpeg wrapper :
Type video_transcoder
Error generating thumbnail for video: generated file sites/default/files/video_thumbs/57/video-thumb-for--5.jpg does not exist.
Command Executed:
Command Output:
FFmpeg version SVN-r22723, Copyright (c) 2000-2010 the FFmpeg developers built on Mar 30 2010 00:02:55 with gcc 4.3.2 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaad --enable-libx264 --enable-libfaac --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-nonfree --enable-libvorbis --enable-libfaad --enable-libfaac --enable-libvorbis --enable-pthreads --enable-decoder=libogg libavutil 50.13. 0 / 50.13. 0 libavcodec 52.61. 0 / 52.61. 0 libavformat 52.58. 0 / 52.58. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.10. 0 / 0.10. 0 %videofile: No such file or directory
Type FFmpeg Wrapper
FFmpeg failed to convert a file. FFmpeg said: Could not write header for output file #0 (incorrect codec parameters ?)
Command was: ffmpeg /usr/local/bin/ffmpeg -i 'sites/default/files/videos/videos/videos/videos/original/Butterfly.wmv' -s 640x428 -padtop 26 -padbottom 26 'sites/default/files/videos/videos/videos/videos/converted/Butterfly.flv'
Output was:
FFmpeg version SVN-r22723, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 30 2010 00:02:55 with gcc 4.3.2
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaad --enable-libx264 --enable-libfaac --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-nonfree --enable-libvorbis --enable-libfaad --enable-libfaac --enable-libvorbis --enable-pthreads --enable-decoder=libogg
libavutil 50.13. 0 / 50.13. 0
libavcodec 52.61. 0 / 52.61. 0
libavformat 52.58. 0 / 52.58. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, asf, from 'sites/default/files/videos/videos/videos/videos/original/Butterfly.wmv':
Metadata:
WM/ParentalRating:
WMFSDKVersion : 10.00.00.3646
WMFSDKNeeded : 0.0.0.0000
IsVBR : 0
WM/AudioFileURL :
WM/AuthorURL :
WM/AudioSourceURL:
WM/SharedUserRating: 99
WM/Category : Exemple
title :
author :
copyright :
comment : Courtesy of Robert Millis. Used by Permission.
Duration: 00:00:10.17, start: 5.000000, bitrate: 2199 kb/s
Stream #0.0: Audio: wmav2, 48000 Hz, 2 channels, s16, 96 kb/s
Stream #0.1: Video: wmv3, yuv420p, 720x480, 1895 kb/s, PAR 8:9 DAR 4:3, 29.97 tbr, 1k tbn, 1k tbc
[libmp3lame @ 0x8089ca0]flv does not support that sample rate, choose from (44100, 22050, 11025).
Output #0, flv, to 'sites/default/files/videos/videos/videos/videos/converted/Butterfly.flv':
Metadata:
encoder : Lavf52.58.0
Stream #0.0: Video: flv, yuv420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 29.97 tbc
Stream #0.1: Audio: libmp3lame, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Stream #0.0 -> #0.1
Could not write header for output file #0 (incorrect codec parameters ?)
with Ffmpeg
Type video_transcoder
Error generating thumbnail for video: generated file sites/default/files/video_thumbs/56/video-thumb-for--1.jpg does not exist.
Command Executed:
-i %videofile -an -y -f mjpeg -ss %seek -vframes 1 %thumbfile
Command Output:
FFmpeg version SVN-r22723, Copyright (c) 2000-2010 the FFmpeg developers built on Mar 30 2010 00:02:55 with gcc 4.3.2 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-shared --enable-libmp3lame --enable-libfaad --enable-libx264 --enable-libfaac --enable-libvorbis --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-nonfree --enable-libvorbis --enable-libfaad --enable-libfaac --enable-libvorbis --enable-pthreads --enable-decoder=libogg libavutil 50.13. 0 / 50.13. 0 libavcodec 52.61. 0 / 52.61. 0 libavformat 52.58. 0 / 52.58. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.10. 0 / 0.10. 0 %videofile: No such file or directory
Comments
Comment #1
iLLin commented%videofile doesnt work anymore. Reset your system settings on the transcoder tab.
Let me know.
Comment #2
iLLin commentedhttp://drupal.org/cvs?commit=371816
Comment #4
timd.mackey commentedThis is quite an old issue, but it appears that there is a problem with the default settings for the video thumbnailing options in Transcoders > Video Thumbnails > Advanced (Video Thumbnailer Options).
The default ffmpeg command is the following:
-i %videofile -an -y -f mjpeg -ss %seek -vframes 1 %thumbfileBut it should be:
-i !videofile -an -y -f mjpeg -ss !seek -vframes 1 !thumbfileNotice that the %'s are changed to !'s. Because the tokens had the wrong prefixes, they were not getting replaced with the actual token values, so ffmpeg was just receiving a command with tokens instead of real pathnames.
Comment #5
timd.mackey commentedTo clarify, I'm using Video 6.x-4.2-alpha2, but this issue is much older than the current release that I'm using, so I'm thinking the bug must have reverted.
Comment #6
hypertext200@timd.mackey, reset the settings. That should fix if any issue when u upgrade
Comment #7
timd.mackey commentedI already fixed the issue myself by making the changes that I mentioned. Thanks for the tip though. Perhaps this needs to be looked into further though? I'm pretty sure I did a fresh install of this module.
Comment #8
hypertext200