<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>