<div dir="ltr"><div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><p>On 27 February 2015 at 19:38, Andy Shaules <span dir="ltr"><<a href="mailto:bowljoman@gmail.com" target="_blank">bowljoman@gmail.com</a>></span> wrote:<br></p></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
    <div>On 2/27/2015 9:09 AM, Mark Kenna wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On 13 February 2015 at 12:07, Mark
            Kenna <span dir="ltr"><<a href="mailto:mark.kenna@sureviewsystems.com" target="_blank">mark.kenna@sureviewsystems.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div dir="ltr">Hi
                <div><br>
                </div>
                <div>I think there is a problem in the SDP parsing of
                  RTSP.c. I have an SDP which has 2 tracks, one is H264
                  and the other is MJPEG. It appears that FFMPEG is
                  always opening MJPEG regardless of which codec is
                  specified first in the track list. Here is an example:</div>
                <div><br>
                </div>
                <div>
                  <div>v=0</div>
                  <div>o=- 130683027881870000 130683027881870000 IN IP4
                    2.0.2.42</div>
                  <div>s=Camera</div>
                  <div>c=IN IP4 0.0.0.0</div>
                  <div>t=0 0</div>
                  <div>a=control:*</div>
                  <div>m=video 1036 RTP/AVP 96 26</div>
                  <div>a=control:?StreamID=0</div>
                  <div>a=rtpmap:96 H264/90000</div>
                  <div>a=fmtp:96 packetization-mode=1;
                    profile-level-id=420029;
                    sprop-parameter-sets=Z0IAKeKQLBLYEnBQEF4eJEVA,aM48gA==</div>
                  <div>a=rtpmap:26 JPEG/90000</div>
                </div>
                <div><br>
                </div>
                <div>Thanks,</div>
                <div>Mark.</div>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>Hi Guys</div>
            <div><br>
            </div>
            <div>Did anyone see this issue? I was wondering if anyone
              has suffered the same problem?</div>
            <div><br>
            </div>
            <div>Thanks,</div>
            <div>Mark. </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
Libav-user mailing list
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
    </blockquote>
    Hello,<br>
    <br>
    <br>
    It appears the SDP is wrong. I believe there should be two m
    entries.<br>
    <br>
    <div>m=video 1036 RTP/AVP 96<br>
    </div><span class="">
    <div>a=control:?StreamID=0</div>
    <div>a=rtpmap:96 H264/90000</div>
    <div>a=fmtp:96 packetization-mode=1; profile-level-id=420029;
      sprop-parameter-sets=Z0IAKeKQLBLYEnBQEF4eJEVA,aM48gA==</div>
    </span><div>m=video 1036 RTP/AVP 26<br>
      a=control:?StreamID=0<br>
      a=rtpmap:26 JPEG/90000</div>
    <br>
    <br>
  </div>

<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote><div><br></div><div>Hi Andy</div><div><br></div><div>According to the SDP specification you are allowed to have multiple media values in the same m line. If you have information to the contrary then please let me know.</div><div><br></div><div>Appreciate the information!</div><div><br></div><div>Mark.</div></div><br></div></div>