I'm using this module on an Ubuntu 8.04 server, and I've set it up 3-4 times before without a hitch. I have verified that ffmpeg can convert my files (I compiled from source with MP3 support, and updated the binary path in the universal settings), but the problem seems to be upstream somewhere- I have attached several different video files to an enabled node type (wmv and mov so far), with the default settings for mimetypes. Although I want to use CCK fields for the conversion, right now I'm using the Upload module as I have more experience with that. After creating a node with an attached video, I go to cron.php, and nothing happens. I've been looking through the database, and at no point in the process (I've looked at every point I think could make a difference) is there an entry in either the flashvideo table or the ffmpeg_data table, although the file is there in the file table.

I'm using D6.10, Flashvideo 1.5-beta2. Core is untouched, as are all my contrib modules. Pretty simple site all told. Any ideas?

Comments

Charlie Sibbach’s picture

I've been doing some debugging on this. Turns out that FCKEditor actually was inserting a set of

tags around the allowed filetypes string in the universal settings; I set it up to exclude all of the universal settings fields from FCK, and removed the

tags. However, it is still not converting, because flashvideo_get_allowed_filetypes is still returning no results. I set the default return value to TRUE in _flashvideo_get_mime_type and it's working fine, albeit with no MIME-type checking.

Further debugging shows that FCK went a further step and removed all the newlines in the fields. However, there is nothing in the help field that documents that each file and mimetype should be on a new line rather than space-separated (I had to look at the regex you were using to split it up).

So, problem seems to be solved. My only recommendation is that you put in a note in the Types section of the Universal Settings that everything should be on separate lines. Might even want to mention somewhere in the docs that FCKEditor (and presumeably other WYSIWYGs) can really screw this up- maybe in your troubleshooting FAQ.

Thanks for the great module!

attheshow’s picture

Version: 6.x-1.5-beta2 » 6.x-1.x-dev
Assigned: Unassigned » attheshow
Status: Active » Fixed

Good idea about noting the need to have MIME types listed on individual lines. I just committed the change to the dev version.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.