Forums

Adding Large Video Files to the Media Library (2 posts)

  1. TonyVitabile
    Member
    Posted 1 year ago #

    I've got a WordPress 3.0.1 site that has developed a problem displaying video files. I'm using the Viper's Video Quicktags plug-in to embed a player into posts in a blog for the videos. The problem is that the video files are too large (over 100 MB) to upload through the Media Library upload feature.

    What I was doing under WPMU 2.x was:

    1. WP is installed in the /worship folder on the server
    2. I created a blog specifically for the videos, called sermons. The upload folder for the blog is /worship/wp-content/blogs.dir/5/files
    3. The blog is mapped to the URL http://churchonhigherground.org/worship/sermons.
    4. I uploaded the video files to a folder under the blog's upload folder, like 2010/04/10-0411-01.flv
    5. I'd then create a post in the blog & insert an [flv][/flv] quicktag for the video, like this:
      [flv]http://churchonhigherground.org/worship/sermons/2010/04/10-0411-01.flv[/flv]

    This all worked fine under WP-MU 2.x. Once I upgraded to WP 3.0.1, though, the videos stopped playing.

    With the help of the fine folks in the Multisite forum, I have worked through all the possible issues & I have come to the conclusion that the problem is being caused by the lack of Media Library records for the videos. I have tried increasing the upload_max_filesize and the post_max_size in php.ini, as well as the maximum file upload size in WordPress, making the values large enough so I could upload a troublesome video into the Media Library. This hasn't worked as I get a message that reads only, "HTTP Error".

    I want to create a row or rows in the appropriate table or tables for one of these files manually at first to verify that my problem is indeed caused by the lack of these rows. I'm just not sure which tables I need to modify. I believe I have to create rows in wp_5_posts and wp_5_postmeta, correct? Will there be a problem if I set the post_id column in wp_5_posts to 0? Or do I have to set it to the ID of the post where the quicktag lives?

    If this does indeed fix the problem, I'm going to write a plug-in to create these rows. I believe that plug-in will have to call wp_insert_attachment and wp_update_attachment_metadata to make this work. Can anyone confirm for me if this is correct?

    Thanks for any help anyone can give

    Tony

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    http://wordpress.org/extend/plugins/add-from-server/
    does this plugin do that already?

Topic Closed

This topic has been closed to new replies.

About this Topic