Results 1 to 8 of 8

Thread: video width and height problem

  1. #1

    Default video width and height problem

    I create server side stream and replay client stream:
    stream = Stream.createInstance(appInstance, serverStreamName);
    stream.play(clientStreamName, -2, -1, true)
    other clients watch serverStreamName stream.

    client wants to publish different streams time by time, and i recreate stream object with same name when I need to publish new client stream.
    but if video's width and height of client streams differ, viewer client can't understand this and shows new video with format of old video.

    i have same problem with VOD, when i create playlist of these recorded streams.

    How can i force send information about change video format (width and height) to viewers when i change streams?
    Last edited by dmitriy.kirakosyan; 03-15-2012 at 01:40 AM.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Do this:

    stream.setSendOnMetadata(true);
    Be careful though, some players, for example JW Player, will see duration in the metadata and assume this a vod stream and will show the seek bar, which you don't want in a live stream.

    Richard

  3. #3
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    ... tho, in your case duration metadata won't be a problem, I realized as I clicked submit, since the source is a live stream

    Richard

  4. #4

    Default

    Thanks, Richard, but...

    This works for flv, but if other stream has H.264 format (from FlashMediaLiveEncoder) , client still doesn't know about video's width and height, and shows stream with width and height of previous flv stream...

    What can i do with that?

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I'm surprised that FLV and MP4 file can be used together in this way at all. There are player limitations in codec switching.

    Richard

  6. #6

    Default

    I tried to play stream with example wowza client application for live streaming (wowza/examples/LiveVideoStreaming/client/live.swf) and client player changed height and width of video when it was need(but with timout about 0.5 sec). It update width and height video every 0.5 sec. But flex example client (wowza/examples/LiveVideoStreaming/clientFlex/bin-release/LiveVideoStreaming.swf) doesn't do this...

    update video's height and width is not my case.. There are other options?

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Can you copy a short mp4 and flv to your web server that I can use to replicate this?

    Send links to download to support@wowza.com

    Include a link to this thread for reference. Send to my attention as well.

    Richard

  8. #8

    Default

    I sent

Similar Threads

  1. Replies: 7
    Last Post: 09-20-2015, 11:22 PM
  2. Replies: 2
    Last Post: 05-01-2014, 10:28 AM
  3. Replies: 9
    Last Post: 06-18-2013, 10:30 AM
  4. Get video resolution (height & width) in the onPublish event
    By Sweleck in forum Server-side Modules and Code Samples Discussion
    Replies: 9
    Last Post: 09-10-2012, 09:12 AM

Posting Permissions

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