I followed your tutorial exactly as it was written but still receive the "video not available" message.
1. opened an account with the host you reccomended, cirtex hosting
2. installed the FlashVideo module
3. used cpanel to set up a 5 minute cron task 5 * * * *
4. installed the content template module
5. added [thumbnail] to the teaser section of Page
6. I enabled FlashVideo to be used on the Page node
7. downloaded "flvplayer.swf" from the norwegian site you reccomended. uploaded it to /files
8. in FlashVideo settings, I setup the player as "flvplayer.swf", and set the directory to /files
9. went to create content > page
10. uploaded a small .WMV video file, about 200k
11. typed in a short topic, and description. added [video] to the body
12. went to administer, and ran the cron manually.
13. went back to the my newly created page with the uploaded file and nothing. it says "video not available"
This is really racking my brain because I used the same exact hosting as you. I followed each step exactly, and repeated them over atleast 3 times in case I made an error. This is totally baffles me. Please help.
Comments
Comment #1
travist commentedHmmmm.. I know that some people have reported that the ffmpeg is messing up because the audio bitrate is not provided in the ffmpeg string. Try looking at some of the other reports. I believe that they added an "-ar 22050" to the ffmpeg and this fixed that problem. Try this and let me know... Also, try some other videos and see if you still have no luck.
Also, just to let everyone know, I have been very busy lately so I have not had much time to fix some of these issues. For that, I apologize. However, I will be spending some time on this this weekend to see if I can iron out all the bugs. I really want to make this module bullet-proof. Just bear with me... It will get there.
Thanks,
Travis.
Comment #2
B.P.B commentedI added the -ar 22050 line and it still didn't work. I also tried different video format, avi mpeg wmv, none worked.
Another thing, files larger than 300K refuse to upload. It just stops and gives this error:
Line: 129
Char: 3
Error: 'null' or null is not an object
Code: 0
URL: www.mysite.com/node/add/page
Comment #3
B.P.B commentedI also just looked at the server error log and it reads this:
/home/cliphcom/public_html/files/test-clip.wmv: could not find codec parameters
Is something wrong with my ffmpeg command line?
-i @input -f flv -acodec mp3 -ab 64 -ac 1 -ar 22050 @output
Comment #4
B.P.B commentedI've been doing some more testing and uploading with IE is virtually impossible if the file is over 200-300k. It consistently gives that 'null' error I wrote about above. FireFox uploads almost without a hitch.
Also, it seems if the files audio codec and frequency does not exactly match the FFMPEG command line, the conversion will fail. Either totally, or the FLV will be made as 0 bytes.
A few files converted and the result is excellent. I look forward to the future of this module.
Comment #5
lismile commentedDid you check whether there is a "flv" file in the folder "/files". If you can play this flv file by using some flash player. It means that your ffmpeg configuration is good. Or else, you have to install or configure ffmpeg first.
However, even if I have got the flv file successfully, I cannot play it on my drupal site. I do not know the reason.
I found that my explorer is using the adobe flash player rather than the flvplayer.swf... Could you tell me the reason? Thans a lot.
Comment #6
thechraveler commentedI've also added the -ar 22050 line and it still hasn't worked for me. It produces a .flv file in the "files" directory, but it is a size of 0B and cannot be player with a desktop Flash player. It produces a thumbnail fine, but no flash video. Occasionally it will show the video in Quicktime format, but I have yet to see a Flash video with this module.
Comment #7
travist commentedI truely feel like this problem is getting the best of me. I have been looking at this problem now for about 2 days and cannot figure out why when I pass to ffmpeg a convertion string with every parameter that it is looking for, that it will sometimes work and sometimes not work. I have decided that ffmpeg is EXTREMELY picky as to what parameters you use. All I can do is pass it some parameters, and then just pray and hope it works. If it doens't convert, then the reason why is transparent to the module. I am pretty sure that it has something to do with the audio codec. Has anybody run into a conversion string that works? You might try this.... Not only adding "-ar 22050", but also try adding the "-ab 64" which will force the bit rate to be 64k. Really, all I am asking everyone is to please try everything. So, please try everything. I refuse to release another release until this issue has been resolved.
Comment #8
lismile commentedI think that you should first try to convert your video by commands, not by this module. If you can do it, you can use this module. In fact, I also faced the same problem in the beginning. In the end, I downloaded many different version of ffmpeg, compiled and runed them. I found that only one version is good. (Maybe I cannot figure out other versions due to my capability. :) )
I think it is not the module's fault. You can google your problem. You will find many forums have discussed this topic many times. Maybe you can find how to figure out your problem in the end.
Comment #9
travist commentedThank you for your support lismile.
I have seen the same problem and also feel that the problem lies in ffmpeg. I have checked my commands to ffmpeg many times and as far as I am concerned, the commands are what they should be. I will read what some other people have been saying about the ffmpeg executable.
Again, thanks for your support in this issue.
Comment #10
travist commentedComment #11
sally_1563 commentedI've been experiencing similar issues with windows/IE users.
My hosting company is also Cirtex Hosting and setup pretty much identical to the one Lloyd posted.
Files under 200k seem to be uploading okay but not always. Files over that size are not uploading to the server at all. The user, after adding their video and attaching get the all clear with the confirmation and title of video so nothing at that stage to let users know there is an issue.
They then submit and get the video not available thumbnail.
When I look at the files directory, no video uploaded. The error log shows nothing, I assume because the video did not upload so no conversion went through.
No problems at all for those using Macs and Safari.
Comment #12
tjcombo commentedDid you manage to fix the issue ?