I am just letting everyone know about all the great new improvements that are being made the the FlashVideo module. I just release FlashVideo version 1.8, now with YouTube and Google Video Support. I also made many other bug fixes.
An example of the FlashVideo module adding a video from YouTube!
One major change that you need to note is that I made a change to two function calls. Those changes are as follows.
Changed the flashvideo_get_video_object routinefunction flashvideo_get_video_object($node, $index, $params) {
}function flashvideo_get_video($node, $params, $file_only = false) {
}Now in order to specify the index, just add it to the $params array like $params['index'] = 0; I also added a way to just get the URL only for the video by passing the $file_only flag to true.
Changed the flashvideo_get_thumb_object routine
function flashvideo_get_thumb_object($node, $index) {
}function flashvideo_get_thumbnail($node, $params, $file_only = false) {
}Now in order to specify the index, just add it to the $params array like $params['index'] = 0; I also added a way to just get the URL only for the thumbnail by passing the $file_only flag to true.
Along with that major change, the following has been either added or fixed in version 1.8.
- Added YouTube and Google support with the new id parameter! Read the help (at Administer >> Help >> FlashVideo) for more information!
- Moved the Theme function to another file to keep away from module clutter.
- Major rework of the video display system. Now much more efficient and less memory.
- Now the tags parameters work properly, and you don't have to specify "all" for the node and fids parameters.
- Fixed the thumbails not working with the node and fids parameters.
- Now the ffmpeg_data database table will log the Shell output from FFMPEG. (great for debugging).
- Fixed many issues with the playlist feature. Should be working now.
Please give me your feedback and let me know what you think!




