Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Native video size for iPad live streaming

  1. #1
    Join Date
    Jun 2012
    Posts
    17

    Default Native video size for iPad live streaming

    I'm not sure this is a Wowza item or another iPad issue.
    When doing live streaming to iPad, the onmetadata event seems to ignore the real video dimensions (320x240) and always returns videoWidth/videoHeight as 640/480 (Wowza log shows the real values).
    Has anyone saw this, any ideas? Is there a way to get native video size in this scenario? Thanks.

  2. #2

    Default

    How are you getting the data? Is that value stored the media's metadata? Perhaps you are asking for the metadata value instead of the actual framesize.

    Check with "ffprobe -show_streams".

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

    Default

    You can set size in video tag for IPad

    <html>
    <head> 
      <title>cupertinostreaming</title>
    </head>
    
    <body>
    <video width="320" height="240" controls src="http://[wowza-address]:1935/vod/sample.mp4/playlist.m3u8">
    </video>
    
    </body>
    </html>
    Richard

  4. #4
    Join Date
    Jun 2012
    Posts
    17

    Default

    This a live stream (webcam) encoded via Adobe Flash Media Enc, H264/MP3, sent at 320x240 to Wowza.
    Wowza log shows the correct info:

    LiveStreamPacketizerCupertino.handlePacket[blw_extsa/_definst_/blww_2000][avc1.77.21]: H.264 (Video may not be playable on older iPhone and iPod touch devices where Baseline/Level 3.0 or lower is required) Video info: {H264CodecConfigInfo: codec:H264, profile:Main, level:2.1, frameSize:320x240, displaySize:320x240, frameRate:29.97, PAR:1:1}

    Playing on iPad, Safari, using html5 <video width="320" height="240" ..> element. When 'loadedmetadata' event is fired on the <video> el., the vEl.videoHeight / vEl.videoWidth are 640/480 instead 320/240 (native size).
    These values (the real video size) are needed and used to re size the player from the default/starting values to the real size (the published video may have different sizes, we don't know these in advance).
    Thanks.

  5. #5
    Join Date
    Jun 2012
    Posts
    17

    Default

    Forgot to mention: the same stream, played at the same time via a flash player has the correct values in video.height / video.width.

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

    Default

    Does setting the width and heigth in video tag doesn't work?

    Richard

  7. #7
    Join Date
    Jun 2012
    Posts
    17

    Default

    Quote Originally Posted by rrlanham View Post
    Does setting the width and heigth in video tag doesn't work?

    Richard
    It works but the problem is i don't know what the real video size is (because in 'loadedmetadata' handler pEl.videoWidth and pEl.videoHeight are wrong)
    .......
    if ("loadedmetadata"==e.type){
    log('Meta: '+e.target.duration+'; '+e.target.currentTime+'; '+pEl.videoWidth+'/'+pEl.videoHeight);
    pEl.width = pEl.videoWidth; //resize the player to match video's native size
    pEl.height= pEl.videoHeight;
    }

    I'm getting the same behavior for a 320x240 mp4 file playback. I guess it's an iPad thing.

  8. #8

    Default

    I might be able to help if you show me the ffprobe output: ffprobe -show_streams <media>

  9. #9
    Join Date
    Jun 2012
    Posts
    17

    Default

    Quote Originally Posted by randall View Post
    I might be able to help if you show me the ffprobe output: ffprobe -show_streams <media>
    ffprobe output:

    Input #0, flv, from 'rtmp://..../blw_extsa/blww_2000':
    Metadata:
    author :
    copyright :
    description :
    keywords :
    rating :
    title :
    presetname : Custom
    creationdate : Mon Jul 23 15:29:35 2012
    :
    videodevice : Microsoft LifeCam VX-3000
    avclevel : 31
    avcprofile : 77
    videokeyframe_frequency: 5
    audiodevice : Microphone (2- Microsoft LifeCa
    audiochannels : 1
    audioinputvolume: 27
    Duration: N/A, start: 0.000000, bitrate: 422 kb/s
    Stream #0:0: Video: h264 (Main), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 358 kb/s, 20 tbr, 1k tbn, 40 tbc
    Stream #0:1: Audio: mp3, 44100 Hz, mono, s16, 64 kb/s

    Richard, thx for trying to help here but i'm positive this is an iPad thing

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

    Default

    You can see what Wowza is sending, which might help. Take a look at RESOLUTION value in the playlist.m3u8 file that downloads when you enter a url like this in a browser:
    http://[wowza-address]:1935/vod/[file-name]/playlist.m3u8
    For example this URL with local instance of Wowza
    http://localhost:1935/vod/sample.mp4/playlist.m3u8
    Downloads this playlist.m3u8 content:
    #EXTM3U
    #EXT-X-VERSION:3
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=572079,CODECS="avc1.66.30, mp4a.40.2",RESOLUTION=424x240
    chunklist.m3u8?wowzasessionid=1300811781
    Richard
    Last edited by rrlanham; 07-23-2012 at 01:43 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. Control live-record by limiting duration of streaming video or limiting file size
    By fjckls in forum Wowza Streaming Engine functionality
    Replies: 4
    Last Post: 10-21-2013, 11:18 AM
  2. On demand streaming video on Ipad
    By angelo.strano in forum Video On Demand Streaming Discussion
    Replies: 1
    Last Post: 11-25-2011, 10:58 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
  •