home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
iPiMP
Live TV streaming
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cheezey" data-source="post: 624560" data-attributes="member: 10350"><p>No - I can do the start timeshifting (it was already in iPiMP).</p><p></p><p>My tests have shown much better transcoding results when I ffmpeg transcode the MPWebServices 'direct profile' stream rather than when I ffmpeg transcode the raw TV Server RTSP stream. The 'direct profile' seems to just read the input RTSP stream and copy it to an output stream using named pipes, so I was trying to implement that in iPiMP. Those methods are provided as *.cs files in the App_Code folder and so I can't just include them into my VB project. So I tried to translate them into VB but came accross a few differences between the languages - like VB not supporting Lamda expressions - I don't even know what that means <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p>My issue now is translating (NamedPipe.cs)</p><p>[CODE]</p><p>public override void Start(Boolean isClient)</p><p> {</p><p> if (isClient)</p><p> {</p><p> NamedPipeClientStream client = new NamedPipeClientStream (".", _pipeName, PipeDirection.InOut, PipeOptions.Asynchronous);</p><p> client.Connect(10000); // 10 second timeout.</p><p></p><p> pipe = client;</p><p> isReady = true;</p><p> }</p><p> else</p><p> {</p><p> NamedPipeServerStream server = new NamedPipeServerStream(_pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous);</p><p> server.BeginWaitForConnection(new AsyncCallback(WaitForConnection), server);</p><p> }</p><p> }</p><p>[/CODE]</p><p></p><p>ends up as</p><p></p><p>[CODE]</p><p> Public Overloads Overrides Sub Start(ByVal isClient As Boolean)</p><p> If isClient Then</p><p> Dim client As New NamedPipeClientStream(".", _pipeName, PipeDirection.InOut, PipeOptions.Asynchronous)</p><p> client.Connect(10000) '10 second timeout.</p><p> pipe = client</p><p> m_isReady = True</p><p> Else</p><p> Dim server As New NamedPipeServerStream(_pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous)</p><p> server.BeginWaitForConnection(New AsyncCallback(AddressOf WaitForConnection), server).AsyncWaitHandle.WaitOne(10000)</p><p> m_isReady = True</p><p> End If</p><p> End Sub</p><p></p><p> Private Sub WaitForConnection(ByVal ar As IAsyncResult)</p><p> Try</p><p> Dim server As NamedPipeServerStream = TryCast(ar.AsyncState, NamedPipeServerStream)</p><p> server.EndWaitForConnection(ar)</p><p></p><p> pipe = server</p><p> m_isReady = True</p><p> Catch ex As Exception</p><p></p><p> End Try</p><p> End Sub</p><p>[/CODE]</p><p></p><p>But the AsyncCallback(AddressOf WaitForConnection) never gets called by server.BeginWaitForConnection(New AsyncCallback(AddressOf WaitForConnection), server)</p><p></p><p>Like I say - most of this is way over my head.</p></blockquote><p></p>
[QUOTE="cheezey, post: 624560, member: 10350"] No - I can do the start timeshifting (it was already in iPiMP). My tests have shown much better transcoding results when I ffmpeg transcode the MPWebServices 'direct profile' stream rather than when I ffmpeg transcode the raw TV Server RTSP stream. The 'direct profile' seems to just read the input RTSP stream and copy it to an output stream using named pipes, so I was trying to implement that in iPiMP. Those methods are provided as *.cs files in the App_Code folder and so I can't just include them into my VB project. So I tried to translate them into VB but came accross a few differences between the languages - like VB not supporting Lamda expressions - I don't even know what that means :D My issue now is translating (NamedPipe.cs) [CODE] public override void Start(Boolean isClient) { if (isClient) { NamedPipeClientStream client = new NamedPipeClientStream (".", _pipeName, PipeDirection.InOut, PipeOptions.Asynchronous); client.Connect(10000); // 10 second timeout. pipe = client; isReady = true; } else { NamedPipeServerStream server = new NamedPipeServerStream(_pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous); server.BeginWaitForConnection(new AsyncCallback(WaitForConnection), server); } } [/CODE] ends up as [CODE] Public Overloads Overrides Sub Start(ByVal isClient As Boolean) If isClient Then Dim client As New NamedPipeClientStream(".", _pipeName, PipeDirection.InOut, PipeOptions.Asynchronous) client.Connect(10000) '10 second timeout. pipe = client m_isReady = True Else Dim server As New NamedPipeServerStream(_pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous) server.BeginWaitForConnection(New AsyncCallback(AddressOf WaitForConnection), server).AsyncWaitHandle.WaitOne(10000) m_isReady = True End If End Sub Private Sub WaitForConnection(ByVal ar As IAsyncResult) Try Dim server As NamedPipeServerStream = TryCast(ar.AsyncState, NamedPipeServerStream) server.EndWaitForConnection(ar) pipe = server m_isReady = True Catch ex As Exception End Try End Sub [/CODE] But the AsyncCallback(AddressOf WaitForConnection) never gets called by server.BeginWaitForConnection(New AsyncCallback(AddressOf WaitForConnection), server) Like I say - most of this is way over my head. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
WebService and Mobile Access
Popular Plugins
iPiMP
Live TV streaming
Contact us
RSS
Top
Bottom