<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=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 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:0in;
margin-bottom:.0001pt;
text-align:right;
direction:rtl;
unicode-bidi:embed;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Calibri","sans-serif";}
span.emailstyle17
{mso-style-name:emailstyle17;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle20
{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:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
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="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:#1F497D">Avformat_network_init() of course
<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><b>From:</b> libav-user-bounces@ffmpeg.org [mailto:libav-user-bounces@ffmpeg.org]
<b>On Behalf Of </b>Assaf kave<br>
<b>Sent:</b> Wednesday, May 07, 2014 10:24 AM<br>
<b>To:</b> libav-user@ffmpeg.org<br>
<b>Subject:</b> Re: [Libav-user] decoding h264 RTP stream question<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:#1F497D">I also try av_codec_network_init() , but without success.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><b>From:</b>
<a href="mailto:libav-user-bounces@ffmpeg.org">libav-user-bounces@ffmpeg.org</a> [<a href="mailto:libav-user-bounces@ffmpeg.org">mailto:libav-user-bounces@ffmpeg.org</a>]
<b>On Behalf Of </b>pawelrutka<br>
<b>Sent:</b> Tuesday, April 29, 2014 15:37 PM<br>
<b>To:</b> <a href="mailto:libav-user@ffmpeg.org">libav-user@ffmpeg.org</a><br>
<b>Subject:</b> Re: [Libav-user] decoding h264 RTP stream question<o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><o:p> </o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:"Times New Roman","serif"">You should register network at the beginning after </span><i><span style="font-family:Consolas;color:darkslateblue">av_register_all</span></i><i><span style="font-family:Consolas;color:black">()
I think.</span></i><br>
<br>
Dnia 28 kwietnia 2014 17:51 Assaf kave napisaĆ(a):<br>
<br>
<span style="font-size:12.0pt"><o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.5pt;padding:0in 0in 0in 12.0pt;margin-left:12.0pt;margin-top:5.0pt;margin-bottom:5.0pt">
<div id="msg">
<div id="msg-body">
<div>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">Hi there,<o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"> <o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">I am developing video player based on your FFmpeg libraries, I am trying to decode NAL units streamed from IP camera, but I get "Invalid data found when processing input" on the first
SPS and the return code from "<span style="font-size:12.0pt;font-family:Consolas;color:darkslateblue;background:white">avcodec_decode_video2</span><span style="font-size:12.0pt;font-family:Consolas;color:darkslateblue">"</span> is -1094995529.<o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">Only if I concatante SPS,PPS IDR or SPS,PPS IDR I get decoded frame.<o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed">My first SPS looks like this:<o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">00 00 00 01 67 64 00 28 ad 00 ce 50 28 0b fe 5c 04 40 00 03 84 00 00 af c8 38 00 00 03 01 7d 78 40
00 03 b9 ac a8 bd f8 c0 00 00 0b eb c2 00 00 1d cd 65 45 ef c1 b4 11 08 94 b0 00</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black">The avcodec initlization :</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"> <o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:darkslateblue;background:white">av_register_all</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">(); </span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:darkmagenta;background:white">video_dec_codec_</span>
<span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">
=</span> <span style="font-size:12.0pt;font-family:Consolas;color:darkslateblue;background:white">
avcodec_find_decoder</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">(</span><span style="font-size:12.0pt;font-family:Consolas;color:darkblue;background:white">AV_CODEC_ID_H264</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:darkmagenta;background:white">video_dec_ctx_</span>
<span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">
=</span> <span style="font-size:12.0pt;font-family:Consolas;color:darkslateblue;background:white">
avcodec_alloc_context3</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">(</span><span style="font-size:12.0pt;font-family:Consolas;color:darkmagenta;background:white">video_dec_codec_</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:darkslateblue;background:white">avcodec_open2</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">(</span><span style="font-size:12.0pt;font-family:Consolas;color:darkmagenta;background:white">video_dec_ctx_</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">,</span>
<span style="font-size:12.0pt;font-family:Consolas;color:darkmagenta;background:white">
video_dec_codec_</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">,</span>
<b><span style="font-size:12.0pt;font-family:Consolas;color:forestgreen;background:white">NULL</span></b><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">) ;</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:darkmagenta;background:white">frame_</span>
<span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">
=</span> <span style="font-size:12.0pt;font-family:Consolas;color:darkslateblue;background:white">
av_frame_alloc</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">();</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:darkslateblue;background:white">av_init_packet</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">(&</span><span style="font-size:12.0pt;font-family:Consolas;color:darkmagenta;background:white">pkt_</span><span style="font-size:12.0pt;font-family:Consolas;color:black;background:white">);</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black"> </span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:12.0pt;font-family:Consolas;color:black">can you help please?</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"> <o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"> <o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"> <o:p></o:p></p>
<p class="MsoNormal" dir="RTL"><span dir="LTR"> <o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:#1F497D">Best Regards,</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;text-indent:.5in;direction:ltr;unicode-bidi:embed">
<span style="color:#1F497D"> </span><span style="font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:#1F497D">Asaf Kave</span><span lang="HE" dir="RTL" style="font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="color:#1F497D">R&D, Software engineer.</span><o:p></o:p></p>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><img border="0" width="131" height="69" id="Picture_x0020_1" src="cid:image001.png@01CF69DE.CCC718D0"><o:p></o:p></p>
<p class="MsoNormal" dir="RTL"><span dir="RTL"></span><span lang="HE" style="font-family:"Arial","sans-serif""><span dir="RTL"></span> </span><span dir="LTR"><o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal" style="text-align:left;direction:ltr;unicode-bidi:embed"><span style="font-size:9.0pt;font-family:"Times New Roman","serif"">_______________________________________________ Libav-user mailing list
</span><a href="/?cmd=compose&to=Libav-user@ffmpeg.org"><span style="font-size:9.0pt;font-family:"Times New Roman","serif"">Libav-user@ffmpeg.org</span></a><span style="font-size:9.0pt;font-family:"Times New Roman","serif"">
</span><a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank"><span style="font-size:9.0pt;font-family:"Times New Roman","serif"">http://ffmpeg.org/mailman/listinfo/libav-user</span></a><span style="font-size:9.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
</blockquote>
</div>
</body>
</html>