Closed (fixed)
Project:
FlashVideo
Version:
5.x-2.8-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2008 at 11:41 UTC
Updated:
8 Feb 2009 at 02:22 UTC
Hopefully I've missed something really basic, but when upload an flv file I aways get the video not available message; the file is uploaded and the path is valid. However if I upload files as mpg's flashvideo converts them to flv's creates the thumbnails and everything works great. I normally use flv files which why i choose this module, could anyone shed any light as to why I only able to get to work with mpg's or videos that need converting; most of my users would prefer to encode files to flv before uploading them to save upload time, my server prefers this option too.
Comments
Comment #1
timosea commentedHi guys, I thought shared some more info on this bug, as after a closer inspection i've realised that the flv file is actually being upload to correct path, but the ffmpeg_data table entries for flv differ to the those of the working mpeg based uploads.
Firstly the input file for failed flv's is the full path:
E:\web\TechPlat\apache\htdocs\mysite/files/378_filename.flv
whilst working conversions of mpg's are relative to the file location:
files/original_videos/435_filename.mpg
The output files are in similar format using the full windows based path:
E:\web\TechPlat\apache\htdocs\mysite/files/video/454_filename.jpg
instead of
files/video/435_filename.flv
The jpg file that's listed instead of the flv is empty, but the uploaded flv is at that location, to me this looks a problem with ffmpeg generating thumbnails from flv's. Does this sound familiar anyone? Note I'm using a windows based server.
The actual data field from the fail ffmpeg is as follow:
Command: e:\web\TechPlat\ffmpeg\ffmpeg.exe -y -i "E:\web\TechPlat\apache\htdocs\mysite/files/454_filename.flv" -vframes 1 -ss "00:00:02" -an -vcodec mjpeg -f rawvideo -s "80x60" "E:\web\TechPlat\apache\htdocs\mysite/files/video/454_filename.jpg"
Data:
If anyone could shed some light on this it would make my month of flashvideo heart ache worth while, i'm so close to getting site finished this bug starting to haunt me;)
Comment #2
travist commentedI am curious if it is having issues with the difference in directory separators "/" vs "\"? Probably not, but this also may be an issue with FFMPEG. What version of FFMPEG are you using? Do you have the latest version?
Comment #3
timosea commentedsorry about the delay response is use drupal on regularly irregular bases...
I tried a few versions of ffmpeg, i just tried using rev12665 from http://ffdshow.faireal.net/mirror/ffmpeg/ and still the same problem, so reverted back to a old build i've been using for a while not sure of the version.
BUT the process did make me think, i changed my ffmpeg Command from:
-i @input -f flv -b 360 -r 15 -s 320x240 -hq -deinterlace -ab 56 -ar 22050 -ac 2 @output
to
-i @input -f flv -b 360 -r 15 -s 320x240 -acodec mp3 -ar 22050 -ab 64k -ac 2 @output
Now uploaded FLVs are not converted during upload and play with the original settings, which is ACE!
The only issue is that thumbnails are not created, well that not fully true thumbnail are created but the file size is zero and they don't work. But thumbnails and converted FLVs are created perfectly when uploading mpg, so this a massive step forward. I guess it was my ffmpeg command all along, just in case I'm missing something else basic my command for generating thumbnails is
-y -i @input -vframes 1 -ss @thumbtime -an -vcodec mjpeg -f rawvideo -s "@thumbsize" @output
Comment #4
travist commentedWhat dimensions are you using for your thumbs? I know that there is a known issue with FFMPEG where it doesn't work when you provide non 4/3 dimensions for a thumb.
Comment #5
attheshow commented