<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20733</bug_id>
          
          <creation_ts>2013-01-22 12:53:29 +0000</creation_ts>
          <short_desc>Format need to define how to negotiate: width, height, frame-rate</short_desc>
          <delta_ts>2013-07-16 13:53:01 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebRTC Working Group</product>
          <component>Media Capture and Streams</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="j.chetwynd">jay</reporter>
          <assigned_to name="savannah55">dburnett</assigned_to>
          <cc>harald</cc>
    
    <cc>public-media-capture</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>81930</commentid>
    <comment_count>0</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2013-01-22 12:53:29 +0000</bug_when>
    <thetext>Suggestion: browser should honour user defined format and frame rate.
possibly subject to camera providing given format and frame rate, 

afaict 

There is currently no defined way to negotiate the video format

  A camera may offer a variety of formats and frame rates

  The user may have chosen a desired format and frame rate

  The browser may auto-select a format and frame rate

Evidence:

  Method:
    set format and frame rate:**
      $ v4l2-ctl --set-fmt-video=width=320,height=240  //320x240
      $ v4l2-ctl --set-parm=60  //60fps
      $ v4l2-ctl --all  // check current settings

    load http://www.gnote.org in browser

    check format and frame rate again:
      $ v4l2-ctl --all  // ie did they change?
      
  Results:

    Chrome v24.0.1312.52 
      format is changed to 640x480
      user defined fps is retained

    Opera v12.12.1707
      user defined format is retained
      fps is changed to 25fps

    Firefox 21.0a1 (2013-01-21)
      format is changed to 640x480
      fps is changed to 30fps

Tests were not exhaustive, it may be helpful to have other tests, particularly using a UVC compliant camera

my apologies if I missed something obvious.

~:&quot;

**  v4l2 is a Linux API to control camera output
    v4l2-ctl provides an interface to this API

    Camera: Sony Eye Camera available formats:
      640x480@15
      640x480@30
      640x480@40
      640x480@50
      640x480@60
      320x240@30
      320x240@40
      320x240@50
      320x240@60
      320x240@75
      320x240@100
      320x240@125</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81934</commentid>
    <comment_count>1</comment_count>
    <who name="j.chetwynd">jay</who>
    <bug_when>2013-01-22 13:46:49 +0000</bug_when>
    <thetext>https://bugzilla.mozilla.org/show_bug.cgi?id=833314
DSK-381252@bugs.opera.com</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84917</commentid>
    <comment_count>2</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2013-03-25 11:04:25 +0000</bug_when>
    <thetext>Discussion of this topic was present in the &quot;version 6&quot; constraints proposal, and should probably be added as an informative section of the spec. Assigning to Dan for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89154</commentid>
    <comment_count>3</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2013-06-12 08:44:39 +0000</bug_when>
    <thetext>Discussion of resolution is added in the May 29 version of the spec:

http://dev.w3.org/2011/webrtc/editor/getusermedia.html#the-model-sources-sinks-constraints-and-states

It is clear that the browser CAN change the format and frame rate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90790</commentid>
    <comment_count>4</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2013-07-16 13:53:01 +0000</bug_when>
    <thetext>Closing as fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>