<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:"Courier New";
mso-fareast-language:DE;}
span.E-MailFormatvorlage20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.pln
{mso-style-name:pln;}
span.pun
{mso-style-name:pun;}
span.lit
{mso-style-name:lit;}
span.typ
{mso-style-name:typ;}
span.kwd
{mso-style-name:kwd;}
span.E-MailFormatvorlage26
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I am still at a loss with this problem.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Is there any function or way I can force codec parameters into the SDP file?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thanks in advance,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Chris<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:DE">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:DE"> Libav-user [mailto:libav-user-bounces@ffmpeg.org]
<b>Im Auftrag von </b>Weiß Christoph<br>
<b>Gesendet:</b> Freitag, 4. März 2016 15:07<br>
<b>An:</b> libav-user@ffmpeg.org<br>
<b>Betreff:</b> [Libav-user] FFPlay (and VLC) cannot process av_sdp_create()'d SDP file for RTP stream<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#222426;mso-fareast-language:DE">Dear all,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#222426;mso-fareast-language:DE">I'm using the FFMpeg development libraries to generate an embedded application streaming camera images via RTP. My current example is based on
the muxing.c example from FFMpeg 2.7. I use the av_sdp_create to dump the SDP before avformat_write_header and the program streams RTP packets indefinitely afterwards. With a little work, I'm able to extract a video file from packets received on the destination
in Wireshark.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#222426;mso-fareast-language:DE">The content of the generated SDP is:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">v=</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">0</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">o=-
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">0</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">0</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
IN IP4 </span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">127.0</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">.</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">0.1</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">s=</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">No</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">Name</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">c=IN IP4
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">224.1</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">.</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">1.1</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">t=</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">0</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">0</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">a=tool:libavformat
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">57.25</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">.</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">100</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">m=video
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">5555</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
RTP/AVP </span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">96</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">b=AS:</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">400</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">a=rtpmap:</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">96</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
MP4V-ES/</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">90000</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">a=fmtp:</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">96</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
profile-level-id=</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">1</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#393318;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#222426;mso-fareast-language:DE">However, when I try to receive the video with ffplay, I get the following messages:<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">[sdp @
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">0xb0400480</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">]
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">Could</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">not</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
find codec parameters (</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">Video</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">:
mpeg4, yuv420p)<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">[sdp @
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:maroon;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">0xb0400480</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">]
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#2B91AF;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">Estimating</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
duration </span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">from</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
bitrate, </span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">this</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
may be inaccurate<o:p></o:p></span></p>
<p class="MsoNormal" style="background:#EEEEEE"><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">test.sdp: could
</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:darkblue;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">not</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:black;border:none windowtext 1.0pt;padding:0cm;background:#EEEEEE;mso-fareast-language:DE">
find codec parameters</span><span lang="EN-US" style="font-size:10.0pt;font-family:Consolas;color:#393318;mso-fareast-language:DE"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#222426;mso-fareast-language:DE"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#222426;mso-fareast-language:DE">Is there anything missing in this SDP?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt;line-height:14.65pt;background:white">
<span lang="EN-US" style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#222426;mso-fareast-language:DE">I also tried to receive the stream with VLC with the same depressing result. I also tried to use other codecs (mainly MPEG2VIDEO) during transmission,
the received RTP packets seem correct in Wireshark, but playback also fails. I am at a loss about the SDP.<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:DE"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>