Results 1 to 4 of 4

Thread: Bypass conversion process for mp4 video

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Sep 2008
    Posts
    1,019

    Default

    It depends on which version of vShare are you talking about (2.7 or 2.8 ). The process that you are describing above only exists on your mobile enabled vShare 2.7 site (only a 2.7 with my mobility mod would create two files). In an unmodified 2.7, it is a easier to make this happen (you can change the references in the functions_upload.php from flv to mp4). In an unmodified 2.8, this is possible to do as well by changing the functions that handle flvs and make them mp4 (and, in fact, depending on if you have an early release of the 2.8.1 code or a fixed release, your vShare 2.8 unmodified code could likely be doing this already).

    For modified sites (i.e. like the ones that have the mobile mod installed), there is a bit more work to be done, but it is all possible to do by simply modifying your functions_upload.php file to not convert the files.

    Also, for the record, one would never start a discussion saying that it won't work because of faststart as faststart really has nothing to do with being able to play back a MP4. The biggest argument one would have about not converting the video has to do with compatibility (and I'm not referring to device capability). A couple of years ago, I wrote an article on this forum about it. I don't remember the exact link, but basically, the issue is that the Abobe Flash Player standard can only playback particular profiles within AVC (MPEG-4 Part 10, which is also known as H.264). AVC is a particular type of MP4 video. The reason why this is an issue is because within the MPEG-4 standard, you actually have 2 parts (of a total of 29, BTW) that deal with video: Part 2 and Part 10. Within both parts are several profiles. Each of these profiles contain various different enhancements, features, etc., but the gist of it is that it can only be certain profiles and features within the Part 10 standard. Most modern day computers can playback all of the profiles and both parts very easily, but Flash can only read specific profiles from a single part. This, in turn, means that a MP4 file (which is just a container) can comprise of different types of videos, some of which are not actually compatible with Flash players.

    If you are converting your own videos and are confident that they are within spec for Flash, then no one here is going to (or at least, shouldn't) care to talk you out of doing that. All converting is really doing is ensuring the capability with Flash. Now, if you are also doing this on a site that has the mobile mod installed, the only thing I would caution you on is that you have to remember that mobile devices are more limited than the Flash spec are. Only the most recent of phones (within the last year or two) are capable of playing back anything above a baseline profile. Thus, you will want to ensure that the MP4 file is at a quality and profile level that matches the devices that your users are using.
    vShare Solutions
    Custom vShare Modules and Services

    Now, your visitors can watch videos on your site using their mobile or tablet device with the Mobility Mod for vShare 2.8!

  2. #2
    Join Date
    Oct 2007
    Posts
    126

    Default MP4 passthrough instead of conversion

    Before anyone reading this gets puzzled and wonders why the mobile discussion jumps up in the middle of the thread... I do have two mobile activated sites as you can see in my signature. Bplex was just trying to get me to be clearer in my questions and descriptions and I was mixing up the two sites in my observations.

    I also run a private high school site for my classroom where we upload videos. The files are converted to mp4 and stored as such. A high school football game can take upwards of 500 mb of files. A half hour clip can take that long to convert on the server and looking at the cpanel Resource Usage shows it hitting 100% for a significant amount of time.

    I can trick the system by uploading a 1 minute video and let it convert. Then I ftp a 30 minute mp4 video to the storage directory and rename it with the original cryptic filename. Change a couple of entries in the database with myPhp and all is well. This saves server processing and lets me do the work at my desk. BUT there has to be a way to just tell vshare that if the file is mp4 already then assume it is already set up for fast-start and to just pass it through.

    As I said it is a private site and the students have specific instructions on file settings before uploading. So if they do it wrong it is their marks that suffer.

    The original poster asked the same question. I have no idea if the general public is uploading to his site but if so then this idea is bad as most mp4 files will need to download completely before starting to play.
    CasselmanCanada.com (free access)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •