<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Am 26.05.2012 08:34, schrieb Ross Finlayson:
<blockquote
cite="mid:BD8CF7CB-4082-4288-BC20-913344BDC64B@live555.com"
type="cite">At least part of the problem here is that you are
trying to feed a "imLiveStreamSource" (your new data source class)
directly into a "H264VideoRTPSink". You can't do this.
"H264VideoRTPSink" objects must be fed from a
"H264VideoStreamFramer" (or a "H264VideoStreamDiscreteFramer").
<div><br>
</div>
<div>Because your data source object is (I presume) delivering
H.264 NAL units, your "createNewStreamSource()" function must
return a "H264VideoStreamDiscreteFramer". So instead of doing</div>
<div><span class="Apple-tab-span" style="white-space:pre"> return
imLiveStreamSource::createNew(envir(), param);</span></div>
<div>you should do</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>FramedSource*
h264NALSource = <span class="Apple-tab-span" style="white-space:
pre; ">imLiveStreamSource::createNew(envir(), param);</span></div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>return
H264VideoStreamDiscreteFramer::createNew(envir(), h264NALSource);</div>
<div><br>
</div>
<div>Note also that your "imLiveStreamSource" object must deliver
NAL units, one at a time, *without* any preceding MPEG start
code - i.e., *without* any preceding 0x00 0x00 0x00 0x01 bytes.</div>
<br>
<br>
<div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: Helvetica; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: 2;
text-align: -webkit-auto; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; "><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0);
font-family: Helvetica; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; ">Ross Finlayson<br>
Live Networks, Inc.<br>
<a moz-do-not-send="true" href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
live-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a>
<a class="moz-txt-link-freetext" href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a>
</pre>
</blockquote>
<br>
<pre wrap="">Its working! My fautl.. windows firewall cancled network connection so that was the problem.
VLC plays the video but the video Stucks from time to time (looks like it misses some frames). i encode the frame in the same thread when doGetNextFrame is called - is it recommended encoding the video in another thread?
I noticed that the imLiveStreamSource constructor is called two times, and after the first time the destructor is called instantly. dont think that is a right behavior!?!
im happy anyway for my first results :)! thanks so much! =]
</pre>
</body>
</html>