As the FlashVideo module becomes more and more popular within the Drupal CMS, I am finding that I am spending a lot of my time helping people debug problems that they are having getting the module up and running. This is not to say that there is a problem with the module by any means, but rather that because of the complexities that are involved with having a video hosting website, a newbie is bound to run into some issues that makes it hard for them to find the right solution to their problems. My goal for this article is to put all of these issues into one single article so that one does not have to skim through hundreds of Forum posting on this site to find the solution to their problems... So, below you will find a listing of the most common issues that people have with getting this module up and running. Once you click on each of these issues, you will then be taken to a new page where I discuss the causes for each of them and solutions to their problems.
Also, please note that this article will be an ever evolving and updated article. As I help people with the module, and their problem is unique, I will add a new entry for everyone to have access too. Hopefully, this will not only save you time, but also save me lots of time helping people with the same issues over and over again.
With that said, I hope you find this article useful.




Having problem with watching video
I am using windows xp and JW FLV MEDIA PLAYER 4.0. I have copied the Player.swf in files diretory. The problem is when I upload a flv video and try to watch it, it shows that it is trying to stream the video but it can not. The video does not play. But the flv video file exists in files directory. I am not using ffmpeg cause I am not converting files.
Where is the problem? Am i missing something? Please help...
Thanks
Not sure... Have you tried
Not sure... Have you tried an older version of the JW Player. I know for a fact that the new version has a ton of changes, and might need some debugging.
I had also the same problem with flv fiels
the flv fiels are uploading in the destination directory but what is found is that the flv path it is taking is not correct
So the video is not playing
How to see two videos in a node?
Hi everybody
I insert two videos in a node, The conversion is ok, but I dont know to show them, always the node show the first
Can you help me?
Imagecache and Flashvideo Thumbnail
Hi There i Would like to know How can we "The Flashvideo module fans!" use the imagecache module to genarate variations of the Thumbnail picture. In my particular case i have 2 videos in a same node , and i want to have one thumbnail big and the otherone small, In the Imagecache readme file talk about two examples To automatically display a manipulated image
<?phpprint theme('imagecache', 'preset_namespace', $image['filepath'], $alt, $title, $attributes);
?>
<?phpprint theme('imagecache', 'products', $node->field_product_photo[0]['filepath']);
?>
How a flashvideo thumbnail code will looks like using imagecache code?
Installed and am having a variety of issues...
I just downloaded and installed this:
http://ftp.drupal.org/files/projects/flashvideo-5.x-2.7.tar.gz
* Uploading flv's work. Uploading other videos does not convert to flv.
* I uploaded some files - flv, mpg, wmv - to the video_import folder, it is readable, but flvs are not showing any where that I can find as available videos.
* I uploaded some files - flv, mpg, wmv - to the files folder, it is readable, but flvs are not showing any where that I can find as available videos.
* No thumbnails are created.
* How do I utilize the playlist feature?
What I'm having to do to is convert the video from whatever format it is in to flv using Flash8. Then upload it via the upload page.
Any help is greatly appreciated!
thanks!
K
I am having a similar
I am having a similar issue.
Module works super with FFMPEG and my host. But all of the sudden after I upgraded from 5x 2x dev when we upload a flv file, the conversion runs, I can see the converted file sitting in the flash video folder, but it won't show on the node.
When I looked at the source code for videos that were originally mov or wmv, they show up on the node and everything looks fine.
When I look at the source for videos there were originally flv, the node shows.
div class="content" img src="/sites/all/modules/flashvideo/video_MIA.png" alt="video unavailable"
Our flv videos have been converted to flv via Flash 8. The reason we are converting them to flv from mov prior to upload is that we don't want to set -maxrate for the conversion since when we convert mov they look blocky unless the conversion is set to -maxrate. And movs are huge files.
We are using version = "5.x-2.7
Any help would be appreciated, we are in a crisis mode about this and need to get our video feed out this week.
What do you guys have set
What do you guys have set for your video "output directory"?.... Are the permissions set so that a file could be moved into that directory?
Hi,
Hi,
Thanks for getting back to me.
We have the output directory set as
files/flashvideos
permissions are 755
In the module settings, I do not have delete original checked, but funny thing, the original always seem to disappear anyway.
I can see the converted flv sitting in files/flashvideos with the same beginning of the NODE ID, 20594 as the Node itself.
I looked at the FFMPEG_data table for the video that won't show here is what is says.
(1127,20594,'062207 DevinBrandt 27 InCar.flv',1),(1128,20594,'20594_062207_DevinBrandt_27_InCar.jpg',0)
062207 DevinBrandt 27 InCar.flv is the original, the DB should show it as 20594_062207_DevinBrandt_27_InCar.flv just like it does for the .jpg thumbnail
The other thing I noticed in the DB is that there is a , 1 after the flv that won't show. All of the other videos that work have a ,0.
Then again later in the DB it looks like this
(1127,20594,'20594_062207_DevinBrandt_27_InCar.flv','
files/flashvideos/20594_062207_DevinBrandt_27_InCar.flv','video/x-flv',30628212),
(1128,20594,'20594_062207_DevinBrandt_27_InCar.jpg','
files/flashvideos/20594_062207_DevinBrandt_27_InCar.jpg','jpg',3904)
Notice where it says "video/x-flv"
All other videos that work say 'flv-application/octet-stream'
Try opening up the
Try opening up the FlashVideo Settings, and under the Global Settings, you can add the "video/x-flv" to the mimetypes. If it is not already there, then that is your problem.
Site crash on install
I uploaded a brand new site and added all my modules at once, including FlashVideo. I now get error and an exit any time I view the site index:
Fatal error: require_once() [function.require]: Failed opening required 'modules/flashvideo/flashvideo_objects.inc' (include_path='/home/gsn/www/classes:/usr/local/lib/php/include:/tmp:/home/rperow/www/pods') in /home/gsn/www/drupal/modules/flashvideo/flashvideo.module on line 9
I'm using Drupal 5.7 and the latest version for 5: flashvideo-5.x-2.7 so I don't know if it's compatible yet. Thanks in advance!
Edit line 9
I got it to work by changing the require_once on line 9 to include './' at the beginning and it seems to be working correctly now. You might want to add this to the next version as I've noticed other modules include it to compensate for unregistered include paths.
player loads but does not play flv
I am using FlashVideo 5.x-2.7and flowplayer. The videos are being converted fine, but when I place the [video] tag into the body of a node after uploading to that node the player loads and does not play FLV. I have included the code that drupal generates for the page. I have downloaded the generated flvs and played them locally, so flv is ok & thumnails generated ok. Any help would be usefull as I believe my flashvars are set right.
-Thanks - Leavitron
<div class="content">This is text.......before the video<div id="video-player" align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="450" height="337" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><param name="movie" value="http://www.mysite.com/files/player.swf" /><param name="wmode" value="transparent" /><param name="FlashVars" value="file=http://www.mysite.com/files/video/37_bar3.flv&image=http://www.mysite.com/files/video/37_bar3.jpg&rotatetime=3&autostart=false" /><param name="quality" value="high" /><embed allowScriptAccess="always" src="http://www.mysite.com/files/player.swf" width="450" height="337" border="0" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" quality="high" flashvars="file=http://www.mysite.com/files/video/37_bar3.flv&image=http://www.mysite.com/files/video/37_bar3.jpg&rotatetime=3&autostart=false" /></object></div>
This is Text After</div>
"Error: Access Key is not Set" after running cron job
When I attach the video and create the page, I get "Video not currently available". which is fine because the cron hasn't ran yet. So I go run the cron job and I get "Error: Access Key is not Set" in the cron error list as well as the node I am trying to embed the video on.
Anyone ever see this before? The video's are being converted in my files directory to .flv files. Not sure what I'm doing wrong here. Please help.
Thanks.
Here's an
Here's an example:
http://www.torpeteo.com/node/119
You need to disable the
You need to disable the FlashVideo S3 plugin if you are not using Amazons S3 service.
video not available
Hi, i love your flashvideo module, even though i am still not able to try it on my localhost. i am using windows vista, for ffmpeg, do i just need to have the ffmpeg.exe? if the file path is c:/ffmpeg/ffmpeg.exe, do i just put "c:/ffmpeg" in the ffmpeg path setting? i have a look at the ffmpeg_data table in the database, there is nothing to see in the field 'data'.
thanks for your time.
rick
[video] tag is using quicktime, not swf
Travis - amazing module... was surprised how easy this was to install and configure, particularly considering I am setting this up on a Windows machine.
One issue I am having, though, is the video is being rendered using the QuickTime player instead of Flash. Is there a way to force the module to use Player.swf if the FLV exists?
Ok, that's fixed...
Sorry for all the posts. I removed "application/octet-stream" from the Flash Mime Types under General Settings and the player now uses the Flash version by default.
Again, great module... thanks!
Quick clarification...
I believe the issue here is that the converted video (FLV) is not attached to the original node, while the original video (MOV) remains attached... so, the [video] tag outputs a player appropriate to the MOV mime-type.
Is this the intended behavior for the module? Once the video is converted (to a .FLV), should it also be attached the original node, and output by default in place of the source video (in this case, a .MOV)?
Any help is appreciated. Thanks!
Need to implement flashvedio in lunerpage hosting
Hello Travis ,
Sorry its urgent work actually . I need to implement your flash vedio in your lunarpages.com hosting account . They say that they have FFMPEG installed . Could you please help me out . I will pay you 30$ instantly from paypal if that module worked . Since i know that you are the only person who could help me thats why i approached you .
Please note down my yahoo id : ankur_gupta510@yahoo.com .
and my gmail id : ankurgupta510@gmail.com
Also i have hosted my site www.toomuchjobs.com from your affiliate account which will again add 30$ for you in your account .
Please reply me ASAP
Thanks & Regards,
Ankur Gupta
Installing FFMPEG in User Created Library Path
Hi Travis,
Working with php alot, sometimes it becomes necessary to add modules (like those from PEAR) not included in the client's build. Usually, it isn't difficult to create a library of user added modules and set up an add-on for the new stuff to get into the applications pathway.
Even with CP access and shared hosting, where the path to a site's public files might be /Sphere/local/User_Specific/some_site.com/, it is possible to create folders at the root - outside of the web directory: Maybe something like... /Sphere/local/User-Specific/Apps_Library.
And, then add this php code to a common header::
ini_set('include_path');
ini_get('include_path').PATH_SEPARATOR."/Apps_Library";
And now the newly added application is in the path.
I know next to nothing about FFMPEG. From what I have seen, however, it is not at all like a PEAR module. Modules like PEAR DB are ready to go out of the box. FFMPEG, as I understand it, requires compiling ?? And, of course, that requires shell access? With some hosts, for some clients, it just isn't possible.
I'd like to hear your thoughts on whether this approach might allow a greater number of people to use the flashvideo module, and your suggestions for getting FFMPEG "compiled".
Thanks.
I don't think that there are
I don't think that there are any PEAR like conversion utilities out there. The easiest solution that I recommend is to just use a Host that already has FFMPEG installed when you sign up for an account. I use CirtexHosting and have good luck with them. They are also very reasonably priced, so you won't be out a lot of cash to try out the FlashVideo module. This is really the only suggestion I have for your situation.
No Thumbnail
Hi,
first: thank you for your great contribution.
I have problems to show the teaser. Instead the video immediately shows up.
Best regrads
RE: No thumbnail
Oh, sorry. I found the problem.
The tease is of courde shown elsewhere (e.g.) on the homepage of the user and not immediately after submitting the video post
Thanks again.
Best regards
Thumbnails not showing up
I see the thumbnails in the directory, and they are being used in front of the video (video is showing up with [video] tag) but the [thumbnail] tag just shows "[thumbnail]" instead of the picture. Any suggestions?
Offsite FFMPEG
Since my hosting site does not offer ffmpeg (as many do not) I need to do the conversions on a separate 'outside' server. What modifications would be needed to send the video file to this off-site server and then retrieve it once the conversion is done (I can cron script the ffmpeg conversion on the outside server).
Thanks
Steps for off-site conversion
Hi...
Don't know if you still need this, but ran into the same problem, so I figured I'd offer my workaround. When you do the conversion off-site, you need to make changes to three database tables to let FlashVideo know what it should display. (BTW -- you can grab the conversion command lines from the ffmpeg_data table so you know what to run locally.)
Table changes:
FFMPEG_DATA
1. Change the path for the file to the files/video_output/foo.flv form
2. Change status to 1
3. Delete data
FILES
1. Insert two rows, one for jpg, one for flv
a) matching up the fid and nid
b) adding the names and filepaths
FLASHVIDEO
1. Insert two rows
a) matching up the new fid
b) matching up the oid and nid
c) setting status to 3
Hope that helps. YMMV, but this is tested and working.
Thanks, Travis, for such a great and flexible tool!
-j
Flash Video automatically create node every time cron job works?
Hi travis,
I've setup the the module of Flashvideo ,and it worked ok,the flv file is created and shown as expected..
But there's another issue, when I open the page "content" , many nodes were created with the name just like the one with flash video ,but there's nothing in them.
Then I find out that ,a new node was created after the cron job worked one time,just written in the database.
I really confused me ,where did it come from ? could u show me some advices?
Best Regards
/cpanel ?
NOT using CirtexHosting?
i an just developping my website with my pc--,what i can do in "Step 5: Set up a Cron Task.".
thanks a lot!
Done!!! Thanks for the
Done!!! Thanks for the suggestion.
not to thank
Not to thank, it's simply!