Results 1 to 4 of 4

Thread: Bypass conversion process for mp4 video

  1. #1
    Join Date
    Aug 2010

    Default Bypass conversion process for mp4 video

    How can one play mp4 video in vshare without converting it into flv? A way to eliminate converting mp4 video.

  2. #2
    Join Date
    Oct 2007


    No answers? I will rephrase the question as I would like an answer too.

    When you upload a file this is what seems to happen in maybe this order or something close...

    move original file to videos directory
    make flv in flvideo directory *
    make mp4 (if you have that set) in flvideo directory
    delete flv *
    delete original file (if set)
    apply atomic parsley (if flvtool set)
    apply qt-faststart (if installed)
    move file to remote server (if set)
    delete file in flvideo directory (if remote is on)
    also the thumbnails are made and stored in the above process

    In the unmodified version of vshare if I uploaded a flv file it was not reconverted if I wanted flv files for playing. But how do I set vshare to NOT convert mp4 files if they are uploaded?

    Please don't start a discussion saying this won't work because of faststart. I am the only one uploading on my site and I convert all my videos before uploading via ftp and then converting in the admin panel. MP4, faststart, correct size, bitrate, audio, etc etc.

    It has to be a line or few somewhere that will bypass all that server processing for nothing.


    This post has been edited on the lines with * as they only related to vshare 2.7 with the mobile addition- not any other setup. My mistake for mixing two versions while asking a question. The question relates to vshare 2.8.1 unmodified (non-mobile) that has had mp4 conversion activated along with fast-start. Looking at the post date of the original poster I would guess it is the same version.
    Last edited by jayscot; 09-10-2012 at 02:30 AM. Reason: clarification that lines were from older vshare 2.7 with mobile (free access)

  3. #3
    Join Date
    Sep 2008


    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!

  4. #4
    Join Date
    Oct 2007

    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. (free access)


Posting Permissions

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