I have installed the afforementioned module along with the following: entity, styles, media, and wysiwg.

I have a problem with the media module as it stands in D7. I can upload images no problem, but even when I allow for flv or avi extensions in structure>media types>video>settings and adjust my php.ini file to allow the correct maximum upload file size my videos will not upload. When I go to select media and try to upload a video from my computer it appears to be working, but then no changes occur and I see "no file chosen" beside of my "choose file" button. Then when I click "ok" it says I have not selected anything. We are an educational institution with admin over our own servers, so we do not want to embed videos as we have robust hosting capacities ourself. Any help would be greatly appreciated.

Comments

JacobSingh’s picture

Media is in very active development. While it is used in production on http://drupalgardens.com we are currently only using it for images.

The WYSIWYG integration for Media does not work for Video, in fact, displaying any kind of file in your content besides images is basically unsupported at this moment. It is most certainly on the roadmap though.

Perhaps you could share what you are looking to do as a user story we can make into an issue here.

a_webb’s picture

Thanks for getting back up with me Jacob. Briefly we would like to use Drupal to build and maintain a media server. I am a programmer/web designer at a community college in Western North Carolina. Our idea was to use drupal to allow our professors who teach online classes to upload video to our server using drupal. Currently we have been using blackboard to host our videos, but we would like to move to a more efficient and open source option for a couple of reasons. #1 because blackboard forces our professors to repost the same videos year after year for them to appear in the coursework, which creates frustration and #2 that redundancy on their servers mean we pay more money.

With Drupal and FFMPEG (utilizing the FFMPEG_wrapper module) the idea is to create a portal where professors and web content managers can post videos to the server in any form (i.e. .mov, .mp4, .avi, .h264) and then FFMPEG would automatically convert and compress the files to a standard format, probably MP4, and render them an acceptable size and quality for web viewing. The problem we run into, as has been thoroughly discussed in the forums, is that it is hard to figure out the right recipe for this type of project. We have tried BD Video with Media Mover combo, also JQuery Media and File Field combo, as well as tinkered with the Media Front Module as well as the Video module. We also looked at Kaltura. None of these provide a simple way to create a self hosted option for video.

We would love the D7 media module to allow us to create a simple file_media filefield that would allow users to post video to the database. Also a media gallery, with organization by folder (kind of like the demo in your Media Mania blog post) would allow us to keep an organized video workflow. FFMPEG could be working behind the scenes to transcode the videos to 1 format, then with 1 media player (or better yet utilizing HTML5 video tag) we could really simplify workflow and deployment. Eventually this could form part of an e-learning infrastructure that would allow us to switch to Drupal or Moodle and get rid of Blackboard all together.

JacobSingh’s picture

Status: Active » Postponed

Interesting stuff, I'll keep this in mind as we plan out the video features in media.

a_webb’s picture

I found this post in the Kaltura module issues space, and I wanted to share it here. I love how you can edit video and video skins with Kaltura (and of course the fact that it has a community edition that is free and can be hosted on our own servers)

But media I have no doubt will loom large over D7 and module contributors. I don't like the fact that Kaltura CE and its drupal module has issues during integration. I would love to see media module support the editing capacities of Kaltura, and I would love to see Kaltura be more easily integrated into a Drupal media platform.

Maybe the 2 parties need to talk.

http://drupal.org/node/880882

timofey’s picture

I second on a_webb

jzornig’s picture

Sounds like a_webb's requirement is quite similar to mine.

I have built a site in drupal 6 that uses cck filefield, media mover, ffmpeg etc. to let users upload videos in any format, automatically generate a thumbnail and scale/transcode to standarized h.264/mp4 and theora/ogg formats. The display of the node is then themed to present using the html5 video tag with the mp4 and ogg videos as alternate sources. It took quite a bit of struggle to get all this functioning, but I persisted as I wanted the html5 video tag as the display method because I'm also doing syncronised video annotations which requires some sophisticated javacripting of the display using some of the new html5 features.

I'm now looking at updating my system to have some better behaviour on mobile devices and other bells and whistles, and investigating if I can build it on Drupal 7.
D7 looks like it is going to attract almost as many "video" modules as D6.

a_webb’s picture

Our solution is not as elegant as yours, but now we have a CDN of sorts. We have 2 servers, a video server is set up using Kaltura Community Edition--maybe it incorporates HTML5 video tag, I'm not sure--our other server, for now, is Drupal 6, it manages our users uploading and managing their accounts, and gives us admin over users, accounts, and videos. It communicates with the Kaltura CE server which uses FFMPEG for transcoding, optimization, and a slew of other features.

With this setup then users have embed tags and can embed the optimized vids in D7 site or whatever they like. It works pretty well for us. Although you are probably right about a slew of video modules for D7 I still have faith that the Media module will eventually prevail as the default way to manage media content in drupal. The best feature of the kaltura setup is you get a pretty sweet, yet simple, video editor built right into the front-end user interface of the site--I don't know if the media module has any plans for this kind of functionality,

kbell’s picture

At the very least we have to have a way to upload videos from our computers to our sites without having to use a CDN. +1 on a_webb's use case.
Thanks,
Kelly

russh’s picture

Something I can't seem to find a straight answer about: Using the current version of Media module with Drupal 7, should I be able to embed video, or only stream via a CDN? Currently I can embed images with no problem and can embed video from youtube, vimeo etc. But not my own video on my own server.

Can someone help with an answer? The documentation that I have found is vague and confusing on this issue.

JacobSingh’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Category: bug » feature
Devin Carlson’s picture

Component: User interface » Miscellaneous
Category: feature » support
Status: Postponed » Closed (fixed)

I haven't been able to duplicate any problems with uploading video files.

In order to display uploaded video a media player is required. See the list of Modules that Extend the Media Module for a list of media players.

iansears’s picture

Status: Closed (fixed) » Needs review

I am unable to upload video. Same issue as original poster.
Drupal v7.12
php v5.3.5

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value memory_limit 96M

php.ini:
file_uploads = On
post_max_size = 60M
upload_max_filesize = 60M
max_execution_time = 60

Media module v7.x-2.0-unstable3 ( I tried 7.x-1.0-rc3 with no success)
I found this video dated: http://www.youtube.com/watch?v=8pHoGZBv47c

I'd be happy to screenshare if someone feels this cannot be duplicated.

iansears’s picture

Update.

I just now tried uploading a .avi with success. And a second one which failed.
Success was an .avi with filesize: 180kb
Failure was an .avi with filesize: 13.9 MB

My Media module "Select Media" -> "Upload Media" window indicate 20 MB max.
As I have been working with this for 20 hours now, I'm keeping this open until I can post some progress with where it fails or succeeds.

iansears’s picture

Update:

In my case, so far I am able to upload .avi file up to 6,984,295 bytes in size.
The next videos I attempted (larger) all failed.
I cannot tell if it is a "time" timeout, or a filesize limit.

I am now going to recursively hunt for 7 MB filesize limitations throughout my setup.

Dave Reid’s picture

It may be a maximum execution time as well and hitting the 60 second limit.

iansears’s picture

Status: Needs review » Closed (fixed)

K, I solved this in my case. It looks to solve the OP as well so I hope this helps others.

http://drupal.org/node/207036
This was in my case an issue of PHP (think php.ini)

I methodically uploaded videos of the same filetype (.avi) and began with 180k, working my way up to a failure to upload.
In my case it shelved at 7 MB.

You can click the "more information" link on Drupal's status page's PHP section. which shows the phpinfo() page. Locate the Configuration File (php.ini) Path row on that page. This shows not only the path to the used php.ini, but also in my case the modifying phprc file.

In my case I use DreamHost. http://wiki.dreamhost.com/PHP.ini
I used terminal to add the lines:
upload_max_filesize = 20M
post_max_size = 20M
and
max_execution_time = 60 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 126M ; Maximum amount of memory a script may consume (8MB)
and saved the file. In my case I did not need to also restart php or anything.

I like and prefer the Media module. I feel strongly that the module Project page itself should include the following warning that this filesize limit should be known and understood when installing the module. For those that already have high/correct limits set up, this will never come up. For those who do not already have this set up it can waste days of thinking the module or (my meager understanding od Drupal-dom) my install is broken.

Solved in my case. I sincerely hope these necro post updates help other with this issue.

And thank you Dave, for helping. That is tremendously re-assuring.

fizk’s picture

Title: Media 7.x-1.x-dev module will not allow me to select media and upload from my desktop CPU » Media 7.x-1.x-dev module will not allow me to select media and upload from my desktop