SesameVault
Sign In or register
Forums for SesameVault.com
    • Discussions
    • Categories
      • Help / Tutorials
      • Talk to the Team
      • Developing with SesameVault
      • General Discussion
    • Search

Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.

Help / Tutorials

Missing format FlashVideoMedium after Upload

1 to 2 of 2

  1.  
    • CommentAuthorRoger
    • CommentTimeAug 24th 2009
     
    Hi there,

    we're using your service and are very satisfied with it. However, when we use the PHP video API and upload a MPEG video file, we get a uncomplete result object when we search for this video directly after the upload. For some strange reasons the object only contains the format "Thumbnail" but never the format "FlashVideoMedium". This only happens when we upload MPEG videos. Because of the missing format we cannot build the url to this video and include it to our web application. The video upload itself is successful and we can find the video in the "Manage media" section. Any ideas why that is?

    Here the code we use to find the uploaded video:

    // video is uploaded here

    // then we try to find the url of the uploaded video
    $results = $sv->media('list', array(
    'limit' => 1,
    'filter' => 'media_type=video AND title="'.$hash.'"',
    'include_formats' => array('FlashVideoMedium', 'thumbnail')
    // available formats: AacStream, BlackBerryAVI, FlashVideoMedium, Qcif3gpMpeg4Amr, original, thumbnail
    ));

    print_r($result); // format FlashVideoMedium is missing in result array
    • CommentAuthorMichael Rabinovich
    • CommentTimeAug 24th 2009
     
    Hi Roger,
    Glad to hear you are digging the service - that makes us feel good!

    When the media is uploaded, it enters the transcoding queue. It soon gets picked up, and the encoding formats are then created one by one. This is why the formats are not available immediately, however the wait is rather short (usually 15 minutes or less, depending on system usage at the time). This is one of the reasons that include_formats and available_formats parameters are there - to see if these formats are ready for your use. I suggest you augment your app to query the server to see when the encoding becomes available if you are not already doing so.

    But even if you wait, the FlashVideoMedium could never be created. This would be the case if the video/audio you uploaded is very small in resolution. The preview (or Small Flash) is always encoded. Same thing for the Small MP4 and so on for every format category (read more here). Thus, at minimum there is a format created for each format category. If the media is higher resolution, it is also encoded into the medium formats. For very hi-rez content, the Large MP4 is also created. This is because up-sampling the videos is not desirable. What size is your video that you are uploading?

    Thirdly, please note that building urls by hand is discouraged. You should retrieve the metadata for a specific piece of media by using media->show method, and use the url returned there. Building urls by hand might seem ok, but they are not guaranteed to work. In other words, if you build it by hand or get it from media->show and it works the first time, it will always work. But if you use the url returned in the metadata, it is guaranteed to work even the first time. Please let me know if this makes sense or if I can explain anything further.

1 to 2 of 2

  1.  
Add your comments
    To post as a guest enter the code belor. Or sign in or register.


  • Format comments as
 

Back to Discussions