[Live-devel] (no subject)
Woods
woods.biz at gmail.com
Mon Jun 15 19:47:34 PDT 2009
Hi,
Just want to find out:
(1) Are you creating your RTP and RTCP socket as the following?
Groupsock rtpGroupsock(*env, destinationAddress, rtpPort, ttl);
Groupsock rtcpGroupsock(*env, destinationAddress, rtcpPort, ttl);
(2) And are you creating those objects in a function call?
If it is so, you will get that select() fail error, because the socket
objects are released after your function returning. This can be shown from
your referred API, where the sockets are used as pointers.
This is what I experienced before by copying the test code. :-)
Good luck
Woods
On Tue, Jun 16, 2009 at 9:45 AM, wong yeewan <yeewan_20 at yahoo.com> wrote:
> Hi,
>
> First of all, thanks for your reply. I read the reply but i don't know how
> to make the correction. I checked the Groupsocks' objects defined in RTPSink
> and RTPSource.cpps and I found that they were defined as pointer objects.
> For examples,
>
> RTPSource::RTPSource(UsageEnvironment& env, *Groupsock* RTPgs*,
> unsigned char rtpPayloadFormat,u_int32_t rtpTimestampFrequency)
> RTPSink::RTPSink(UsageEnvironment& env, *Groupsock* rtpGS*,
> unsigned char rtpPayloadType, unsigned rtpTimestampFrequency, char const*
> rtpPayloadFormatName,
> unsigned numChannels)
> I am new to live555 and also C++ programming. Can you please give me
> more directions on solving this problem?
>
> Thank you
>
> Regards,
> Yee Wan
>
> --- On *Mon, 6/15/09, Woods <woods.biz at gmail.com>* wrote:
>
>
> From: Woods <woods.biz at gmail.com>
> Subject: Re: [Live-devel] (no subject)
> To: "LIVE555 Streaming Media - development & use" <
> live-devel at ns.live555.com>
> Date: Monday, June 15, 2009, 12:09 PM
>
> Hi,
>
> I guess you copied from test code as I did before :)
>
> It is because of that GroupSock. Don't use as a stack object which will be
> released after function call.
>
> Use a pointer for that GroupSock for RTP and RTCP.
>
> Woods
>
>
> On Mon, Jun 15, 2009 at 6:01 PM, wong yeewan <yeewan_20 at yahoo.com<http://us.mc515.mail.yahoo.com/mc/compose?to=yeewan_20@yahoo.com>
> > wrote:
>
>> Hi all,
>>
>> I am interested to use testMPEG1or2ProgramtoTransportStream to convert a
>> MPEG2 video file into TS file. I selected all the header and source files
>> that were needed to build testMPEG1or2ProgramtoTransportStream. I finally
>> built the testMPEG1or2ProgramtoTransportStream.exe in Visual C++ 2005 in
>> Windows. However, problem occured when I ran it. The error message was:
>>
>> Beginning to read...
>> BasicTaskScheduler::SingleStep():select() fails: No error
>>
>> And I obtained an output file which was zero in size. Can anyone please
>> help me with this matter?
>>
>> Thank you
>>
>> Regards,
>> Yee Wan
>>
>>
>>
>>
>> _______________________________________________
>> live-devel mailing list
>> live-devel at lists.live555.com<http://us.mc515.mail.yahoo.com/mc/compose?to=live-devel@lists.live555.com>
>> http://lists.live555.com/mailman/listinfo/live-devel
>>
>>
>
>
> --
> Woods
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com<http://us.mc515.mail.yahoo.com/mc/compose?to=live-devel@lists.live555.com>
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
--
Woods
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090616/f850bf17/attachment.html>
More information about the live-devel
mailing list