Hello,

The upload module is not enabled. I followed the simple setup tutorial. The video uploads fine, i run cron and get this output:
export MALLOC_CHECK_=1; time ffmpeg -v 0 -y -i 'sites/default/files/storage/1' -f flv -vcodec flv -b 320k -g 20 -s 320x240 -acodec libmp3lame -ab 64k -ac 2 -ar 22050 -pass 1 -passlogfile /tmp/yuHvXx /tmp/W6z0ZH 2>&1 export MALLOC_CHECK_=1; time ffmpeg -v 0 -y -i 'sites/default/files/storage/1' -f flv -vcodec flv -b 320k -g 20 -s 320x240 -acodec libmp3lame -ab 64k -ac 2 -ar 22050 -pass 2 -passlogfile /tmp/yuHvXx /tmp/W6z0ZH 2>&1 export MALLOC_CHECK_=1; time ffmpeg -v 0 -y -i 'sites/default/files/storage/1' -vcodec png -vframes 1 -f rawvideo -s 320x240 -an /tmp/sBtyVn 2>&1 export MALLOC_CHECK_=1; time ffmpeg -v 0 -y -i 'sites/default/files/storage/1' -ss 28.5033333333 -vcodec png -vframes 1 -f rawvideo -s 320x240 -an /tmp/hGKQTd 2>&1

When i go back to the node I see the jw player pop up and but where the video should be I see:

Video not Found: /[dir-where-drupal-is-installed]/system/storage_api/serve/6

The serve/6 changes each time I upload (as expected). I remember I told it to put the videos in sites/default/files/storage or wherever the tutorial said.

Is there anything else you need from me to find out more about this problem? There is no system directory in the root of my drupal install. So it must be looking in the wrong place.

Thanks for any help. This module seems like it is going to be awesome.

Comments

bgreen965’s picture

I'm running into this exact same problem. I'm also unable to upload a video off my computer- I can only get the videos to process if they are uploaded via a url or path.

flexgrip’s picture

I am 99% sure this is a problem between bd_video and storage api or in storage_api itself. I am going to read more about how it works. I have played around with different containers and everything. Nothing works.

I was hoping someone else had run into this problem and it was easy to fix but it seems we are the first.

bgreen965’s picture

Well, I have made an improvement. There was a setting on the Local Storage/Drupal that needed to be set to Serve. Its kind of hidden and not in the initial setup screens. However, I am still unable to upload video from my computer. I can upload using a URL just fine, but it will not upload from my computer. Any ideas?

flexgrip’s picture

Is that the dropdown box that says "Serve" and underneath, the dropdown options are yes and no? If so, I have that set already because it mentioned that in the tutorial.

I followed the tutorial to the letter. However, my problem is not uploading. I can upload a video just fine from my computer. At least I think it is uploading. I choose the file, it takes a minute or two to save and then when I run cron I get that output from ffmpeg. So I am pretty sure it is actually getting the video and transcoding it. I think it is just not moving it.

I also think that the way this all works is that storage api stores the file internally (somewhere in there) and then the blue droplet module uses jw player and points it to load the file from storage api. So somewhere between the two there is a mistake. Blue droplet is being told it is in one spot and storage api has it in another.

I guess I could fix this if I knew two things. Where does jw player get the path to the video from? and where does storage api actually store the video? It seems you can call the video from the system/storage_api/serve/# path. If you put the right path in your browser it just downloads a blank file.

I am hoping the devs for this module will come around soon and notice this thread.

bcobin’s picture

I have a variation on the same problem, except that I can't get any transcoding to happen at all - I just get a blank page when I try to run cron. The uploaded video goes into files/temp and that's about it.

It's good to have "company" - hopefully this can get resolved soon!

flexgrip’s picture

How is the issue related? Your problem occurs before transcoding. It could be any number of ffmpeg or codec problems. Sorry, I just don't want this thread to turn from a specific error into a "the whole thing doesn't work" error.

Is it possible for the storage api to use the database storage instead of the local files / drupal method? I am assuming that the database version just drops the files somewhere and then the database carries the path.

I am going to try it and report back.

flexgrip’s picture

Yeah that doesn't work. Have to use local file storage. Are the devs around at all?

flexgrip’s picture

Hey bgreen965

What is your php max file size set to? Are you sure it is set higher than the video you are trying to upload. I have found that in practice the php max file size needs to be at least double what you are actually uploading.

bgreen965’s picture

Thanks for the reply- My php upload size is set to 100m which is about 10 times the file size. I haven't worked on this in a few days but I would really like to figure out why this isn't working. Any other ideas?

jbrown’s picture

Assigned: Unassigned » jbrown

I'll get this fixed over the weekend - there is some sort of module conflict.

Could you try disabling modules and see which one causes it?

bgreen965’s picture

Thanks for working on this jbrown...
It Looks like the conflict lies with the Menu module. When its disabled I am able to upload video from my computer.

flexgrip’s picture

bgreen965 - It does not look like my problem lies with the Menu module. It looks like your problem does. It is real easy to start your own thread that is more specific to your problem and not hi-jack others. If you read above, our problems are not even in the same point of the process.

jbrown’s picture

Hi folks.

The upload problem issue is here: #423762: File upload fails and has now been fixed.

As for the video not found error, this is probably a storage_api configuration issue. You can configure which storage classes are being used for what on the field configuration page. You need to make sure that there is a container in the class that is a serving container and also is set to be serving within the class.

The user interface doesn't actually tell you if a container is a serving container. I'll fix this just now.

jbrown’s picture

Title: cannot find video after upload » 'Video not Found' in flash player

Improved container info:

http://drupal.org/cvs?commit=202640

Let me know if you get it working.

flexgrip’s picture

After I updated the module and completely removed all the containers and classes there are two new problems. When I upload a video it uploads just fine but kicks me back to the page and says that I need to enter urls for the "get from remote path" and "local path" fields. Then when I hit save it publishes the node like it should.

Then after I run cron.php I go back to the node and hit refresh and it says I need to install flash player. Flash hasn't changed on my system so I know it should be working. I checked it from another machine that I know for certain flash is working and I get the same thing. So I don't even know if the fixed you put into cvs works.

jbrown’s picture

Did you put the flv player files back in place after you updated the module?

#434176: Missing files... swfobject.js and player.swf

flexgrip’s picture

A couple prerequisites. am I supposed to be using Filesystem / Drupal or Database as far as the service goes? Serving is enabled on everything. Anywhere where i saw serving I turned it on. I have a class with a container and have started over several times following the instructions to the letter.

When I add a video and run cron the node shows the flash player and just says... Well here.

http://nathanbabian.com/h1/node/11

That is the latest video I tried to upload after the update from the 26th. Any clue? If there is something obvious I missed I will be sure to update the instructions so that others wont run into this problem but I mean, I am almost positive that I am doing it exactly how you say.

Is it maybe because Im using clean urls? Or something outside of the module that could be causing this?

2noame’s picture

I have the same issue. I've got the newest versions, fresh install, followed to the letter, and for some reason after uploading a file it thinks it's in system/storage_api which of course does not exist because my Drupal is set on public not private.

2noame’s picture

I was able to fix mine by setting up a new new temp directory owned by www.

jbrown’s picture

Status: Active » Closed (fixed)