:))
hahaha! Video is cool :))
download mp3 free
hm
Thank you for this code!
-------
download mp3 music
Interesting
Well I get more and more impressed by your work!
you must be a genius!
one question though, how do you embed this on wordpress?
ffmpeg host
I got this working! The best
I got this working! The best part of it is the support offered by google video and youtube. But please let me know the second change that you have brought in this version? I would like to understand that in detail. Thanks anyway!
natural detox
user
It's very useful and comfortable Flash player. I have updated my code above to reflect something that you will do in your template file.
_______________________
New diet - lemon detox diet
useful and comfortable player
It's very useful and comfortable Flash player. It's my opinion, but my friend say, that it is not comfortable...
Thanks.
___
buy movies online
I think
Hi,
I tried to convert a few videos by uploading them to the video_import directory. After running the cron job I noticed the following
1. non of the videos were converted
2. no entries in the ffmpeg_data table
3. all the video nodes were assigned "Page" type rather than "Clips" type (FlashVideo is only enabled for "Clips" content type)
I deleted content type "Page" and ran the cron job again and once again the video files were not converted but this time the content type assigned to them was nothing
Uploading the videos via the browser works like a charm
I'm using Drupal 5.5 with CCK 5.x-1.6-1, FlashVideo 5.x-2.5, Contemplates 5.x-1.8, Views 5.x-1.6 and Views Bonus Pack 5.x-1.2-alpha1
Anybody else having the same problem ?
---
dvd movie rental
FlashVideo 1.8
Got it up and running beautifully,thanks Travis. One only question, videos uploaded, in my case from YouTube, with ID# have a white background. My node is on the dark side of a gradient and that white sticks out like a sore thumb, how to change it?Thanks
Having a hard time getting it to work...
Travis, I installed the module along with the ffmpeg binary on my server, but I'm not having much luck. When I go in through the command line, I can hit the ffmpeg binary and encode a video no problem. When I use the module, I get no such result. I ahve my path set up as: /usr/bin/ffmpeg (which is where the binary resides) and my output is going to videos/. One odd thing though, when i hit flashvideo_playlist.php all i get is the path to my output files repeated 3 times, maybe that means something? Any ideas?
Which version of FlashVideo
Which version of FlashVideo are you using? I don't even call that flashvideo_playlist.php file unless you are using the method fids=3-23-21 to show your videos. Everything else should just play your video directly. Also, have you downloaded the JW Player and changed the name to Player.swf and then placed that in your output directory. The only other thing that I can think of is the file permissions on your directory. it needs to be 777 for ffmpeg to work properly.
Let me know if any of these help,
Thanks,
Travis.
I'm using the newest version
I'm using the newest version (downloaded it 2 days ago). I have the permissions set to 777 on my videos directory and have d/l and renamed the Player.swf. I went to debug the issue in the ffmpeg_data db and I found that when I tried to run the command that is stored in there in the command line I got an ffmpeg error that said in essence I had an I/O problem, possibly due to truncated or corrupted video. I can't figure out what's corrupting the video. I simply upload it and attach it to a blog entry and that's it. The pathing is all correct as well, I've tested that. As for flashvideo_playlist.php, I just moved it as per your instruction somewhere, just to see if that would do anything - and apparently it doesn't. I was just hitting it manually btw, not hitting it thru drupal.
1. non of the videos were
1. non of the videos were converted
2. no entries in the ffmpeg_data table
3. all the video nodes were assigned "Page" type rather than "Clips" type (FlashVideo is only enabled for "Clips" content type)
________
women bags
If the ffmpeg_data table is
If the ffmpeg_data table is telling you that there is an I/O problem, then that is an error message coming from FFMPEG and not FlashVideo module. Because of this, I am wanting to say that FFMPEG for some reason did not like the file it was trying to convert. Have you checked your PHP ini settings for uploading. It might be possible that the video is getting corrupted in the upload process, which is beyond the scope of the FlashVideo module. I will help you as much as I can.
No FFMPEG
Hi.. I just discovered this great module. I installed it on an almost clean drupal 5.1 install. I was reading a support ticket about adding support for non-ffmpeg installs. That would be great because that cirtex hosting is in the USA and I'm in Europe.. Connection with their server aint that great. I can't find a host in Europe with ffmpeg hosting so I just convert my video using Riva of Premiere to FLV.
Is it possible to use FlashVideo? My FLV's appear in the /files once uploaded. When I run my cron it keeps saying "video currently not available". I put the flvplayer.swf in the /files directory where the FLV's appear. Uploading works great, the download link to the video works but the video doesn't show..
hmm
It would be great if the module would grab the default settings...
Which is the tag to include youtube video?
Hi,
I was wondering which tag or function do i have to use in the body of a video content to include a youtube video?
With actual version is possible to include an external flv or swf?
Thanks in advanced.
When you go to YouTube, they
When you go to YouTube, they will tag an 11 charachter ID to each video. You can see this in the URL, or the object code.
An example: To show the video above you would just use [video:id=5_tXcRYOYZ0]
custom node-video.tpl.php
Hi Travis,
Thanks for all of the updates. I have a custom theme file, node-video.tpl.php where I was using:
foreach($node->video_obj as $video_object) {
print $video_object;
}
flashvideo_get_video
to display the video instead of using $content. Now I get an error, "Invalid argument supplied for foreach()" with the above script. I looked through the updated code but can't seem to figure out how to display the video. Any ideas?
Thanks again,
Jim
Try This...
I assume what you are trying to do here is just show all of the uploaded videos in that node, is this correct? With the new version, I have cut down on all the un-necessary memory usage and processing time by not storing all node video and thumbnail information. Now, in order to retrieve a video or a thumbnail with PHP, you will need to use the flashvideo_get_video and flashvideo_get_thumbnail routines. So for your particular problem, just replace the code that you have with the following.
For Node Body or Template File
<?phpif ( arg(0) == 'node' && is_numeric(arg(1)) && ! arg(2) ) {
$nid = arg(1);
$num_files = db_result(db_query("SELECT count(*) FROM {files} WHERE nid=%d AND filemime='flv-application/octet-stream'", $nid));
for($i=0; $i < $num_files; $i++) {
print flashvideo_get_video($node, array('index' => $i, 'node' => $nid));
}
}
?>
For Contemplate body
<?php$video_index = 0;
foreach($node->files as $file) {
if($file->filemime = 'flv-application/octet-stream') {
print flashvideo_get_video($node, array('index' => $video_index));
$video_index++;
}
}
?>
Please let me know if this works.
Thanks,
Travis.
didn't work
Thanks Travis,
It doesn't display the video. However, after updating to 1.8 none of my videos display. I tried them with $content as well and nothing displays.
Jim
Sorry about that...
Thanks for your patience. The code that I gave you before was for the Contemplate module body. I have updated my code above to reflect something that you will do in your template file. Basically you just need to figure out how many flash videos you have loaded to that node. You can figure out the node ID by looking at the arguments. Please let me know if this works.
I think this problem that you are having is making me rethink my decision to make the FlashVideo module not store the video objects. Maybe, I can think of a compromise that will make it not so painful to get the video's of that node, while at the same time cut down on memory and processor usage.
Thanks again for your patience... there will be some growing pains, but I am dedicated to making sure that this module is rock solid. I am slowly working toward a rock solid 2.0!
Thanks again,
Travis.
Got it working
Hi Travis,
I got it working using what you suggested for the node-video.tpl.php. I inadvertently had a configuration problem and there were too many chefs in the kitchen so to speak. Thank you for your help.
Best regards,
Jim