flashvideo and user directories using cck. is it possible?
| Project: | FlashVideo |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | attheshow |
| Status: | closed |
Jump to:
first, i would like to say thanks for this great module. but i am having a little trouble. i have viewed the tutorial and checked open and closed issues but i can't find a solution. i have created a site where media uploads to user's individual directories and i'm trying to include video. i have flashvideo integrated with cck. i have created the 3 required cck fields, one for the raw video, one for the converted video, and one for the thumbnail. each one has the path setting of the userfolder, and each field type is "file" and each widget type is "upload". the flashvideo settings are all properly designated to the proper cck fields. when i upload a video, the raw video uploads to its proper designation, but the thumbnail and the .flv file is created in the /files directory. is there something wrong with my settings or is it even possible? do i need to be using, for example, "flashvideo_output_dir" to specify the directory, if so where do i specify it. thank you in advance and i apologized if this question has been already answered or if i'm missing something obvious.

#1
I don't believe you are missing anything overly obvious because I too have set up a video content type with fields as you have described and wondered why flashvideo didn't respect the paths I gave them, but I guess it simply works from the ones you set within the flashvideo module itself. Is there anything we're both missing here? I too would like to be able to use for example files/video/username/output/ as my file structure for the converted flvs and thumbs.
#2
Hey guys,
I spent some time looking into this issue and realized that the FlashVideo CCK module just was not working. I have since then fixed it and checked it in. I am sure Mark will issue the next beta for you guys to check it out.
Thanks.
Travis.
#3
This fix is in 1.5-beta2 from yesterday's code sprint.
#4
thank you for the update, but i seem to still be having the same problem, the output flv and the thumb is still being created in the /files directory and not in the directory i specified in the path setting of my cck fields. i downloaded the 6.x-1.5-beta2 version and i am using it along side with FileField version 6.x-3.0-alpha7. and also, this time the original video disappears (although the folder is created), and i do not have " Delete Original Video" selected. any ideas? i appreciate your help and hard work.
#5
Yes I have also tested with the latest flashvideo and filefield and get similar results to above. However, the original video does get uploaded correctly for me and also the output flv and jpg gets created but in files/ and not in the path according to my CCK settings. However, NOW the video doesn't even work at all, in that nothing gets displayed when viewing the node, even though it is getting converted fine with the message:-
* FlashVideo successfully created: wmv-test_74.jpg
* FlashVideo successfully created: wmv-test_74.flv
* Video testwmv has been created.
So I don't know what to suggest. I've taken a look into the db and the filefield paths seem fine, and also the node refs in the flashvideo table seem to correspond correctly.
One thing, I have still got my Player.swf in the files/Player.swf and not anywhere else. Is this now where flashvideo looks when it comes to playing the videos. I ask this because it states in the flashvideo settings that Player.swf needs to be in the output directory, which of course now could depend on a moving target using CCK with username tokens etc.
#6
No matter what I try I can't get flashvideo to work as outlined above.
#7
Neil,
I will spend some time this weekend to try and debug this issue some more. I thought that I had it working before I left DrupalCon, but I could be wrong.
Thanks,
Travis.
#8
Thanks Travis, really appreciated, this is a great module!
#9
I just wanted to update on my troubleshooting attempts. I'm afraid I made an error with the video template, and in fact the videos do show up when I have the correct template in place. Sorry about that.
So, as I see it, the current problem is a case of this module apparently still ignoring the path settings for the output cck fields, and no matter what I set them to they end up being put directly into sites/default/files/example.jpg and sites/default/files/example.flv.
However, the Output Directory setting within the flashvideo module FFMPEG settings still works fine as before. I'm guessing I need to make this blank for cck to take over? Which one is meant to have priority in any case?
#10
Any luck in getting this sorted out Travis?
#11
Hi, what is the news?
Thanks
#12
Just checked in a fix for this. The setup that chelseadrive initially outlined was configured using the Token module (user token). Flashvideo will now use those tokens for the output files in addition to the initial file that is uploaded.
#13
Automatically closed -- issue fixed for 2 weeks with no activity.